Stream: ESDS

Topic: hypsometric equation


view this post on Zulip Tom Cram (Jul 13 2023 at 15:50):

I am searching for a Python equivalent of the NCL function cz2ccm, which computes geopotential height at hybrid model levels in CESM output. Can anyone refer me to a Python function that does this, or do you have you written your own function that you can share with me?
NCL reference: https://www.ncl.ucar.edu/Document/Functions/Built-in/cz2ccm.shtml
NCL Fortran source code for cz2ccm: https://github.com/NCAR/ncl/blob/develop/ni/src/lib/nfpfort/cz2ccm_dp.f

view this post on Zulip Katie Dagon (Jul 13 2023 at 16:10):

This is a good question for @geocat. I found a similar function in geocat-comp, but I don't think it does the hybrid model levels.

view this post on Zulip Katelyn FitzGerald (Jul 13 2023 at 16:56):

It doesn't look like we have this in GeoCAT at the moment, but could be a good candidate for including.

I'll log an issue/feature request on GeoCAT-comp (unless you beat me to it) and look into this.

If you have other suggestions for computational or visualization functionalities from (NCL or otherwise) that might be missing from GeoCAT (especially if that functionality isn't available elsewhere in Python), please let us know!

We also have a feature request form on the GitHub issue trackers for GeoCAT-comp or GeoCAT-viz.

view this post on Zulip Tom Cram (Jul 13 2023 at 17:13):

Hi @Katelyn FitzGerald Thank you. I have not submitted a feature request yet, so I will allow you to do so. FWIW, ECMWF has a function in their Metview package to do this, so we might try this in the meantime until it's supported in GeoCAT:
https://metview.readthedocs.io/en/latest/api/functions/mvl_geopotential_on_ml.html

view this post on Zulip Katelyn FitzGerald (Jul 13 2023 at 17:32):

Oh good. Glad there’s something you all can use for the time being. Thanks for sharing that.

view this post on Zulip Deepak Cherian (Jul 13 2023 at 18:16):

Is it one of the CF standard equations? If so, does CESM write out the appropriate CF attributes? If so, we could easily add it to cf-xarray

view this post on Zulip Tom Cram (Jul 13 2023 at 20:08):

@Deepak Cherian Yes, it appears CESM writes the appropriate CF attributes. See, for example, the output located at /gpfs/csfs1/collections/cmip/CMIP6/timeseries-cmip6/b.e21.BHIST.f09_g17.CMIP6-historical.011/atm/proc/tseries/hour_6


Last updated: May 16 2025 at 17:14 UTC