Re: Problem with pres_hybrid_ccm

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Fri Apr 08 2011 - 11:35:05 MDT

Not sure what to say.

The model levels are top-to-bottom. Hence, the output is the same.

The documentation clearly shows that
the order of the levels returned is top-to-bottom

http://www.ncl.ucar.edu/Document/Functions/Built-in/pres_hybrid_ccm.shtml

For example, see Example 1

(0) 364.3 236.12 364.3 237.13 [top level]
(1) 759.5 231.25 759.5 231.92
(2) 1435.7 229.49 1435.7 228.98
(3) 2461.2 227.34 2461.2 225.49
    .
    .
    .
(26) 95769.6 288.61 75612.6 286.83
(27) 97958.9 290.18 77233.2 288.69
(28) 99896.6 291.21 78667.4 290.15
(29) 101562.0 292.29 79935.8 290.50 [bottom (near surface) level]

If you want bottom-to-tp use the ::-1 syntax to reorder.

On 4/8/11 11:22 AM, sbasu@iarc.uaf.edu wrote:
> Hello,
>
> I used "pres_hybrid_ccm" to get the pressure levels. Then I calculated
> Potential temperature and used "center_finite_diff_n" to calculate
> vertical gradient of potential temperature. But the pressure values from a
> model output have surface pressure as the 26th level and 3mb as the 1st.
> So when I am calculating gradient its doing opposite way starting from 3mb
> to surface level instead of surface and going upwards. I am attaching the
> code in case you need to see something.
> Can anybody suggest how to fix this issue?
>
> Thanks,
>
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sat Apr 9 03:35:10 2011

This archive was generated by hypermail 2.1.8 : Tue Apr 19 2011 - 18:32:03 MDT