[Thread Prev][Thread Next][Index]

Re: [ferret_users]: how integrate in any directions?



Hi Xavier,
The script uses the SAMPLEXY function, which takes your x-y-z field and creates an x-z field, where now x is just an abstract axis, 1,2,3,4, ... sample points. You can integrate the result of SAMPLEXY along the new abstract axis. If you want to create a new axis with, say, distance from the starting point along the path, then you could put the result of samplexy on that axis before integrating. Just to sketch how it would go, the commands would be something along these lines:


! see how vertical_section calls samplexy
yes? go/help vertical_section.jnl
! Define a variable containing the section, using SAMPLEXY
yes? LET section_var = SAMPLEXY(my_var)
! Use whatever technique you like to integrate it, i.e.
yes? LET integrated_section = section_var[x=@DIN]

Or if you define a variable with the distance along the path at each sample point (with, of course, the correct units)

yes? let xdistance =
yes? define axis/x/units=meters xdist = xdistance
yes? let section_dist = section_var[gx=xdist@ASN]

yes? let integrated_section = section_dist[x=@DIN]

Xavier Couvelard wrote:

Sorry for the subject

Hi,

I'm making vertical sections in any directions using the script,
vertical_section.

But i'd also like to integrate in the same direction as the section. How
can i do this?

Thanks
Xavier


[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement