[Thread Prev][Thread Next][Index]

Re: [ferret_users] Ship trackline: CALENDAR and LABEL command



Hi Goran,
For your first question, you can get part of the tlab string by applying the SUBSTRING function to the date string,

LET tlab = SUBSTRING("`T[GT=GDD1],RETURN=tstart`",13,5)

And, for your second question, assuming SST is a function only of time, put it in grave accents to force it to be evaluated, just as the longitude and latitude variables are evaluated

REPEAT/L=588:6088:500 (LABEL `longitude` `latitude-0.025` 1 0 0.1 "`SST`")

Ansley

Goran Georgievski wrote:

Dear Ferret users,

I have two netcdf files. One is model output another is ship track written as suggested by CF convention for storing trajectory data. I am able to plot ship trackline on the shade basemap as suggested in FAQ http://ferret.pmel.noaa.gov/Ferret/FAQ/custom_labels/label_dates.html
with
REPEAT/L=588:6088:500 (LET tlab = "`T[GT=GDD1],RETURN=tstart`"; LABEL `longitude` `latitude+0.025` 1 0 0.1 `tlab`)
However, output on the graph is 02-JAN-2004 05:43. Since this are hourly values and to improve visibility I would prefer to write only 05:43 instead of 02-JAN-2004 05:43.
I have tried with:

SET MODE CALENDAR:hours

but it does not work. Units atribute for time in netcdf file is
time:units = "seconds since 2004-01-01 00:00:00"
Ferret is 5.80

Other question is perhaps simple, but I am not sure how to do it. I would also like to use similar command as before to write values in the points along the trackline, for example: REPEAT/L=588:6088:500 (LABEL `longitude` `latitude-0.025` 1 0 0.1 SST)
but since label command expect argument of characetr type it writes "SST" instead of SST values. Is there a way to pass the value stored in the SST variable as an character argument to the LABEL command?
I'd be thankful for any suggestions how to resolve this problems.
Best regards,
Goran




[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement