Changeset 334
- Timestamp:
- 03/07/08 15:39:18 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ReadWrite/ncdf_getatt.pro
r327 r334 44 44 ; doesn't exist. 45 45 ; 46 ; @keyword long_name 47 ; Set this keyword to a named variable in which the value of 48 ; long_name is returned. Return empty string if this attribute 49 ; does not exist. 50 ; 51 ; @keyword standard_name 52 ; Set this keyword to a named variable in which the value of 53 ; standard_name (CF convention) is returned. Return empty string 54 ; if this attribute does not exist. 55 ; 46 56 ; @examples 47 57 ; IDL> ncdf_getatt, cdfid, 'sst', add_offset = add_offset, scale_factor = scale_factor, units = units … … 54 64 ; 55 65 ;- 56 PRO ncdf_getatt, fileid, varid, add_offset =add_offset$57 , scale_factor=scale_factor, missing_value=missing_value$58 , units=units, calendar=calendar66 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 59 69 ; 60 70 compile_opt idl2, strictarrsubs … … 68 78 missing_value = 'no' 69 79 calendar = 'greg' 80 long_name = '' 81 standard_name = '' 70 82 ; 71 83 varinq = ncdf_varinq(cdfid, varid) … … 90 102 END 91 103 ENDCASE 104 END 105 'long_name':BEGIN 106 ncdf_attget, cdfid, varid, attname, tmp 107 long_name = strtrim(tmp, 2) 108 END 109 'standard_name':BEGIN 110 ncdf_attget, cdfid, varid, attname, tmp 111 standard_name = strtrim(tmp, 2) 92 112 END 93 113 'add_offset':ncdf_attget, cdfid, varid, attname, add_offset
Note: See TracChangeset
for help on using the changeset viewer.