[ncl-talk] Computing geopotential height

markus.mingel at libero.it markus.mingel at libero.it
Mon Nov 14 07:01:00 MST 2022


Hi Carlos,


thanks for sharing your scripts. I revised my code and finally I found the bug. In vinth2p_ecmwf I used as tbot the surface geopotential instead of bottom temperature. After providing the right surface temperature and surface geopotential as orog*9.81 I get reasonable geopotential heights.

Best regards,


Markus

> Il 14/11/2022 14:17 Carlos Marques <cafm at ua.pt> ha scritto:
> 
> 
> 
> 
> 
> Hi,
> 
> 
> 
> 
> Attached there are two scripts that I used to compute Geopotential for CMIP6 model MPI-ESM1.2-LR and to interpolate after to pressure levels.
> 
> Also attached there are 3 figures that compare the geopotential computed and interpolated to pressure levels with NCL with that provided by MPI. You may see that they compare fairly well.
> 
> 
> 
> 
> You should check that every variable is what NCL's expects (units, coordinates ordering, etc. ). I think that for example you P0 is in hPa, but NCL expects that to be in Pa.
> 
> 
> 
> 
> I don't think that you can compute and interpolate to pressure levels without the surface geopotential.
> 
> 
> 
> 
> Hope that helps.
> 
> 
> 
> 
> 
> 
> 
> 
> C. A. F. Marques
> CESAM & Physics Department
> 
> University of Aveiro
> 3810-193 Aveiro. Portugal
> http://www.cesam.ua.pt/cafmarques
> 
> ---------------------------------------------
> 
> From: ncl-talk <ncl-talk-bounces at mailman.ucar.edu> on behalf of markus mingel via ncl-talk <ncl-talk at mailman.ucar.edu>
> Sent: Monday, November 14, 2022 12:42:27 PM
> To: ncl-talk at ucar.edu
> Subject: [ncl-talk] Computing geopotential height
> 
> 
> 
> Hi All,
> 
> 
> I am trying to derive the geopotential height of a given CMIP6 model from its air temperature and humidity.
> 
> 
> Firstly, I compute the geopotential in the native hybrid coordinates using the NCL function cz2ccm, then I interpolate the just computed geopotential to some pressure levels using vinth2p_ecmwf.
> 
> The comparison of the geopotential computed with my script (attached) with the zg downloaded from ESGF shows large differences, so I was wondering if anyone could suggest me what's wrong in my script? 
> 
> Besides, when the variable phis (surface geopotential (m^2/sec^2)) is not available as input, which values I should use? Is it possible to compute it in anyway with NCL?
> 
> 
> Thanks into advance for help,
> 
> 
> Best,
> 
> 
> Markus
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20221114/c45444b1/attachment.htm>


More information about the ncl-talk mailing list