[Thread Prev][Thread Next][Index]

Re: Plot a variable at different depth



On Sun, 28 Sep 2003, Wendy Wang wrote:
> How can I make a contour of salinity (Lat vs time)
> (1) at Kdepth, and (2) integrated 0-Kdepth
> 
> let Ke=0.027+0.05*(cl[k=1])^0.428
> let Kdepth=1/Ke

Hi Wendy,

For (1), see the User's Guide, Ch3 Sec2.4.27, example #5:

http://ferret.wrc.noaa.gov/Ferret/Documentation/Users_Guide/current/Chapter3_Variables_and_Expressions.htm#_VPINDEXENTRY_451

For (2), see

http://ferret.wrc.noaa.gov/Ferret/FAQ/analysis/avg_integ_irreg.html

This solution for (2) omits fractional grid cells in the integration, but
the accuracy can be improved by regridding Kdepth to a finer grid.  
Another possibility might be to compute an indefinite integral (@iin),
followed by an interpolation to Kdepth using @weq as in (1).

Cheers,

Andrew

+--------------------------------------------------------+
|   Dr. Andrew T. Wittenberg   |        GFDL/NOAA        |
|  Andrew.Wittenberg@noaa.gov  |      Princeton, NJ      |
+--------------------------------------------------------+





[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement