1 subroutine rdgrid(filename, type, ozone, julval, year,
2 . start, end, acntime, rval)
39 character filename*(*)
51 dimension ozone(360,180)
55 open(1,file=filename,status=
'old', err=998)
61 read(1, 10) julval, month, day, year
62 10
format(6x, i3, 1x, a3, 1x, a2, 2x, i4)
64 else if (
type .EQ. 1) then
65 read(1, 15) julval, month, day, year
66 15
format(6x, i3, 6x, a8, 1x, a2, 2x, i4)
67 read(1, 20) start,
end
68 20
format(13x, a16, 12x, a16)
70 else if ((
type .EQ. 2) .OR. (type .EQ. 3))
then
71 read(1, 40) julval, month, day, year, acntime
72 40
format(6x, i3, 1x, a3, 1x, a2, 2x, i4, 49x, a8)
75 1
'Error in rdgrid.f, TYPE not "TOMS", "TOVS", "EPTOMS" or "ADTOMS"'
90 if ((
type .EQ. 2) .OR. (type .EQ. 3))
then
92 if( ( acntime(8:8) .NE.
'M' ) .AND. ( acntime(8:8) .NE.
'm' ) )
then
99 read(1,
'(a80)') header
100 read(1,
'(a80)') header
107 read(1,
'(1x,25i3)') (ozone(j,i),j=1,360)
114 print *,
'Error reading file ',filename