[netcdf-java] Can I tell if a GridDatatype is "enhanced"?

Hi,

I'm writing a method along the lines of:

double[] extractDataFrom(GridDatatype grid);

where the GridDatatype is being passed to me by "foreign" code out of my
control.  Do I have any way of telling whether the GridDatatype is
"enhanced", i.e. whether scale/offset/missing attributes are
automatically applied when I extract data?

And does it matter?  Can I program defensively to take care of both
situations (enhanced and not enhanced)?  I'm worried that simply
applying convertScaleOffsetMissing() to a value from an enhanced
GridDatatype might actually apply the enhancements twice and hence give
me the wrong answer.

Thanks,
Jon

--
Dr Jon Blower
Technical Director, Reading e-Science Centre
Environmental Systems Science Centre
University of Reading
Harry Pitt Building, 3 Earley Gate
Reading RG6 6AL. UK
Tel: +44 (0)118 378 5213
Fax: +44 (0)118 378 6413
j.d.blower@xxxxxxxxxxxxx
http://www.nerc-essc.ac.uk/People/Staff/Blower_J.htm






  • 2010 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: