[Thread Prev][Thread Next][Index]
RE: long_name_mod
All,
Thanks to offline help from Steve and Ansley I have a solution:
The long_name_mod attribute should be saved in the file as it may contain potentially useful regridding information.
To disable long_name_mod's appearance on the plot assign the variable form the file to a temp plotting variable, e.g.:
! Now read the file and make sample contour plot
USE foo.nc
SET REGION/T=1-JAN-2000:31-JAN-2000
let plot_var = SALINITY_FILT ! New var will not contain long_name_mod attribute
set var/title="`SALINITY_FILT,return=title`"/units="`SALINITY_FILT,return=units`" plot_var
FILL plot_var
Hope this helps someone else,
Mike
> -----Original Message-----
> From: McCann, Mike [mailto:mccann@mbari.org]
> Sent: Thursday, January 08, 2004 12:03 PM
> To: Ferret Users Mailing List
> Subject: long_name_mod
>
>
> Dear Ferreters,
>
> When I save filtered variable created using CONVOLVEL as a
> netCDF file a
> long_name_mod variable attribute is written to the file.
> This attribute
> is put in parentheses when I plot it (I would like this not
> to happen).
>
> How do I save the variable without this long_name_mod attribute?
>
> e.g.:
>
> USE
> "http://dods.mbari.org/cgi-bin/nph-nc/data/OASISdata/netcdf/ho
urlyM1.nc"
LET W = i[i=1:3]
LET SALINITY_FILT = CONVOLVEL(SALINITY_HR,W)
SET VAR/TITLE="Filtered Salinity"/UNITS="" SALINITY_FILT
SAVE/CLOBBER/FILE="foo.nc" SALINITY_FILT
SPAWN ncdump -h foo.nc
! Now read the file and make sample contour plot
CANCEL VAR SALINITY_FILT
USE foo.nc
SET REGION/T=1-JAN-2000:31-JAN-2000
FILL SALINITY_FILT
Thanks in advance,
Mike
--
Mike McCann (mccann at mbaridotorg)
Monterey Bay Aquarium Research Institute
7700 Sandholdt Road
Moss Landing, CA 95039-9644
Voice: (831) 775-1769 Fax: (831) 775-1646 http://www.mbari.org/rd/iag.htm
[Thread Prev][Thread Next][Index]
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement