Changeset 240 for trunk/SRC/Grid


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/Grid
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Grid/computegrid.pro

    r238 r240  
    608608; check that xtest is now sorted in the increasing order 
    609609      IF array_equal(sort(xtest), lindgen(jpi)) EQ 0 THEN BEGIN 
    610         print, 'WARNING: we cannot sort the xaxis with a simple shift...' 
    611         print, 'we force key_periodic = 0 and key_shift = 0' 
    612         print, 'only horizontal plot may be ok...' 
     610        ras = report(['WARNING: we cannot sort the xaxis with a simple shift...', $ 
     611        'we force key_periodic = 0 and key_shift = 0', $ 
     612        'only horizontal plot may be ok...']) 
    613613        key_periodic = 0 
    614614        xnotsorted = 1 
  • trunk/SRC/Grid/micromeshmask.pro

    r238 r240  
    6969    filein_msk = (findfile(filein+'.mask.nc'))[0] 
    7070    IF filein_hgr EQ '' OR filein_zgr EQ '' OR filein_msk EQ ''  THEN BEGIN 
    71       ras = report( 'meshmask file(s) not found...') 
    72       ras = report( filein+' does not exist') 
    73       ras = report( filein+'.mesh_hgr.nc does not exist') 
    74       ras = report( filein+'.mesh_zgr.nc does not exist') 
    75       ras = report( filein+'.mask.nc does not exist') 
     71      ras = report(['meshmask file(s) not found...', $ 
     72      filein+' does not exist', $ 
     73      filein+'.mesh_hgr.nc does not exist', $ 
     74      filein+'.mesh_zgr.nc does not exist', $ 
     75      filein+'.mask.nc does not exist']) 
    7676      return 
    7777    ENDIF 
  • trunk/SRC/Grid/ncdf_meshread.pro

    r232 r240  
    101101  tempsun = systime(1)          ; for key_performance 
    102102  IF keyword_set(CHECKDAT) THEN BEGIN 
    103     print, ' The keyword CHECKDAT has been suppressed (it could create bugs).' 
    104     print, ' Remove it from the call of ncdf_meshread' 
    105     print, ' Please use smallmeshmask.pro or micromeshmask.pro to create a' 
    106     print, ' meshmask that has manageable size' 
     103    ras = report([' The keyword CHECKDAT has been suppressed (it could create bugs).', $ 
     104    ' Remove it from the call of ncdf_meshread', $ 
     105    ' Please use smallmeshmask.pro or micromeshmask.pro to create a', $ 
     106    ' meshmask that has manageable size']) 
    107107    return 
    108108  ENDIF 
     
    218218; 
    219219      IF array_equal(sort(xaxis), lindgen(jpi)) NE 1 THEN BEGIN 
    220         print, 'the x axis (1st line of glamt) is not sorted in the increasing order after the automatic definition of key_shift' 
    221         print, 'please use the keyword shift (and periodic) to suppress the automatic definition of key_shift (and key_periodic) and define by hand a more suitable value...' 
     220        ras = report(['the x axis (1st line of glamt) is not sorted in the increasing order after the automatic definition of key_shift', $ 
     221        'please use the keyword shift (and periodic) to suppress the automatic definition of key_shift (and key_periodic) and define by hand a more suitable value...']) 
    222222        widget_control, noticebase, bad_id = nothing, /destroy 
    223223        return 
  • trunk/SRC/Grid/ncdf_meshroms.pro

    r231 r240  
    196196; 
    197197      IF array_equal(sort(xaxis), lindgen(jpi)) NE 1 THEN BEGIN 
    198         print, 'the x axis (1st line of glamt) is not sorted in the increasing order after the automatic definition of key_shift' 
    199         print, 'please use the keyword shift (and periodic) to suppress the automatic definition of key_shift (and key_periodic) and define by hand a more suitable value...' 
     198        ras = report (['the x axis (1st line of glamt) is not sorted in the increasing order after the automatic definition of key_shift', $ 
     199        'please use the keyword shift (and periodic) to suppress the automatic definition of key_shift (and key_periodic) and define by hand a more suitable value...']) 
    200200        widget_control, noticebase, bad_id = nothing, /destroy 
    201201        return 
  • trunk/SRC/Grid/numbisland.pro

    r238 r240  
    9090  land = (where(msk EQ 0, count))[0] 
    9191  WHILE count NE 0 DO BEGIN 
    92     IF (islnumb-9) MOD 10 EQ 0 THEN print,  'island number :'+strtrim(islnumb-9, 1) 
    93  
     92    IF (islnumb-9) MOD 10 EQ 0 THEN BEGIN 
     93       ras = report('island number :'+strtrim(islnumb-9, 1)) 
     94    ENDIF 
    9495    mskneig, msk, nx, ny, land, islnumb 
    9596 
  • trunk/SRC/Grid/smallmeshmask.pro

    r238 r240  
    7878    filein_msk = (findfile(filein+'.mask.nc'))[0] 
    7979    IF filein_hgr EQ '' OR filein_zgr EQ '' OR filein_msk EQ ''  THEN BEGIN 
    80       ras = report( 'meshmask file(s) not found...') 
    81       ras = report( filein+' does not exist') 
    82       ras = report( filein+'.mesh_hgr.nc does not exist') 
    83       ras = report( filein+'.mesh_zgr.nc does not exist') 
    84       ras = report( filein+'.mask.nc does not exist') 
     80      ras = report(['meshmask file(s) not found...', $ 
     81      filein+' does not exist', $ 
     82      filein+'.mesh_hgr.nc does not exist', $ 
     83      filein+'.mesh_zgr.nc does not exist', $ 
     84      filein+'.mask.nc does not exist']) 
    8585      return 
    8686    ENDIF 
Note: See TracChangeset for help on using the changeset viewer.