OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
lnstrg.f
Go to the documentation of this file.
1  integer function lnstrg(STRING)
2 C**********************************************************************
3 C
4 C This function returns with its value equal to the position in
5 C STRING of the last non-blank and non-null character. If STRING
6 C is all blanks or null, LNSTRG will equal zero.
7 C
8 C Created by Michael Darzi, GSC, 10/86.
9 C To UNIX: BD Schieber, SAIC/GSC, 93
10 C**********************************************************************
11  implicit none
12  character string*(*), blnk*(*), null
13  byte bnull, btmp
14  parameter(blnk=' ', bnull='0'o)
15  data btmp/bnull/
16  equivalence(null,btmp)
17 
18  lnstrg = len(string)
19  10 continue
20  if (lnstrg .lt. 1) return
21  if ((string(lnstrg:lnstrg) .ne. blnk) .and.
22  . (string(lnstrg:lnstrg) .ne. null)) return
23  lnstrg = lnstrg - 1
24  go to 10
25  end
#define null
Definition: anc.h:14
@ string
integer function lnstrg(STRING)
Definition: lnstrg.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
#define byte
Definition: input_s.h:5