Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

'valid_min', 'valid_max', and 'valid_range' question

I am currently writing some programs that 'pack' floating point
values into BYTE and SHORT variables, but keep the 'scale_factor'
and 'add_offset' attributes as FLOAT.

My question is about the valid_{min,max,range} attributes...

The NetCDF documentation says that 'valid_min', 'valid_max',
and 'valid_range' should be the same type as the packed variable,
but I'm finding it convenient to make them the same type as the
'scale_factor' and 'add_offset' attributes...

It would seem to me that the appropriate data-type for these
attributes depends on whether one wants to do range-checking
before or after scaling the variables..

How are other NetCDF developers handle this issue ?

Thanks,

-Randy

==

Randy Zagar                          E-Mail: zagar@xxxxxxxx
Sr. Scientific Programmer            E-Mail: zagar@xxxxxxxxxxxxxxxxxxx
College of Marine Studies             Voice: (302) 831-1139
University of Delaware                  FAX: (302) 831-6838
Newark, DE 19716

 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690