Changeset 236 for trunk/SRC/Interpolation
- Timestamp:
- 03/21/07 18:18:44 (17 years ago)
- Location:
- trunk/SRC/Interpolation
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Interpolation/angle.pro
r232 r236 111 111 fileoce = findfile(fileoce, count = okfile) 112 112 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') 114 114 stop 115 115 ENDIF -
trunk/SRC/Interpolation/compute_fromirr_bilinear_weigaddr.pro
r232 r236 72 72 IF n_elements(amsk) EQ 1 AND amsk[0] EQ -1 THEN amsk = replicate(1b, jpia, jpja) 73 73 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') 75 75 stop 76 76 ENDIF 77 77 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') 79 79 stop 80 80 ENDIF -
trunk/SRC/Interpolation/extrapolate.pro
r232 r236 75 75 IF n_elements(maskinput) EQ 1 AND maskinput[0] EQ -1 THEN maskinput = replicate(1b, nx, ny) 76 76 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') 78 78 return, -1 79 79 ENDIF -
trunk/SRC/Interpolation/extrapsmooth.pro
r232 r236 52 52 sz = size(reform(in)) 53 53 IF sz[0] NE 2 THEN BEGIN 54 print, 'Input arrays must have 2 dimensions'54 ras = report('Input arrays must have 2 dimensions') 55 55 return, -1 56 56 ENDIF … … 59 59 IF n_elements(mskin) EQ 1 AND mskin[0] EQ -1 THEN mskin = replicate(1b, nx, ny) 60 60 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') 62 62 return, -1 63 63 ENDIF -
trunk/SRC/Interpolation/fromirr.pro
r231 r236 110 110 'bilinear':compute_fromirr_bilinear_weigaddr, alon, alat, mskin, olon, olat, mskout, weig, addr 111 111 ELSE:BEGIN 112 print, ' unknown interpolation method... we stop'112 ras = report(' unknown interpolation method... we stop') 113 113 stop 114 114 ENDELSE -
trunk/SRC/Interpolation/fromreg.pro
r231 r236 113 113 'imoms3': compute_fromreg_imoms3_weigaddr, alon, alat, olon, olat, weig, addr, NONORTHERNLINE = nonorthernline, NOSOUTHERNLINE = nosouthernline 114 114 ELSE:BEGIN 115 print, ' unknown interpolation method... we stop'115 ras = report(' unknown interpolation method... we stop') 116 116 stop 117 117 ENDELSE -
trunk/SRC/Interpolation/get_gridparams.pro
r231 r236 87 87 ; get longitude and latitude 88 88 IF file_test(in1) EQ 0 THEN BEGIN 89 print, 'file ' + in1 + ' does not exist'89 ras = report('file ' + in1 + ' does not exist') 90 90 stop 91 91 ENDIF … … 102 102 END 103 103 ELSE:BEGIN 104 print, 'Bad nimber of input parameters'104 ras = report('Bad number of input parameters') 105 105 stop 106 106 end … … 140 140 1:BEGIN 141 141 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') 143 143 stop 144 144 ENDIF … … 161 161 1:BEGIN 162 162 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') 164 164 stop 165 165 ENDIF … … 182 182 1:BEGIN 183 183 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') 185 185 stop 186 186 ENDIF 187 187 lon = lon[*, 0] 188 188 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') 190 190 stop 191 191 ENDIF … … 199 199 ; lon and lat are not 1D and/or 2D arrays 200 200 ;------- 201 ELSE:stop 201 ELSE: BEGIN 202 ras = report('Longitudes and latitudes are not 1D and/or 2D arrays') 203 stop 204 END 202 205 ENDCASE 203 206 ; -
trunk/SRC/Interpolation/inquad.pro
r232 r236 261 261 ; points out of the cells 262 262 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 264 266 stop 265 267 ENDIF 266 268 ; points in more than one cell 267 269 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 269 273 stop 270 274 ENDIF … … 277 281 CASE 1 OF 278 282 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 280 286 IF keyword_set(onsphere) THEN BEGIN 281 287 ; restore old !map... … … 289 295 END 290 296 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 292 300 END 293 301 ELSE:
Note: See TracChangeset
for help on using the changeset viewer.