Re: netCDF Browser Update [message #67733] |
Mon, 24 August 2009 15:34 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
savoie@nsidc.org writes:
> It should have a keyword "BONEHEADED" so when the NETCDF has the scale
> and offset backwards you can divide by the scale and subtract the
> offset.
>
> It happens all the time.
Humm. Good point.
It certainly is hard to imagine a standard that is
*less* a standard than netCDF files. (Perhaps the
netCDF conventions are not organized very well, or
are too hard to read, or are simply ignored by the
"seems right" crowd.)
When is that version of IDL coming out that can
read your mind and run what you *think* you are
writing instead of what you are *actually* writing!?
You know, the one that is the polar opposite of
Microsoft Word.
Cheers,
David
--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: netCDF Browser Update [message #67734 is a reply to message #67733] |
Mon, 24 August 2009 15:17  |
Matt[2]
Messages: 69 Registered: March 2007
|
Member |
|
|
It should have a keyword "BONEHEADED" so when the NETCDF has the scale
and offset backwards you can divide by the scale and subtract the
offset.
It happens all the time.
Matt
David Fanning <news@dfanning.com> writes:
> Folks,
>
> The NCDF_Browser application allows the user to browse
> netCDF and certain HDF data files for variables, attributes,
> and so on. Variables can be saved to the main IDL level. This
> update applies to variables that are saved (or read from the
> file) without their attributes. Such a variable is now checked
> for SCALE_FACTOR and ADD_OFFSET attributes. If found, the
> variable is now multiplied by the scale factor and has the
> offset added to it before the variable is returned or saved.
>
> The updated file can be found here:
>
> http:http://www.dfanning.com/programs/ncdf_data__define.pro
>
> Note that nothing is changed if you download the variable
> *with* its attributes. The "data" in such a variable structure
> is still the raw data and you would be expected to apply the
> scale factor and offset yourself.
>
> This change will make it more convenient to work with individual
> netCDF variables from within the NCDF_Browser.
>
> Cheers,
>
> David
--
Matthew Savoie - Scientific Programmer
National Snow and Ice Data Center
(303) 735-0785 http://nsidc.org
|
|
|
|