Ignore:
Timestamp:
03/21/07 18:18:44 (17 years ago)
Author:
pinsard
Message:

replace some print by some report in some .pro #2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ReadWrite/read_grads.pro

    r232 r236  
    9797   if keyword_set(timestep) then BEGIN 
    9898      if date1 GT date2 then begin 
    99          print, 'date2 must be larger than date1' 
     99         ras = report( 'date2 must be larger than date1') 
    100100         return, -1 
    101101      endif 
     
    106106      jdate2 = time[0] > date2jul(date2, /grads) 
    107107      if jdate1 GT jdate2 then begin 
    108          print, 'date2 must be larger than date1' 
     108         ras = report('date2 must be larger than date1') 
    109109         return, -1 
    110110      endif 
     
    114114   ENDELSE 
    115115   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') 
    117117      return, -1 
    118118   endif 
     
    126126   varid = varid[0] 
    127127   if varid EQ -1 then begin 
    128       print, var+' not found in the variable list of '+filename 
     128      ras = report(var+' not found in the variable list of '+filename) 
    129129      return,  -1 
    130130   ENDIF 
     
    159159    , swap_endian = swapbytes 
    160160   if err ne 0 then begin 
    161       print,!err_string 
     161      ras = report(!err_string) 
    162162      return, -1 
    163163   endif 
     
    179179   infof2read=fstat(unit) 
    180180   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)) 
    187187      return, -1 
    188188   endif 
Note: See TracChangeset for help on using the changeset viewer.