[Thread Prev][Thread Next][Index]

[ferret_users] plotting values of 0.0 for variables with scale_factor attribute



Hello,

I'm new to this list and to PyFerret (though I've used Ferret for a while).  I'm having an issue plotting fields with the netCDF scale_factor attribute.  For example, I have a 2D field "thck" (type float) with scale_factor = 1000., and with values of 0.0 in parts of the domain.  It seems that ferret gets confused about the zero values.
A manual fix is to use NCO to delete the scale_factor attribute and then multiply thck by 1000.  The zero values are of course still zero, but now they list and plot correctly.

I was wondering if this is a known issue and if there is a workaround within Ferret, without removing the attribute.

I'm using PyFerret v7.5 (optimized) on a Mac, with Darwin 17.7.0.  I have the same problem on Cheyenne, an NCAR HPC using PyFerret 7.5 with Linux 4.12.14-94.41-default.  I don't recall having this issue with earlier versions of Ferret (before PyFerret).

Thanks,
Bill 

--
William Lipscomb
National Center for Atmospheric Research
Boulder, CO
(505) 699-8016

[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement