This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
On 11/22/2010 4:09 PM, Robert B. Schmunk wrote:
On Nov 22, 2010, at 17:53, John Caron wrote:then, when you enhance it, it turns it into a double by applying the scale/offset, and the non-string attributes are:I always use NetcdfDataset.acquireFile(String,CancelTask) to open datasets. Poking through the API, it looks to me like using this method always turns on enhancement.
NetcdfDataset.acquireDataset() uses enhanced mode by deafult, i dont think acquireFile() does though
it removes scale/offset attributes so they they dont get applied again. the missing values are converted to NaNs, and those are also removed since they dont make sense anymore now that the variables is a double.Has this dropping of listed attributes from the reported variable description always been the case, or something that occurred when NJ went up to version 4? It's not something I've ever noticed before, but now that you explain it, it sounds like the same thing that was going on when a fellow at GSFC wrote to me a month or so ago about an HDF file in which some attributes were not being reported. rbs
yes, always
-- Robert B. Schmunk, address@hidden NASA Goddard Institute for Space Studies, 2880 Broadway, New York, NY 10025