OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
initnav.f
Go to the documentation of this file.
1  subroutine initnav(input,nframes,navctl,navqc,orbit,ierr)
2 c
3 c initnav(input,nframes,navctl,navqc,orbit)
4 c
5 c purpose: initilizes navigation constants, reads control and qc parameters
6 c into structures and processes gps orbit data
7 c
8 c calling arguments:
9 c
10 c name Type i/o description
11 c -------- ---- --- -----------
12 c input struct i structure for input data
13 c nframes i*4 i number of input minor frames
14 c navctl struct o structure for navigation control parameters
15 c navqc struct o structure for navigation qc parameters
16 c orbit struct o structure for processed orbit data
17 c
18 c by: frederick s. patt, gsc, 5 july 93
19 c
20 c notes:
21 c
22 c modification history:
23 c
24 c added ierr return parameter. b. a. franz, gsc, 24 december 1997.
25 c
26 
27  implicit none
28 c
29 #include "nav_cnst.fin"
30 #include "navqc_s.fin"
31 #include "navctl_s.fin"
32 #include "input_s.fin"
33 #include "orbit_s.fin"
34 c
35 c
36  type(navqc_struct) :: navqc
37  type(navctl_struct) :: navctl
38  type(input_struct) :: input(maxlin)
39  type(orbit_struct) :: orbit
40  integer*4 nframes, ierr
41 
42 c initilize navigation constants
43  call cdata
44 
45 c Read control parameter file
46  call readctl(navctl, ierr)
47  if (ierr .ne. 0) return
48 
49 c Read qc parameter file
50  call readqc(navqc, ierr)
51  if (ierr .ne. 0) return
52 
53 c process orbit data
54  call orbcomp(input, nframes, orbit, ierr)
55  if (ierr .ne. 0) return
56 
57  return
58  end
int navigation(int32_t fileID)
Definition: l1_octs_hdf.c:696
subroutine initnav(input, nframes, navctl, navqc, orbit, ierr)
Definition: initnav.f:2
subroutine readctl(navctl, ierr)
Definition: readctl.f:2
subroutine cdata
Definition: cdata.f:2
===========================================================================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
subroutine orbcomp(input, nframes, orbit, ier)
Definition: orbcomp.f:2
subroutine readqc(navqc, ierr)
Definition: readqc.f:2