[Thread Prev][Thread Next][Index]
Re: vis5d files from ferret
Hi Nicolas,
The Vis5D function should correctly write a positive-up variable to a v5d
file. Is your variable correct when you view it in Ferret?
You want your Z axis defined with positive coordinate values, without the
DEPTH qualifier. Compare these two examples (I'm not a real Vis5D
expert, to be sure I'm seeing the same slice I choose the "SOUTH" view
in v5d ):
yes? ! Z axis positive up
yes? def axis/x=0:100:2/units=lon xax
yes? def axis/y=-20:20:1/units=lat yax
yes? def axis/z/units=meters zax =
{0,20,50,100,200,400,800,1200,2000,3000,4000,5000}
yes? let var = x[gx=xax]/10 + y[gy=yax]/10 + z[gz=zax]
yes? set view left
yes? shade/y=0/title="Positive UP" var
yes? go vis5d_write pos_up.v5d var
yes? go vis5d_start pos_up.v5d
yes? ! Z axis positive down
yes? def axis/x=0:100:2/units=lon xax
yes? def axis/y=-20:20:1/units=lat yax
yes? def axis/z/units=meters/DEPTH zax =
{0,20,50,100,200,400,800,1200,2000,3000,4000,5000}
yes? let var = x[gx=xax]/10 + y[gy=yax]/10 + z[gz=zax]
yes? set view right
yes? shade/y=0/title="positive down" var
yes? GO vis5d_write pos_dn.v5d var
yes? GO vis5d_start pos_dn.v5d
Nicolas Schneider wrote:
Dear Ferret users
I would like to use Ferret to write a Vis5D-file of atmospheric
temperature data. Basically, I use the following command to write the
file:
GO vis5d_write dTemp_apr.v5d DTEMP_APR
Writing of the file then also works, but when I display the data in
vis5d+ (vis5d+-1.2.1) they are erroneous, i.e. they are upside-down.
Instead of a positive z-axis pointing upwards (atmosphere), the z-axis
points downwards (ocean). I also tried defining the z-axis with the
depth qualifiyer and afterwards turning my data in Vis5d by 180°. But
then, obviously, everythign is mirrored...
Last October, there was a similar problem in the ferret list
(http://ferret.pmel.noaa.gov/Ferret/Mail_Archives/fu_2003/msg00743.html),
but no reply to it. Does anyone have an idea how to correctly write my
(atmospheric!!) data with the "vis5d_write" EF.
Thanks for any help,
Nicolas
[Thread Prev][Thread Next][Index]
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement