Changeset 240 for trunk/SRC/ReadWrite


Ignore:
Timestamp:
03/28/07 14:17:24 (17 years ago)
Author:
pinsard
Message:

replace some print by some report in some .pro (continuation)

Location:
trunk/SRC/ReadWrite
Files:
4 edited

Legend:

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

    r236 r240  
    179179   infof2read=fstat(unit) 
    180180   if infof2read.size NE filesize then begin 
    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)) 
     181      ras = report(['According to '+filename+' the file size must be '+strtrim(filesize, 1)+' instead of '+strtrim(infof2read.size, 1), $ 
     182      'jpi: '+strtrim(jpi, 2), $ 
     183      'jpj: '+strtrim(jpj, 2), $ 
     184      'jpt: '+strtrim(jpt, 2), $ 
     185      'format size in byte: '+strtrim(fmtsz, 2), $ 
     186      'number of xy arrays: '+strtrim(nxybloc, 2)]) 
    187187      return, -1 
    188188   endif 
  • trunk/SRC/ReadWrite/readoldopadistcoast.pro

    r238 r240  
    103103   size = numrec*reclen-toomuch 
    104104   if size NE filepamameters.size then begin 
    105       ras = report( 'The size of the file is not the expected one!') 
    106       ras = report( 'Check your file or the values of ibloc, jpiglo,') 
    107       ras = report( 'jpjglo, jpk, jpbyt, numrec in this program') 
     105      ras = report(['The size of the file is not the expected one!', $ 
     106      'Check your file or the values of ibloc, jpiglo,', $ 
     107      'jpjglo, jpk, jpbyt, numrec in this program']) 
    108108      return, -1 
    109109   endif 
  • trunk/SRC/ReadWrite/readoldoparestart.pro

    r236 r240  
    145145   iname_file = findfile(filename) 
    146146   if iname_file[0] EQ '' then begin 
    147       ras = report( 'Bad file name') 
     147      ras = report('Bad file name') 
    148148      return 
    149149   ENDIF ELSE iname_file = iname_file[0] 
     
    165165   size = numrec*reclen-toomuch 
    166166   if size NE filepamameters.size then begin 
    167       ras = report( 'The size of the file is not the expected one!') 
    168       ras = report( 'Check your file or the values of ibloc, jpiglo,') 
    169       ras = report( 'jpjglo, jpk, jpbyt, numrec in this program') 
     167      ras = report(['The size of the file is not the expected one!', $ 
     168      'Check your file or the values of ibloc, jpiglo,', $ 
     169      'jpjglo, jpk, jpbyt, numrec in this program']) 
    170170      return 
    171171   endif 
  • trunk/SRC/ReadWrite/scanctl.pro

    r238 r240  
    273273   files = strsplit(files,/extract) 
    274274   if n_elements(files) NE 2 then begin 
    275       ras = report( 'Bad definition of the filename. There should be 2 elements:') 
    276       ras = report( 'DEST and 1 filename that may define many files') 
     275      ras = report(['Bad definition of the filename. There should be 2 elements:', $ 
     276      'DEST and 1 filename that may define many files']) 
    277277      stop 
    278278   endif 
Note: See TracChangeset for help on using the changeset viewer.