comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: netCDF Browser Update
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: netCDF Browser Update [message #67733] Mon, 24 August 2009 15:34
David Fanning is currently offline  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 Go to previous message
Matt[2] is currently offline  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
Re: netCDF Browser Update [message #67735 is a reply to message #67734] Mon, 24 August 2009 14:54 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> The updated file can be found here:
>
> http:http://www.dfanning.com/programs/ncdf_data__define.pro

Whoops! Should be this:

http://www.dfanning.com/programs/ncdf_data__define.pro

Cheers,

David
--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: netCDF Browser Update
Next Topic: Re: CHISQR_CVF question. -RESOLVED

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 06:44:27 PDT 2025

Total time taken to generate the page: 0.72014 seconds