Changeset 338 for trunk/SRC/ReadWrite/ncdf_getatt.pro
- Timestamp:
- 03/20/08 23:06:02 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ReadWrite/ncdf_getatt.pro
r334 r338 49 49 ; does not exist. 50 50 ; 51 ; @keyword DOUBLE {default=0} {type=1 or 0} 52 ; activate to force double-precision floating-point value of 53 ; add_offset and scale_factor 54 ; 51 55 ; @keyword standard_name 52 56 ; Set this keyword to a named variable in which the value of 53 57 ; standard_name (CF convention) is returned. Return empty string 54 58 ; if this attribute does not exist. 59 ; 60 ; @keyword _EXTRA 61 ; defined only to be able to call ncdf_getatt with the _extra keyword 55 62 ; 56 63 ; @examples … … 64 71 ; 65 72 ;- 66 PRO ncdf_getatt, fileid, varid, add_offset = add_offset, scale_factor = scale_factor $ 67 , missing_value = missing_value, units = units, calendar = calendar $ 68 , long_name = long_name, standard_name = standard_name 73 PRO ncdf_getatt, fileid, varid, ADD_OFFSET = add_offset, SCALE_FACTOR = scale_factor $ 74 , MISSING_VALUE = missing_value, UNITS = units, CALENDAR = calendar $ 75 , LONG_NAME = long_name, STANDARD_NAME = standard_name, DOUBLE = double $ 76 , _extra = ex 69 77 ; 70 78 compile_opt idl2, strictarrsubs … … 131 139 ENDELSE 132 140 ENDIF 133 141 ; 142 IF keyword_set(double) THEN BEGIN 143 add_offset = double(add_offset) 144 scale_factor = double(scale_factor) 145 ENDIF ELSE BEGIN 146 add_offset = float(add_offset) 147 scale_factor = float(scale_factor) 148 ENDELSE 149 ; 134 150 IF size(fileid, /type) EQ 7 THEN ncdf_close, cdfid 135 151
Note: See TracChangeset
for help on using the changeset viewer.