[Thread Prev][Thread Next][Index]

Re: [ferret_users] how does @DIN work on the pressure coordinate



Hi Xiaoyu,

`@DIN` is just a numerical integral - multiply the cell width (which in your case is a difference in pressure rather than distance in meters) by the data value in that cell and sum these up.  As always, be conscious of the units of the computed value.  There is the special case if you are integrating over both longitude and latitude (Ferret computes an area value of the cell assuming a spherical earth), but you are not doing that here.

If your pressure axis is marked as a depth-type axis then positive is down.  Use a `show grid` for the variable, and if axis is positive-down, there will be a minus sign after the number of points; for example (from levitus_climatology):
ZAXLEVITR      DEPTH (m)           20 i-        0                    5000                full

You can explicitly specify the range for the integration to make it clear what region you are integrating over:
SALT[Z=0:5000@DIN]

Karl


On Wed, Sep 4, 2019 at 10:57 AM Xiaoyu Bai <xbai1@xxxxxxxx> wrote:
Dear ferreters,

I am reading the instruction of @DIN from https://ferret.pmel.noaa.gov/Ferret/documentation/users-guide/variables-xpressions/XPRESSIONS. I noticed that we can use @DIN for the Z-axis for variables like salinity. I am wondering how does @DIN work for the pressure coordinate? How does it give weight to each pressure level? Do I need to flip the pressure levels to use @DIN?
 
Thank you in advance. 😸
--
Xiaoyu


--
Karl M. Smith, Ph.D.
JISAO Univ. Wash. and PMEL NOAA
"The contents of this message are mine personally and do
not necessarily reflect any position of the Government
or the National Oceanic and Atmospheric Administration."

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

Privacy Policy | Disclaimer | Accessibility Statement