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/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; 
Note: See TracChangeset for help on using the changeset viewer.