Changeset 302 for trunk/SRC/Grid/ncdf_meshread.pro
- Timestamp:
- 10/10/07 14:29:38 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Grid/ncdf_meshread.pro
r273 r302 12 12 ; @param filename {in}{optional}{default='meshmask.nc'}{type=scalar string} 13 13 ; Name of the meshmask file to read. If this name does not contain any "/" 14 ; and if iodirectory keyword is not specif y, then the common variable14 ; and if iodirectory keyword is not specified, then the common variable 15 15 ; iodir will be used to define the mesh file path. 16 16 ; … … 479 479 ; 1d arrays 480 480 ;------------------------------------------------------- 481 IF (where(allvarname EQ 'e3t_O'))[0] NE -1 THEN fnamevar = ['e3t_O', 'e3w_O', 'gdept_O', 'gdepw_O'] $ 482 ELSE fnamevar = ['e3t', 'e3w', 'gdept', 'gdepw'] 481 483 namevar = ['e3t', 'e3w', 'gdept', 'gdepw'] 482 484 for i = 0, n_elements(namevar)-1 do begin … … 484 486 CASE n_elements(varinq.dim) OF 485 487 4:BEGIN 486 command = 'ncdf_varget,cdfid, namevar[i],'+namevar[i] $488 command = 'ncdf_varget,cdfid,fnamevar[i],'+namevar[i] $ 487 489 +',offset = [0,0,izminmesh,0], count = [1,1,jpk,1]' 488 490 if key_stride[2] NE 1 then command = command+', stride=[1,1,key_stride[2],1]' 489 491 END 490 492 2:BEGIN 491 command = 'ncdf_varget,cdfid, namevar[i],'+namevar[i] $493 command = 'ncdf_varget,cdfid,fnamevar[i],'+namevar[i] $ 492 494 +',offset = [izminmesh,0], count = [jpk,1]' 493 495 if key_stride[2] NE 1 then command = command+', stride=key_stride[2]' 494 496 END 495 497 1:BEGIN 496 command = 'ncdf_varget,cdfid, namevar[i],'+namevar[i] $498 command = 'ncdf_varget,cdfid,fnamevar[i],'+namevar[i] $ 497 499 +',offset = [izminmesh], count = [jpk]' 498 500 if key_stride[2] NE 1 then command = command+', stride=key_stride[2]'
Note: See TracChangeset
for help on using the changeset viewer.