[Thread Prev][Thread Next][Index]

Re: [ferret_users] Problem with vector plot



Hi,
Take a look at the TAX functions.  These let you convert time coordinates to various formats including a date string,

yes? show functions tax*

TAX_DATESTRING is the one you want; you can tell the function how much of the string to list.  See the documentation for the details about calling this function.  I have one more hint.  In the example from the documentation, you could add the /NOROW qualifier to the LIST command, to remove the coordinates at the start of each row; and perhaps /NOHEADER. So here's an alternate example,
yes? define axis/t=1-jan-1980:1-jan-1990:4/unit=days tax
yes? let date_list = t[gt=tax,t=9-jun-1980:26-jun-1980]
yes? list/noheader/norowheader tax_datestring(date_list,t[gt=tax], "day")

"09-JUN-1980"
"13-JUN-1980"
"17-JUN-1980"
"21-JUN-1980"
"25-JUN-1980"




On 8/17/2013 8:21 AM, Don DNA wrote:
Thanks a lot Sir,  any solution for saving only date from list /l=1:10 t[gt=time] command to some variable  ?

- Dona clara



From: William S. Kessler <william.s.kessler@xxxxxxxx>
To: Don DNA <don_vbe@xxxxxxxxx>
Cc: Ferret <ferret_users@xxxxxxxx>; Ansley Manke <ansley.b.manke@xxxxxxxx>
Sent: Saturday, August 17, 2013 7:23 PM
Subject: Re: [ferret_users] Problem with vector plot

Your second PPL VECTOR command (final command to actually draw the plot) needs to have the qualifier /OVER
And the /OVER qualifier on VECKEY is wrong (does that not give an error?)
Where you say you get "many labels", that is because you omitted /NOLAB.

BK

On Aug 17, 2013, at 5:28 AM, Don DNA wrote:

>   
> Hi ! all
>
> Is there any solution in ferret to overlap vector and printing the vector scale ???
>
> I tried following
>
> ! Plot vector using wind u and v component
>
> vector/color=red/nolab u,v
> ppl veckey/nouser/over 0,-0.5,,(f4.1)    ! <<<=== remove /over here
> ppl vector
>
> ! Overlap u and v component of current
> vector/color=blue/nolab/over u_current,v_current
> ppl veckey/nouser/over 0,-0.5,,(f4.1)
> ppl vector              ! <<<=== add /over here
>
> Here I don't know why I am not getting 2 vectors together even though I used over command, if I use simply following command I could see both vectors but ferret logo and many labels are coming
>
> vector/color=red u,v
> vector/color=blue/over u_current,v_current
>
> and is there any possibility to save date in variable ?
> for example
> yes? list /l=1:10 t[gt=time]
>              VARIABLE : T
>                        axis TIME
>              SUBSET  : 10 points (TIME)
>  20-SEP-2010 00 /  1:  76963.
>  21-SEP-2010 00 /  2:  76964.
>  22-SEP-2010 00 /  3:  76965.
>  23-SEP-2010 00 /  4:  76966.
>  24-SEP-2010 00 /  5:  76967.
>  25-SEP-2010 00 /  6:  76968.
>  26-SEP-2010 00 /  7:  76969.
>  27-SEP-2010 00 /  8:  76970.
>  28-SEP-2010 00 /  9:  76971.
>  29-SEP-2010 00 / 10:  76972.
>
> here I want to save only first column to some variable say date_var, so that it will help me to in label
> example :
> let label_t = date_var[i=1]
> label 120,41,0,0.22 `label_t`
>  !-> DEFINE VARIABLE label_t=date_var[i=1]
>  !-> PPL %LABEL 120,41,0,0.22 07-DEC-2012
>
>
> Kindly someone help me...
>
>
> Dona Clara.
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
William S. Kessler
NOAA / Pacific Marine Environmental Laboratory
7600 Sand Point Way NE
Seattle WA 98115 USA

william.s.kessler@xxxxxxxx
Tel: 206-526-6221
Fax: 206-526-6744
Web: http://faculty.washington.edu/kessler/






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

Privacy Policy | Disclaimer | Accessibility Statement