[Thread Prev][Thread Next][Index]

Re: [ferret_users] Ferret 5.70: vertical_section.jnl



Hi Jimmy,
You can use the ideas of the script vertical_section.jnl to define the variables for each of the two sampled vector components and call the VECTOR command. It should go something like this:


 yes? ! This shows the commands in the script
 yes? go/help vertical_section.jnl


! define the lo and hi x and y ranges of the line in variables xlo, xhi, ylo, yhi and the number ! of points along the line (or just use numerical values in the LET commands below)

yes? let npts = yes? let xhi =
 ...

 yes? let x_vsect = `(xhi - xlo)`*`(npts-1)` * (i-1) + `xlo`
 yes? let y_vsect = `(yhi - ylo)`*`(npts-1)` * (i-1) + `ylo`

! If the vector components you want to sample are called uvar and vvar, then

yes? let u_sample = samplexy(uvar, x_vsect[i=1:`npts`], y_vsect[i=1:`npts`]) yes? let v_sample = samplexy(vvar, x_vsect[i=1:`npts`], y_vsect[i=1:`npts`])

 yes? vector/aspect u_sample, v_sample

(The /ASPECT qualifier is a good idea for most vector plots, and particularly for vertical slices of a vector field.)



yes? let xcomponent = samplexy (

jimmyc@xxxxxxxxxxx wrote:
All-
I am trying to plot a vertical section using the vector/over command
The script does not accomadate the vector command, apparently because it can only perform the samplexy on one variable. So, even if I run sample xy twice, I have two variables but samplexy only plots one variable.

Is there another way to plot a vector field in vertical_section?
Any ideas are welcome...
Thanks for reading

--

~> ~> ~> ~> ~> ~> ~> ~> ~> ~> ~>
Ansley Manke, NOAA/PMEL   ansley.b.manke@xxxxxxxx
7600 Sand Point Way NE, Seattle WA
Phone 206-526-6246,  FAX 206-526-6744




[Thread Prev][Thread Next][Index]

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

Privacy Policy | Disclaimer | Accessibility Statement