[Thread Prev][Thread Next][Index]

Re: question about netCDF attributes



On Jun 24,  4:20pm, Bill wrote:
> Subject: question about netCDF attributes
>
> Dear Ferret Users:
>
> Please forgive me as I am a new FERRET programmer.  I would
> like to lable some of my FERRET plots with variable and
> global attributes from my netCDF file.  Unfortunately,
> I have not figured out how to access the contents of
> these attributes.  (ie suppose I have a global attribute
> called "location" with value "Alaska" and I want to create
> a label like so:
>
> LABEL 1.0,1.0,0, 0, 0.1 ?
>
> so that it puts the word "Alaska" where I want it.
> What do I need to put where the ? is?
> Thanks in advance to anyone who can help.

Hi Bill,

Not all of the NetCdf attributes are available through the current Ferret
interface. The Users Gulde section on labels tells you which ones are --
basically "units" and "longname" and the missing value flags. They are
available through the automatically generated plot labels -- see the UG
sections on "Symbols".

In your example, the global attribute "location" will not be available directly
through Ferret ... though, you can use Unix commands in your Ferret script such
as:

    sp ncdump -h file.nc | sed 's/location/LABEL 1.0,1.0,0, 0, 0.1 /' >
cmnd.jnl
    GO cmnd


	- steve

-- 

		|  NOAA/PMEL               |  ph. (206) 526-6080  
Steve Hankin	|  7600 Sand Point Way NE  |  FAX (206) 526-6744
		|  Seattle, WA 98115-0070  |  hankin@pmel.noaa.gov


[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement