OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
ydsadd.f
Go to the documentation of this file.
1  subroutine ydsadd(iy, id, sec, deld, delsec)
2 c
3 c ydsadd(iy, id, sec, deld, delsec)
4 c
5 c purpose: add a delta day, second to a yesr, day, second
6 c
7 c calling arguments:
8 c
9 c name Type i/o description
10 c -------- ---- --- -----------
11 c iy i*4 i/o year value to be changed
12 c id i*4 i/o day of year to be changed
13 c sec r*8 i/o second of day to be changed
14 c deld i*4 i delta day to add
15 c delsec r*8 i delta second to add
16 c
17 c by: w. robinson, gsc, 19 mar 93
18 c
19 c notes:
20 c
21 c modification history:
22 c
23  implicit none
24 c
25  integer*4 iy, id, deld
26  real*8 sec, delsec
27 c
28  integer*4 dnew, i4y, julday, jd, mon, day, refday
29  real*8 snew, secinday
30  parameter(secinday = 60 * 60 * 24 )
31 c
32 c find new day with addition
33 c
34  dnew = id + deld
35 c
36 c convert this to julian day
37 c
38  i4y = iy
39  julday = jd( i4y, 1, dnew )
40 c
41 c add the seconds and adjust seconds and julian day if required
42 c
43  snew = sec + delsec
44  julday = julday + int( snew / secinday )
45  sec = dmod(snew, secinday)
46 c
47  if( sec .lt. 0 ) then
48  sec = sec + secinday
49  julday = julday - 1
50  end if
51 c
52 c convert the julian day to a date
53 c
54  call jddate( julday, i4y, mon, day )
55  refday = jd( i4y, 1, 1)
56  dnew = julday - refday + 1
57 c
58  id = dnew
59  iy = i4y
60 c
61 c and exit
62 c
63  return
64  end
Definition: jddate.py:1
#define real
Definition: DbAlgOcean.cpp:26
subroutine ydsadd(iy, id, sec, deld, delsec)
Definition: ydsadd.f:2
README for MOD_PR03(V6.1.0) 2. POINTS OF CONTACT it can be either SDP Toolkit or MODIS Packet for Terra input files The orbit validation configuration parameter(LUN 600281) must be either "TRUE" or "FALSE". It needs to be "FALSE" when running in Near Real Time mode
Definition: jd.py:1
===========================================================================V5.0.48(Terra) 03/20/2015 Changes shown below are differences from MOD_PR02 V5.0.46(Terra)============================================================================Changes noted for V6.1.20(Terra) below were also instituted for this version.============================================================================V6.1.20(Terra) 03/12/2015 Changes shown below are differences from MOD_PR02 V6.1.18(Terra)============================================================================Changes from v6.1.18 which may affect scientific output:A situation can occur in which a scan which contains sector rotated data has a telemetry value indicating the completeness of the sector rotation. This issue is caused by the timing of the instrument command to perform the sector rotation and the recording of the telemetry point that reports the status of sector rotation. In this case a scan is considered valid by L1B and pass through the calibration - reporting extremely high radiances. Operationally the TEB calibration uses a 40 scan average coefficient, so the 20 scans(one mirror side) after the sector rotation are contaminated with anomalously high radiance values. A similar timing issue appeared before the sector rotation was fixed in V6.1.2. Our analysis indicates the ‘SET_FR_ENC_DELTA’ telemetry correlates well with the sector rotation encoder position. The use of this telemetry point to determine scans that are sector rotated should fix the anomaly occured before and after the sector rotation(usually due to the lunar roll maneuver). The fix related to the sector rotation in V6.1.2 is removed in this version.============================================================================V6.1.18(Terra) 10/01/2014 Changes shown below are differences from MOD_PR02 V6.1.16(Terra)============================================================================Added doi attributes to NRT(Near-Real-Time) product.============================================================================V6.1.16(Terra) 01/27/2014 Changes shown below are differences from MOD_PR02 V6.1.14(Terra)============================================================================Migrate to SDP Toolkit 5.2.17============================================================================V6.1.14(Terra) 06/26/2012 Changes shown below are differences from MOD_PR02 V6.1.12(Terra)============================================================================Added the doi metadata to L1B product============================================================================V6.1.12(Terra) 04/25/2011 Changes shown below are differences from MOD_PR02 V6.1.8(Terra)============================================================================1. The algorithm to calculate uncertainties for reflective solar bands(RSB) is updated. The current uncertainty in L1B code includes 9 terms from prelaunch analysis. The new algorithm regroups them with the new added contributions into 5 terms:u1:the common term(AOI and time independent) and
Definition: HISTORY.txt:126
integer function julian(DAY, MONTH, YEAR)
Definition: julian.f:2