OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
contst.f
Go to the documentation of this file.
1  subroutine contst
2 c
3 c***********************************************************************
4 c subroutine contstx checks for the convergance of upwelling and
5 c downwelling radiance in the all direction
6 c
7 c***********************************************************************
8 c.......include common blocks
9  implicit real*8 (a-h,o-z)
10  include 'afrt_rt2.cmn'
11 c***********************************************************************
12  if(jpass.le.3)return
13  do i=1,(nx-1)
14  do j=1,jpart
15  d1px(1,i,j)=d1px(2,i,j)
16  d2px(1,i,j)=d2px(2,i,j)
17  enddo
18  enddo
19 c
20  do i=1,(nx-1)
21  do j=1,jpart
22  r1=geoiup(jpass-3,i,j)
23  r2=geoiup(jpass-2,i,j)
24  r3=geoiup(jpass-1,i,j)
25  rat=(r3-r2)/(r2-r1)
26  r4=r1+(r2-r1)/(1.0-rat)
27  d1px(2,i,j)=r4
28 c if(jpass.eq.5)then
29 c write(6,100)i,j,r1,r2,r3,r4,d1px(2,i,j)
30 100 format('i,j,r1,r2,r3,r4,d1px',2i4,1p5e11.3)
31 c endif
32  enddo
33  enddo
34  do i=1,(nx-1)
35  do j=1,jpart
36  u1=geoidn(jpass-3,i,j)
37  u2=geoidn(jpass-2,i,j)
38  u3=geoidn(jpass-1,i,j)
39  uat=(u3-u2)/(u2-u1)
40  u4=u1+(u2-u1)/(1.0-uat)
41  d2px(2,i,j)=u4
42 c if(jpass.eq.5)then
43 c write(6,200)i,j,u1,u2,u3,u4,d2px(2,i,j)
44 200 format('i,j,u1,u2,u3,u4,d2px',2i4,1p5e11.3)
45 c endif
46  enddo
47  enddo
48 c compute the difference
49  do i=1,(nx-1)
50  do j=1,jpart
51  df1(i,j)=100.0d0*(d1px(2,i,j)-d1px(1,i,j))/d1px(2,i,j)
52  df2(i,j)=100.0d0*(d2px(2,i,j)-d2px(1,i,j))/d2px(2,i,j)
53  enddo
54  enddo
55 c compute the max value
56  xmax1=0.0d0
57  xmax2=0.0d0
58  do i=1,(nx-1)
59  do j=1,jpart
60  if(df1(i,j).gt.xmax1)xmax1=df1(i,j)
61  if(df2(i,j).gt.xmax2)xmax2=df2(i,j)
62  enddo
63  enddo
64  d3=max(xmax1,xmax2)
65 c
66 c write(6,2233)jpass,xmax1,xmax2
67 c write(6,2235)d3
68 c
69 c*******format statements***********************************************
70 2233 format('jpass, upward & downward dd)',i3,1p2e12.3)
71 2235 format('max. diff',1pe12.3)
72 2237 format('factr,flxgsup,flxgsdn,flxcongs'/1p3e13.4,0pf8.5)
73 c***********************************************************************
74  return
75  end
76 c***********************************************************************
subroutine contst
Definition: contst.f:2
#define max(A, B)
Definition: main_biosmap.c:61
===========================================================================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
for(i=0;i< NROOTS;i++) s[i]
Definition: decode_rs.h:85