Changeset 181 for trunk/SRC/ToBeReviewed/LECTURE/read_ncdf.pro
- Timestamp:
- 09/15/06 10:24:36 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/LECTURE/read_ncdf.pro
r174 r181 561 561 ncdf_attget, cdfid, 'hc', hc, /global 562 562 ; look for all variables names 563 allvarnames = strarr( varcontient.nvars)564 FOR i = 0, varcontient.nvars-1 DO BEGIN563 allvarnames = strarr(contient.nvars) 564 FOR i = 0, contient.nvars-1 DO BEGIN 565 565 tmp = ncdf_varinq( cdfid, i) 566 566 allvarnames[i] = tmp.name … … 568 568 CASE 1 OF 569 569 keyword_set(hfilename): $ 570 hroms = read_ncdf('h', 0, 0, FILENAME = hfile $570 hroms = read_ncdf('h', 0, 0, FILENAME = hfilename $ 571 571 , /TIMESTEP, /NOSTRUCT, CONT_NOFILL = CONT_NOFILL $ 572 572 , GRID = vargrid, /CALLITSELF, _EXTRA = ex) … … 583 583 , /TIMESTEP, /NOSTRUCT, CONT_NOFILL = CONT_NOFILL $ 584 584 , GRID = vargrid, /CALLITSELF, _EXTRA = ex) 585 (where(allvarnames EQ ' h'))[0] NE -1: $585 (where(allvarnames EQ 'zeta'))[0] NE -1: $ 586 586 zeta = read_ncdf('zeta', firsttps, lasttps, FILENAME = filename $ 587 587 , /TIMESTEP, /NOSTRUCT, CONT_NOFILL = CONT_NOFILL $
Note: See TracChangeset
for help on using the changeset viewer.