[Thread Prev][Thread Next][Index]

Re: [ferret_users] ppl txlabp, 0 can't turn off the time axis label



Hi Jean,
I'm including the Users List in this answer to close the thread there -

The time axis in your data file, TANNUAL, does not have a complete calendar definition, because it does not have a time origin.  For this axis, the netCDF file has attributes units="year" and axis="T", but no time origin.  In Ferret, we can see this using a SHOW AXIS command:
yes? use Sv_shift_lev_all_82_08_v3.cdf
yes? show axis TANNUAL
 name       axis              # pts   start                end
 TANNUAL   T (YEAR)            24 r   1980                 2003
T0 = %%
   Axis span (to cell edges) = 24
Ferret can make plots with data on this axis, and the axis is labeled with numbers that correspond to years, but since it is not a true calendar axis, some time operations will not work with it, including the special formatting of plot axes, and also for instance if you tried to regrid data between this axis and another time axis, that would fail because Ferret wouldn't have enough information about how to convert between the time units.

If you add a time origin to the axis, then the PPL TXLABP command will work correctly:

yes? use Sv_shift_lev_all_82_08_v3.cdf
yes? set axis/t0="1-jan-0000" TANNUAL
...

(or, you could leave the original definition as it is, and treat this as a general T axis, without special calendar definitions. The PPL AXLAPB,1,0 command would remove the axis labeling from the vertical axis of plots.)



jean li wrote:
Dear ferret users:

I couldn't turn off the time axis label using ppl txlabp,0.
It worked one time, but stops working lately. Are there any tricks to make it work again?

Jean




[Thread Prev][Thread Next][Index]

Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement