Changeset 501 for trunk/SRC/ReadWrite/ncdf_getatt.pro
- Timestamp:
- 09/20/16 20:15:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ReadWrite/ncdf_getatt.pro
r495 r501 58 58 ; if this attribute does not exist. 59 59 ; 60 ; @keyword interval_operation 61 ; Set this keyword to a named variable in which the value of 62 ; interval_operation is returned. Return -1 if this attribute 63 ; does not exist. 64 ; 60 65 ; @keyword _EXTRA 61 66 ; defined only to be able to call <pro>ncdf_getatt</pro> with the … … 76 81 , MISSING_VALUE = missing_value, UNITS = units, CALENDAR = calendar $ 77 82 , LONG_NAME = long_name, STANDARD_NAME = standard_name, DOUBLE = double $ 78 , _extra = ex83 , INTERVAL_OPERATION = interval_operation, _extra = ex 79 84 ; 80 85 compile_opt idl2, strictarrsubs … … 94 99 long_name = '' 95 100 standard_name = '' 101 interval_operation = -1 96 102 ; 97 103 varinq = ncdf_varinq(cdfid, varid) … … 136 142 '_fillvalue':ncdf_attget, cdfid, varid, attname, missing_value 137 143 'missing_value':ncdf_attget, cdfid, varid, attname, missing_value 144 'interval_operation':BEGIN 145 ncdf_attget, cdfid, varid, attname, tmp 146 tmp = string(tmp) 147 interval_operation = fix(strmid(tmp,0,strpos(tmp,' '))) 148 END 138 149 ELSE: 139 150 ENDCASE … … 148 159 missing_value = tmp 149 160 ENDIF ELSE BEGIN 150 ras = report('Warning: missing value is not a number: ' + missing_value) 151 missing_value = 'no' 161 ;; ras = report('Warning: missing value is not a number: ' + missing_value) 162 ;; missing_value = 'no' 163 missing_value = (byte(strlowcase(a)))[0] 152 164 ENDELSE 153 165 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.