Changeset 501 for trunk/SRC/ToBeReviewed/LECTURE/read_ncdf.pro
- Timestamp:
- 09/20/16 20:15:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/LECTURE/read_ncdf.pro
r500 r501 120 120 , GRID = grid, CALLITSELF = callitself, DIREC = direc $ 121 121 , ZETAFILENAME = zetafilename, ZETAZERO = zetazero $ 122 , ZINVAR = zinvar, _EXTRA = ex122 , ZINVAR = zinvar, ISROMS = isroms, _EXTRA = ex 123 123 ; 124 124 compile_opt idl2, strictarrsubs … … 164 164 dimnames[i] = tmp 165 165 ENDFOR 166 ;------------------------------------------------------------167 ; we check if the variable has a vertical dimension and/or168 ; a record dimension. This is useful to define boxzoom169 ; keyword in domdef170 ;------------------------------------------------------------171 dummy = where(varinq.dim EQ inq.recdim, tinvar)172 ; check the presence of a vertical dimension according to the173 ; number of dimensions and the presence of a record dimension174 zinvar = (varinq.ndims EQ 3 AND tinvar NE 1) OR varinq.ndims EQ 4175 ;------------------------------------------------------------176 ; shall we redefine the grid parameters177 ;------------------------------------------------------------178 IF keyword_set(init) THEN initncdf, filename, _extra = ex179 166 ;------------------------------------------------------------ 180 167 ; check the time axis and the debut and ending dates … … 248 235 END 249 236 ENDCASE 237 IF inq.recdim EQ -1 AND jpt NE 1 THEN inq.recdim = varinq.dim[varinq.ndims-1] 238 ;------------------------------------------------------------ 239 ; we check if the variable has a vertical dimension and/or 240 ; a record dimension. This is useful to define boxzoom 241 ; keyword in domdef 242 ;------------------------------------------------------------ 243 dummy = where(varinq.dim EQ inq.recdim, tinvar) 244 ; check the presence of a vertical dimension according to the 245 ; number of dimensions and the presence of a record dimension 246 zinvar = (varinq.ndims EQ 3 AND tinvar NE 1) OR varinq.ndims EQ 4 247 ;------------------------------------------------------------ 248 ; shall we redefine the grid parameters 249 ;------------------------------------------------------------ 250 IF keyword_set(init) THEN initncdf, filename, _extra = ex 250 251 ;------------------------------------------------------------ 251 252 ; Name of the grid on which the field refer to. … … 405 406 ; if it is roms outputs, we need to get additional infos... 406 407 IF NOT keyword_set(callitself) THEN BEGIN 407 IF strmid(dimnames[0], 0, 3) EQ 'xi_' AND strmid(dimnames[1], 0, 4) EQ 'eta_'THEN BEGIN408 IF (strmid(dimnames[0], 0, 3) EQ 'xi_' AND strmid(dimnames[1], 0, 4) EQ 'eta_') OR keyword_set(isroms) THEN BEGIN 408 409 ncdf_attget, cdfid, 'theta_s', theta_s, /global 409 410 ncdf_attget, cdfid, 'theta_b', theta_b, /global
Note: See TracChangeset
for help on using the changeset viewer.