1 subroutine put_l1a_data( prod_ID, nlin, smat, att, coef, iret)
33 #include "nav_cnst.fin"
35 real*4 smat(3,3,*), att(3,*), coef(6,*)
36 integer*4 prod_ID, iret
37 integer*4 se_id, at_id, co_id, nf_id, ind, i
38 integer*4 istart(3), istr(3), idims(3)
39 integer*4 nflag(8,maxlin)
40 integer sfn2index, sfselect, sfwdata, sfendacc
41 data istart/3*0/, istr/3*1/
45 ind = sfn2index(prod_id,
'att_ang')
48 write(*,*)
'Error getting index for att_ang'
51 at_id = sfselect(prod_id, ind)
54 write(*,*)
'Error selecting att_ang'
58 ind = sfn2index(prod_id,
'sen_mat')
61 write(*,*)
'Error getting index for sen_mat'
64 se_id = sfselect(prod_id, ind)
67 write(*,*)
'Error selecting sen_mat'
71 ind = sfn2index(prod_id,
'scan_ell')
74 write(*,*)
'Error getting index for scan_ell'
77 co_id = sfselect(prod_id, ind)
80 write(*,*)
'Error selecting scan_ell'
84 ind = sfn2index(prod_id,
'nflag')
87 write(*,*)
'Error getting index for nflag'
90 nf_id = sfselect(prod_id, ind)
93 write(*,*)
'Error selecting nflag'
100 iret = sfwdata(se_id, istart, istr, idims, smat)
102 write(*,*)
'Error writing sen_mat'
107 iret = sfwdata(at_id, istart, istr, idims, att)
109 write(*,*)
'Error writing att_ang'
114 iret = sfwdata(co_id, istart, istr, idims, coef)
116 write(*,*)
'Error writing scan_ell'
121 iret = sfrdata(nf_id, istart, istr, idims, nflag)
123 write(*,*)
'Error reading nflag'
130 if (nflag(7,i).eq.0) nflag(8,i) = 0
133 iret = sfwdata(nf_id, istart, istr, idims, nflag)
135 write(*,*)
'Error writing nflag'
139 iret = sfendacc(se_id)
140 iret = sfendacc(at_id)
141 iret = sfendacc(co_id)
142 iret = sfendacc(nf_id)