[Thread Prev][Thread Next][Index]

RE: [ferret_users] diagonal section



Martin, Ruo,
I'll play with script vertical_section.jnl. Is it possible to have distance (from the first point [km]) on X axis instated of number of point using vertical_section script?
thanks,
Robert
 

From: owner-ferret_users@xxxxxxxx [owner-ferret_users@xxxxxxxx] on behalf of Ryo Furue [furue@xxxxxxxxxx]
Sent: Tuesday, March 28, 2017 9:14 AM
To: Martin Schmidt
Cc: ferret users
Subject: Re: [ferret_users] diagonal section

Martin and Robert,

Hi, concerning the first question I would like to draw your attention to the script

script vertical_section.jnl


That's excellent! So, it generates the diagonal and uses SAMPLEXY .  It's a perfect solution to the original question.

Ryo
 

More details on

http://ferret.pmel.noaa.gov/Ferret/documentation/users-guide/variables-xpressions/XPRESSIONS

Greetings,
Martin
Am 28.03.2017 um 14:30 schrieb Ryo Furue:
Hi Robert,

I know how to draw vertical sections along the grid line but how to make picture of diagonal section between two points for instance between (5,5) and (15,25).

I don't have a complete answer, but if you can generate a set of points forming the diagonal, you can accomplish what you need, by using the function samplexy .

The second question is how to do the same diagonal section of velocity perpendicular to this section having only components of velocity along axis

Because you know the angle of the diagonal line, you can compute the component of velocity perpendicular to the line by

  let vn = (-1)*u*sin(angle) + v*cos(angle)

Once you have computed the normal component of the velocity like this, you can again use the samplexy function to get the slice of the velocity field along the line.

(I haven't looked at your netCDF file . . . .)

Regards,

Ryo



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

Privacy Policy | Disclaimer | Accessibility Statement