Go to the documentation of this file. 1 subroutine get_l1a_open( infile, prod_ID, npix, nlin, iret )
5 character*80 infile,bname
6 integer*4 prod_ID(2), at_id
8 integer*4 amode, jd, jdr
10 integer sfstart, sffattr, sfrattr
11 data amode/1/, jdr/2450696/
13 prod_id(1) = sfstart(infile, amode)
14 if (prod_id(1).eq.-1)
then
15 write(*,*)
'Error opening HDF file'
20 at_id = sffattr(prod_id,
'Number of Scan Lines')
22 write(*,*)
'Error getting index for Number of Scan Lines'
27 iret = sfrattr(prod_id, at_id, nlin)
29 write(*,*)
'Error getting value for Number of Scan Lines'
33 at_id = sffattr(prod_id,
'Pixels per Scan Line')
35 write(*,*)
'Error getting index for Pixels per Scan Line'
40 iret = sfrattr(prod_id, at_id, npix)
42 write(*,*)
'Error getting value for Pixels per Scan Line'
46 at_id = sffattr(prod_id,
'Start Year')
48 write(*,*)
'Error getting index for Start Year'
53 iret = sfrattr(prod_id, at_id, iyr)
55 write(*,*)
'Error getting value for Start Year'
59 at_id = sffattr(prod_id,
'Start Day')
61 write(*,*)
'Error getting index for Start Day'
66 iret = sfrattr(prod_id, at_id, idy)
68 write(*,*)
'Error getting value for Start Day'
75 prod_id(2) =
jd(lyr, 1, ldy) - jdr
subroutine get_l1a_open(infile, amode, prod_ID, isday, nlin, iret)