Changeset 19
- Timestamp:
- 05/15/07 15:07:51 (17 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/condmag_on_orca.pro
r18 r19 29 29 ; @restrictions 30 30 ; - Requires SAXO tools 31 ; - must have condmag.nc in ${GEOMAG_ID}/32 ; - must have meshmask for ORCA2 or ORCA025 in ${GEOMAG_ID}/33 ; - must not have cond_sed_*.nc in ${GEOMAG_OD}/34 ; - must not have Br_*.nc in ${GEOMAG_OD}/35 31 ; 36 32 ; @todo … … 42 38 ; 43 39 ; @pre 44 ; be sure to have datafile condmag.nc in the directory defined in 45 ; ${GEOMAG_ID}/ see geomag_env.sh 40 ; see geomag_profile.sh 41 ; be sure to have condmag.nc in the directory defined in 42 ; ${GEOMAG_ID}/ 46 43 ; be sure to have meshmask of ORCA grid you choose in the directory defined in 47 44 ; ${GEOMAG_ID}/ … … 51 48 ; 52 49 ; @post 50 ; see geomag_profile.sh 53 51 ; cond_sed_<I>orcasres</I>.nc is now present in ${GEOMAG_OD}/ 54 52 ; Br_<I>orcasres</I>.nc is now present in ${GEOMAG_OD}/ 55 ; see geomag_env.sh56 53 ; 57 54 ; @examples -
trunk/condmag_output.pro
r18 r19 91 91 'ORCA2': BEGIN 92 92 msg = 'iii : valid orcares parameter = ' + orcares 93 PRINT, msg93 ras = report(msg) 94 94 END 95 95 'ORCA025': BEGIN 96 96 msg = 'iii : valid orcares parameter = ' + orcares 97 PRINT, msg97 ras = report(msg) 98 98 END 99 99 ELSE : BEGIN 100 100 msg = 'eee : invalid orcares parameter = ' + orcares 101 PRINT, msg101 ras = report(msg) 102 102 msg = 'eee : orcares must be ORCA2 or ORCA025' 103 PRINT, msg103 ras = report(msg) 104 104 RETURN 105 105 END … … 111 111 'cond_sed': BEGIN 112 112 msg = 'iii : valid variable.NAME parameter = ' + variable.NAME 113 PRINT, msg113 ras = report(msg) 114 114 CASE title OF 115 115 'Conductance': BEGIN 116 116 msg = 'iii : valid title parameter = ' + title 117 PRINT, msg117 ras = report(msg) 118 118 END 119 119 ELSE : BEGIN 120 120 msg = 'eee : invalid title parameter = ' + title 121 PRINT, msg121 ras = report(msg) 122 122 msg = 'eee : title must be Conductance' 123 PRINT, msg123 ras = report(msg) 124 124 RETURN 125 125 END … … 128 128 'Conductance': BEGIN 129 129 msg = 'iii : valid long_name parameter = ' + long_name 130 PRINT, msg130 ras = report(msg) 131 131 END 132 132 ELSE : BEGIN 133 133 msg = 'eee : invalid long_name parameter = ' + long_name 134 PRINT, msg134 ras = report(msg) 135 135 msg = 'eee : long_name must be Conductance' 136 PRINT, msg136 ras = report(msg) 137 137 RETURN 138 138 END … … 141 141 'siemens': BEGIN 142 142 msg = 'iii : valid units parameter = ' + units 143 PRINT, msg143 ras = report(msg) 144 144 END 145 145 ELSE : BEGIN 146 146 msg = 'eee : invalid units parameter = ' + units 147 PRINT, msg147 ras = report(msg) 148 148 msg = 'eee : units must be siemens' 149 PRINT, msg149 ras = report(msg) 150 150 RETURN 151 151 END … … 154 154 'Br' : BEGIN 155 155 msg = 'iii : valid variable.NAME parameter = ' + variable.NAME 156 PRINT, msg156 ras = report(msg) 157 157 CASE title OF 158 158 'Magnetic field': BEGIN 159 159 msg = 'iii : valid title parameter = ' + title 160 PRINT, msg160 ras = report(msg) 161 161 END 162 162 ELSE : BEGIN 163 163 msg = 'eee : invalid title parameter = ' + title 164 PRINT, msg164 ras = report(msg) 165 165 msg = 'eee : title must be Magnetic field' 166 PRINT, msg166 ras = report(msg) 167 167 RETURN 168 168 END … … 171 171 'magnetic field': BEGIN 172 172 msg = 'iii : valid long_name parameter = ' + long_name 173 PRINT, msg173 ras = report(msg) 174 174 END 175 175 ELSE : BEGIN 176 176 msg = 'eee : invalid long_name parameter = ' + long_name 177 PRINT, msg177 ras = report(msg) 178 178 msg = 'eee : long_name must be magnetic field' 179 PRINT, msg179 ras = report(msg) 180 180 RETURN 181 181 END … … 184 184 'tesla': BEGIN 185 185 msg = 'iii : valid units parameter = ' + units 186 PRINT, msg186 ras = report(msg) 187 187 END 188 188 ELSE : BEGIN 189 189 msg = 'eee : invalid units parameter = ' + units 190 PRINT, msg190 ras = report(msg) 191 191 msg = 'eee : units must be tesla' 192 PRINT, msg192 ras = report(msg) 193 193 RETURN 194 194 END … … 197 197 ELSE : BEGIN 198 198 msg = 'eee : invalid variable.NAME parameter = ' + variable.NAME 199 PRINT, msg199 ras = report(msg) 200 200 msg = 'eee : variable.NAME must be cond_sed or Br' 201 PRINT, msg201 ras = report(msg) 202 202 RETURN 203 203 END … … 207 207 IF jpio LT 1 THEN BEGIN 208 208 msg = ' eee : invalid jpio parameter = ' + STRING(jpio) 209 PRINT, msg209 ras = report(msg) 210 210 msg = ' eee : jpio must be greater or equal to 1' 211 PRINT, msg211 ras = report(msg) 212 212 RETURN 213 213 ENDIF ELSE BEGIN 214 214 msg = 'iii : valid jpio parameter = ' + STRING(jpio) 215 PRINT, msg215 ras = report(msg) 216 216 ENDELSE 217 217 ; … … 219 219 IF jpjo LT 1 THEN BEGIN 220 220 msg = ' eee : invalid jpjo parameter = ' + STRING(jpjo) 221 PRINT, msg221 ras = report(msg) 222 222 msg = ' eee : jpjo must be greater or equal to 1' 223 PRINT, msg223 ras = report(msg) 224 224 RETURN 225 225 ENDIF ELSE BEGIN 226 226 msg = 'iii : valid jpjo parameter = ' + STRING(jpjo) 227 PRINT, msg227 ras = report(msg) 228 228 ENDELSE 229 229 ; … … 232 232 IF (N_ELEMENTS(olon) NE jpio*jpjo) THEN BEGIN 233 233 msg = ' eee : invalid nb of elements of olon parameter = ' + STRING(N_ELEMENTS(olon)) 234 PRINT, msg234 ras = report(msg) 235 235 msg = ' eee : nb of elements of olon must be equal to jpio*jpjo = ' + STRING(jpio*jpjo) 236 PRINT, msg236 ras = report(msg) 237 237 RETURN 238 238 ENDIF ELSE BEGIN 239 239 msg = 'iii : valid nb of elements olon parameter' 240 PRINT, msg240 ras = report(msg) 241 241 ENDELSE 242 242 ; … … 247 247 '' : BEGIN 248 248 msg = 'eee : ${GEOMAG_OD} is not defined' 249 PRINT, msg249 ras = report(msg) 250 250 RETURN 251 251 END 252 252 ELSE: BEGIN 253 253 msg = 'iii : ${GEOMAG_OD} is ' + geomag_od_env 254 PRINT, msg254 ras = report(msg) 255 255 END 256 256 ENDCASE … … 262 262 IF (FILE_TEST(iodirout, /DIRECTORY,/WRITE) EQ 0) THEN BEGIN 263 263 msg = 'eee : the directory' + iodirout + ' was not found.' 264 PRINT, msg264 ras = report(msg) 265 265 RETURN 266 266 ENDIF … … 273 273 IF (FILE_TEST(fullfilename) EQ 1) THEN BEGIN 274 274 msg = 'eee : the file ' + fullfilename + ' already exists.' 275 PRINT, msg275 ras = report(msg) 276 276 RETURN 277 277 ENDIF … … 355 355 ; 356 356 msg = 'iii : ' + fullfilename + ' created' 357 PRINT, msg357 ras = report(msg) 358 358 ; 359 359 END -
trunk/initorca2_bab.pro
r17 r19 10 10 ; @todo 11 11 ; parametrisation for ORCA025 12 ; can I use CASE statement in a file called by @...++ 13 ; can I use RETURN or STOP statement in a file called by @...++ 12 14 ; 13 15 ; zminmesh and izmaxmesh may be set to 0,0 because we only work with … … 31 33 @cm_4data 32 34 ; 33 ;--------------------------------------------------------- 35 36 ; test if ${GEOMAG_ID} defined 37 geomag_id_env=GETENV('GEOMAG_ID') 38 ; ++ pb syntaxe case dans @... 39 40 iodirin = isadirectory(geomag_id_env) 41 ; 42 ; existence and protection of ${GEOMAG_ID} ++ 43 44 filename_oce='meshmask_bab.nc' 45 ; check if this file exists 46 fullfilename_oce = isafile(iodirin + filename_oce, NEW=0, /MUST_EXIST, $ 47 RECURSIVE=0) 48 print,fullfilename_oce[0] 49 50 ;-------------------------------------------------------- 34 51 ; boundaries of the read grid regarding to the original grid 35 52 ;---------------------------------------------------------- … … 49 66 ; read the grid 50 67 ;------------------------------------------------------ 51 iodir = '/usr/work/sur/fvi/OPA/ORCA2/'52 68 53 69 key_stride = [1, 1, 1] 54 ncdf_meshlec, 'meshmask_bab.nc', glamboundary = [20, 380]70 ncdf_meshlec, fullfilename_oce[0], glamboundary = [20, 380] 55 71 ;------------------------------------------------------------- 56 72 domdef -
trunk/step1_diff.pro
r17 r19 65 65 IF fullfile1[0] EQ '' THEN BEGIN 66 66 msg = 'eee : the file ' + fullfile1 + ' was not found.' 67 PRINT, msg67 ras = report(msg) 68 68 RETURN 69 69 ENDIF … … 72 72 IF (FILE_TEST(fullfile1[0], /READ) EQ 0) THEN BEGIN 73 73 msg = 'eee : the file ' + fullfile1[0] + ' is not readable.' 74 PRINT, msg74 ras = report(msg) 75 75 RETURN 76 76 ENDIF … … 80 80 IF fullfile2[0] EQ '' THEN BEGIN 81 81 msg = 'eee : the file ' + fullfile2 + ' was not found.' 82 PRINT, msg82 ras = report(msg) 83 83 RETURN 84 84 ENDIF … … 87 87 IF (FILE_TEST(fullfile2[0], /READ) EQ 0) THEN BEGIN 88 88 msg = 'eee : the file ' + fullfile2[0] + ' is not readable.' 89 PRINT, msg89 ras = report(msg) 90 90 RETURN 91 91 ENDIF … … 107 107 IF count EQ 0 THEN BEGIN 108 108 msg = 'iii : delta is zero everywhere' 109 PRINT, msg109 ras = report(msg) 110 110 ENDIF ELSE BEGIN 111 111 msg = 'iii : delta is not zero ' + STRING(count) + ' times' 112 PRINT, msg112 ras = report(msg) 113 113 ENDELSE 114 114 ; … … 118 118 IF (FILE_TEST(file3) EQ 1) THEN BEGIN 119 119 msg = 'eee : the file ' + file3 + ' already exists.' 120 PRINT, msg120 ras = report(msg) 121 121 RETURN 122 122 ENDIF … … 202 202 ; 203 203 msg = 'iii : ' + file3 + ' created' 204 PRINT, msg204 ras = report(msg) 205 205 ; 206 206 END
Note: See TracChangeset
for help on using the changeset viewer.