Ignore:
Timestamp:
03/20/08 23:06:02 (16 years ago)
Author:
smasson
Message:

update documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ReadWrite/ncdf_getatt.pro

    r334 r338  
    4949; does not exist. 
    5050; 
     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; 
    5155; @keyword standard_name 
    5256; Set this keyword to a named variable in which the value of 
    5357; standard_name (CF convention) is returned. Return empty string  
    5458; if this attribute does not exist. 
     59; 
     60; @keyword _EXTRA 
     61; defined only to be able to call ncdf_getatt with the _extra keyword 
    5562; 
    5663; @examples 
     
    6471; 
    6572;- 
    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 
     73PRO 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 
    6977; 
    7078  compile_opt idl2, strictarrsubs 
     
    131139    ENDELSE 
    132140  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; 
    134150  IF size(fileid, /type) EQ 7 THEN ncdf_close, cdfid 
    135151   
Note: See TracChangeset for help on using the changeset viewer.