- Timestamp:
- 05/08/11 22:11:19 (13 years ago)
- Location:
- trunk/SRC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Grid/computegrid.pro
r435 r465 373 373 ENDIF ELSE BEGIN 374 374 jpiglo = long(nx) 375 IF keyword_set(romsh) THEN jpiglo = jpiglo - 1376 375 IF n_elements(xminmesh) NE 0 THEN ixminmesh = long(xminmesh[0]) ELSE ixminmesh = 0l 377 376 IF n_elements(xmaxmesh) NE 0 THEN ixmaxmesh = long(xmaxmesh[0]) ELSE ixmaxmesh = jpiglo-1 … … 396 395 ENDIF ELSE BEGIN 397 396 jpjglo = long(ny) 398 IF keyword_set(romsh) THEN jpjglo = jpjglo - 1399 397 IF n_elements(yminmesh) NE 0 THEN iyminmesh = long(yminmesh[0]) ELSE iyminmesh = 0l 400 398 IF n_elements(ymaxmesh) NE 0 THEN iymaxmesh = long(ymaxmesh[0]) ELSE iymaxmesh = jpjglo-1 … … 1073 1071 if tmask[0] NE -1 then BEGIN 1074 1072 tmask = byte(temporary(tmask)) 1075 IF keyword_set(romsh) THEN tmask = tmask[0:jpiglo-1, 0:jpjglo-1]1076 1073 IF n_elements(mask) EQ nxx*nyy AND nzz GT 1 THEN BEGIN 1077 1074 tmask = tmask[*]#replicate(1b, nzz) -
trunk/SRC/ToBeReviewed/INIT/initncdf.pro
r421 r465 144 144 ; 145 145 ncdf_close, cdfid 146 ; 146 ;---------------------------------------------------------- 147 IF keyword_set(romsgrid) THEN BEGIN ; remove last column/row 148 sz = size(tmask) 149 nx = sz[1] & ny = sz[2] 150 xaxis = xaxis[0:nx-2, 0:ny-2] 151 yaxis = yaxis[0:nx-2, 0:ny-2] 152 romsh = romsh[0:nx-2, 0:ny-2] 153 CASE sz[0] OF 154 2:tmask = tmask[0:nx-2, 0:ny-2] 155 3:tmask = tmask[0:nx-2, 0:ny-2, *] 156 ENDCASE 157 ENDIF 147 158 ;---------------------------------------------------------- 148 159 ; call compute the grid
Note: See TracChangeset
for help on using the changeset viewer.