[Thread Prev][Thread Next][Index]

Re: title of variable



Hiroyuki Tomita wrote:

> I read a NetCDF file created by ferret
> and then the command "show data" gives following result.
> 
> yes? sho data
>      currently SET data sets:
>     1> ./NRA1_WND_6HR_DAILY_1992-2000.nc  (default)
>  name     title                             I         J         K       
>   L
>  WND      NRA1 Wind Speed                  1:192     1:94      ...      
>  1:3288
>        (T=31-DEC-1991 12:00:31-DEC-1992 12:00)
>
> I want to erace the string "(T=31-DEC-1991 12:00:31-DEC-1992 12:00)"
> because this string does not make sense in my NetCDF file.
> How can I do it?
>
> I guessed this string is title of variable,
> so I tried to re-title using follwing command
> set var/title="NRA1 Wind Speed" WND
> But the string was not erased.

I'm not sure if the string is actually in the title, looking at the
output it seems that the title is just "NRA1 Wind Speed", as it should
be. From a shell command line, you can do

ncdump -h NRA1_WND_6HR_DAILY_1992-2000.nc

to see what attribute the string is stored in. If it's in the title
then it should be in the "long_name" attribute. Once you know the
attribute, you can use (again from a command line) the program ncatted
from the NetCdf Operators toolkit (NCO) to remove or modify the
offending attribute. Something like

ncatted -a annoying_attribute,d,WND,c,""   NRA1_WND_6HR_DAILY_1992-2000.nc

(check the ncatted manual page for more exact information).

Good luck,
     Hein Zelle
 
>-----------------------------------------------------------------<
    Hein Zelle
    Dept. of Oceographic Research
    KNMI, The Netherlands
    work:        zelle@knmi.nl     http://www.knmi.nl/~zelle
    private:     hein@icce.rug.nl  http://www.icce.rug.nl/~hein
    Phone:       +31 (0)30 2206704
>-----------------------------------------------------------------<
-------------------------------------------------------------- 

Zie ook/see also: http://www.knmi.nl/maildisclaimer.html 
 


[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement