[Thread Prev][Thread Next][Index]

Re: [ferret_users] How to grab time info?



Hi Szymon,

> How can I grab the time label e.g. when I do the command
> let swh = hstmp[i=1:132,j=1:145,k=0,l=$1] I loose information about the time
> (i.e. 16-Jan-2011 01:00)

I would expect the time information to still be here when you do 
"list swh". Is that correct?

> and then when I smooth
> let swh_smooth =
> scat2gridgauss_xy(xp[i=1:`npts`],yp[i=1:`npts`],dp[i=1:`npts`],x[g=grid_xfine_yfine],y[g=grid_xfine_yfine],xscale,yscale,cutoff,0)
> set var/title = "Significant Wave Height [m]" swh_smooth

You've removed the time information here, because you're not defining a
grid with a time axis for the new variable.  Try re-assigning a time
axis to variable swh_smooth, for example

let swh_smooth_with_time = swh_smooth[gt=swh]

You may have to define a new time axis with only 1 time step.
Alternatively, to plot a label you can use

`t[g=swh,l=$1],return=tend`

which gives you the formatted date/time string.

Kind regards,
     Hein

-- 

Dr. Hein Zelle
Advisor Meteorology & Oceanography

Tel:    +31 (0)527-242299
Fax:    +31 (0)527-242016
Email:  hein.zelle@xxxxxxxxxxxxx
Web:    www.bmtargoss.com

BMT ARGOSS
P.O. Box 61, 8325 ZH Vollenhove
Voorsterweg 28, 8316 PT Marknesse
The Netherlands

----Confidentiality Notice & Disclaimer---- 

The contents of this e-mail and any attachments are intended for the
use of the mail addressee(s) shown. If you are not that person, you
are not allowed to read it, to take any action based upon it or to
copy it, forward, distribute or disclose the contents of it and you
should please delete it from your system. BMT ARGOSS does not accept
liability for any errors or omissions in the context of this e-mail or
its attachments which arise as a result of internet transmission, nor
accept liability for statements which are those of the author and
clearly not made on behalf of BMT ARGOSS.


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

Privacy Policy | Disclaimer | Accessibility Statement