Changeset 236 for trunk/SRC/ReadWrite/read_grads.pro
- Timestamp:
- 03/21/07 18:18:44 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ReadWrite/read_grads.pro
r232 r236 97 97 if keyword_set(timestep) then BEGIN 98 98 if date1 GT date2 then begin 99 print, 'date2 must be larger than date1'99 ras = report( 'date2 must be larger than date1') 100 100 return, -1 101 101 endif … … 106 106 jdate2 = time[0] > date2jul(date2, /grads) 107 107 if jdate1 GT jdate2 then begin 108 print, 'date2 must be larger than date1'108 ras = report('date2 must be larger than date1') 109 109 return, -1 110 110 endif … … 114 114 ENDELSE 115 115 if t2 LT t1 then begin 116 print, 'There is no date between date1 and date2'116 ras = report('There is no date between date1 and date2') 117 117 return, -1 118 118 endif … … 126 126 varid = varid[0] 127 127 if varid EQ -1 then begin 128 print, var+' not found in the variable list of '+filename128 ras = report(var+' not found in the variable list of '+filename) 129 129 return, -1 130 130 ENDIF … … 159 159 , swap_endian = swapbytes 160 160 if err ne 0 then begin 161 print,!err_string161 ras = report(!err_string) 162 162 return, -1 163 163 endif … … 179 179 infof2read=fstat(unit) 180 180 if infof2read.size NE filesize then begin 181 print, 'According to '+filename+' the file size must be '+strtrim(filesize, 1)+' instead of '+strtrim(infof2read.size, 1)182 print, 'jpi: '+strtrim(jpi, 2)183 print, 'jpj: '+strtrim(jpj, 2)184 print, 'jpt: '+strtrim(jpt, 2)185 print, 'format size in byte: '+strtrim(fmtsz, 2)186 print, 'number of xy arrays: '+strtrim(nxybloc, 2)181 ras = report('According to '+filename+' the file size must be '+strtrim(filesize, 1)+' instead of '+strtrim(infof2read.size, 1)) 182 ras = report( 'jpi: '+strtrim(jpi, 2)) 183 ras = report( 'jpj: '+strtrim(jpj, 2)) 184 ras = report( 'jpt: '+strtrim(jpt, 2)) 185 ras = report( 'format size in byte: '+strtrim(fmtsz, 2)) 186 ras = report( 'number of xy arrays: '+strtrim(nxybloc, 2)) 187 187 return, -1 188 188 endif
Note: See TracChangeset
for help on using the changeset viewer.