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

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

Location:
trunk/SRC/Interpolation
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Interpolation/angle.pro

    r232 r236  
    111111  fileoce = findfile(fileoce, count = okfile) 
    112112  IF okfile NE 1 THEN BEGIN 
    113     print, 'the file '+fileoce+' is not found... we stop' 
     113    ras = report('the file '+fileoce+' is not found... we stop') 
    114114    stop 
    115115  ENDIF 
  • trunk/SRC/Interpolation/compute_fromirr_bilinear_weigaddr.pro

    r232 r236  
    7272  IF n_elements(amsk) EQ 1 AND amsk[0] EQ -1 THEN amsk = replicate(1b, jpia, jpja) 
    7373  IF n_elements(omsk) NE jpio*jpjo THEN BEGIN 
    74     print, 'input grid mask do not have the good size' 
     74    ras = report('input grid mask do not have the good size') 
    7575    stop 
    7676  ENDIF 
    7777  IF n_elements(amsk) NE jpia*jpja THEN BEGIN 
    78     print, 'output grid mask do not have the good size' 
     78    ras = report('output grid mask do not have the good size') 
    7979    stop 
    8080  ENDIF 
  • trunk/SRC/Interpolation/extrapolate.pro

    r232 r236  
    7575  IF n_elements(maskinput) EQ 1 AND maskinput[0] EQ -1 THEN maskinput = replicate(1b, nx, ny) 
    7676  IF n_elements(maskinput) NE nx*ny THEN BEGIN 
    77     print, 'input grid mask do not have the good size' 
     77    ras = report('input grid mask do not have the good size') 
    7878    return, -1 
    7979  ENDIF 
  • trunk/SRC/Interpolation/extrapsmooth.pro

    r232 r236  
    5252  sz = size(reform(in)) 
    5353  IF sz[0] NE 2 THEN BEGIN 
    54     print, 'Input arrays must have 2 dimensions' 
     54    ras = report('Input arrays must have 2 dimensions') 
    5555    return, -1 
    5656  ENDIF 
     
    5959  IF n_elements(mskin) EQ 1 AND mskin[0] EQ -1 THEN mskin = replicate(1b, nx, ny) 
    6060  IF n_elements(mskin) NE nx*ny THEN BEGIN 
    61     print, 'input grid mask do not have the good size' 
     61    ras = report('input grid mask do not have the good size') 
    6262    return, -1 
    6363  ENDIF 
  • trunk/SRC/Interpolation/fromirr.pro

    r231 r236  
    110110      'bilinear':compute_fromirr_bilinear_weigaddr, alon, alat, mskin, olon, olat, mskout, weig, addr 
    111111      ELSE:BEGIN 
    112         print, ' unknown interpolation method... we stop' 
     112        ras = report(' unknown interpolation method... we stop') 
    113113        stop 
    114114      ENDELSE 
  • trunk/SRC/Interpolation/fromreg.pro

    r231 r236  
    113113      'imoms3':  compute_fromreg_imoms3_weigaddr,   alon, alat, olon, olat, weig, addr, NONORTHERNLINE = nonorthernline, NOSOUTHERNLINE = nosouthernline 
    114114      ELSE:BEGIN 
    115         print, ' unknown interpolation method... we stop' 
     115        ras = report(' unknown interpolation method... we stop') 
    116116        stop 
    117117      ENDELSE 
  • trunk/SRC/Interpolation/get_gridparams.pro

    r231 r236  
    8787; get longitude and latitude 
    8888      IF file_test(in1) EQ 0 THEN BEGIN 
    89         print, 'file ' + in1 + ' does not exist' 
     89        ras = report('file ' + in1 + ' does not exist') 
    9090        stop 
    9191      ENDIF 
     
    102102    END 
    103103    ELSE:BEGIN 
    104       print, 'Bad nimber of input parameters' 
     104      ras = report('Bad number of input parameters') 
    105105      stop 
    106106    end 
     
    140140        1:BEGIN 
    141141          IF array_equal(lon, lon[*, 0] # replicate(1, jpj)) NE 1 THEN BEGIN 
    142             print, 'Longitudes are not the same for all latitudes, impossible to extract a 1D array of the longitudes' 
     142            ras = report('Longitudes are not the same for all latitudes, impossible to extract a 1D array of the longitudes') 
    143143            stop 
    144144          ENDIF 
     
    161161        1:BEGIN 
    162162          IF array_equal(lat, replicate(1, jpi) # lat[0, *]) NE 1 THEN BEGIN 
    163             print, 'Latitudes are not the same for all longitudes, impossible to extract a 1D array of the latitudes' 
     163            ras = report('Latitudes are not the same for all longitudes, impossible to extract a 1D array of the latitudes') 
    164164            stop 
    165165          ENDIF 
     
    182182        1:BEGIN 
    183183          IF array_equal(lon, lon[*, 0] # replicate(1, jpj)) NE 1 THEN BEGIN 
    184             print, 'Longitudes are not the same for all latitudes, impossible to extract a 1D array of the longitudes' 
     184            ras = report('Longitudes are not the same for all latitudes, impossible to extract a 1D array of the longitudes') 
    185185            stop 
    186186          ENDIF 
    187187          lon = lon[*, 0] 
    188188          IF array_equal(lat, replicate(1, jpi) # reform(lat[0, *])) NE 1 THEN BEGIN 
    189             print, 'Latitudes are not the same for all longitudes, impossible to extract a 1D array of the latitudes' 
     189            ras = report('Latitudes are not the same for all longitudes, impossible to extract a 1D array of the latitudes') 
    190190            stop 
    191191          ENDIF 
     
    199199; lon and lat are not 1D and/or 2D arrays 
    200200;------- 
    201     ELSE:stop 
     201    ELSE: BEGIN 
     202             ras = report('Longitudes and latitudes are not 1D and/or 2D arrays') 
     203             stop 
     204          END 
    202205  ENDCASE 
    203206; 
  • trunk/SRC/Interpolation/inquad.pro

    r232 r236  
    261261; points out of the cells 
    262262    IF (where(chtest EQ 0))[0] NE -1 THEN BEGIN 
    263       IF NOT keyword_set(noprint) THEN print, 'Points number '+strjoin(strtrim(where(chtest EQ 0), 1), ', ')+' are out of the grid' 
     263      IF NOT keyword_set(noprint) THEN BEGIN 
     264         ras = report('Points number '+strjoin(strtrim(where(chtest EQ 0), 1), ', ')+' are out of the grid') 
     265      ENDIF 
    264266      stop 
    265267    ENDIF 
    266268; points in more than one cell 
    267269    IF (where(chtest GT 1))[0] NE -1 THEN BEGIN 
    268       IF NOT keyword_set(noprint) THEN print, 'Points number '+strjoin(strtrim(where(chtest GT 1), 1), ', ')+' are in more than one cell' 
     270      IF NOT keyword_set(noprint) THEN BEGIN 
     271        ras = report('Points number '+strjoin(strtrim(where(chtest GT 1), 1), ', ')+' are in more than one cell') 
     272      ENDIF 
    269273      stop 
    270274    ENDIF 
     
    277281    CASE 1 OF 
    278282      found[0] EQ -1:BEGIN 
    279         IF NOT keyword_set(noprint) THEN print, 'The point is out of the cells' 
     283        IF NOT keyword_set(noprint) THEN BEGIN 
     284           ras = report('The point is out of the cells') 
     285        ENDIF 
    280286        IF keyword_set(onsphere) THEN BEGIN 
    281287; restore old !map... 
     
    289295      END 
    290296      n_elements(found) GT ntofind:BEGIN 
    291         IF NOT keyword_set(noprint) THEN print, 'The point is in more than one cell' 
     297        IF NOT keyword_set(noprint) THEN BEGIN 
     298          ras = report('The point is in more than one cell') 
     299        ENDIF 
    292300      END 
    293301      ELSE: 
Note: See TracChangeset for help on using the changeset viewer.