2 1 smat, att, tilt, iret)
31 real*4 pos(3,*), smat(3,3,*), att(3,*), tilt(*)
32 integer*4 prod_ID, iret
34 integer*4 or_id, se_id, at_id, ti_id, ms_id, ind
35 integer*4 istart(3), istr(3), idims(3), nflags(8)
36 integer sfn2index, sfselect, sfrdata, sfendacc
38 data istart/3*0/, istr/3*1/, idims/3*1/
39 data msecday/86400000/
44 ind = sfn2index(prod_id,
'msec')
47 write(*,*)
'Error getting index for msec'
50 ms_id = sfselect(prod_id, ind)
53 write(*,*)
'Error selecting msec'
58 ind = sfn2index(prod_id,
'orb_vec')
61 write(*,*)
'Error getting index for orb_vec'
64 or_id = sfselect(prod_id, ind)
67 write(*,*)
'Error selecting orb_vec'
72 ind = sfn2index(prod_id,
'att_ang')
75 write(*,*)
'Error getting index for att_ang'
78 at_id = sfselect(prod_id, ind)
81 write(*,*)
'Error selecting att_ang'
86 ind = sfn2index(prod_id,
'sen_mat')
89 write(*,*)
'Error getting index for sen_mat'
92 se_id = sfselect(prod_id, ind)
95 write(*,*)
'Error selecting sen_mat'
100 ind = sfn2index(prod_id,
'tilt')
103 write(*,*)
'Error getting index for tilt'
106 ti_id = sfselect(prod_id, ind)
107 if (ti_id.eq.-1)
then
109 write(*,*)
'Error selecting tilt'
118 iret = sfrdata(se_id, istart, istr, idims, smat)
120 write(*,*)
'Error reading sen_mat'
126 iret = sfrdata(or_id, istart, istr, idims, pos)
128 write(*,*)
'Error reading orb_vec'
133 iret = sfrdata(at_id, istart, istr, idims, att)
135 write(*,*)
'Error reading att_ang'
141 iret = sfrdata(ms_id, istart, istr, idims, msec)
143 write(*,*)
'Error reading msec'
149 iret = sfrdata(ti_id, istart, istr, idims, tilt)
151 write(*,*)
'Error reading tilt'
156 iret = sfendacc(or_id)
157 iret = sfendacc(se_id)
158 iret = sfendacc(at_id)
159 iret = sfendacc(ti_id)
160 iret = sfendacc(ms_id)
163 if ((msec(nlin)-msec(1)).lt.(-msecday/2))
then
166 dowhile((msec(ind+1)-msec(ind)).gt.(-msecday/2))
170 msec(i) = msec(i) + msecday