[gradsusr] How to set the ZDEF correctly for the WRF model data using eta values on half (mass) levels

Jeff Duda jeffduda319 at gmail.com
Thu May 31 13:46:48 EDT 2018


In WRF output you only need to specify how many vertical levels you're
using in the control file. In your case, you look to have 54 levels, so
your ZDEF line only needs to be

ZDEF 54 linear 1.0 1.0

That should enable you to plot your data. The only caveat to doing it this
way is that when you plot your vertical cross sections the index values on
the vertical axis will default to model levels rather than to the eta
values of those levels. However, you can get around that by setting ylab to
off and manually drawing whatever vertical coordinate values you want along
the vertical axes. Of course, these values would only be valid at the edges
of your vertical cross sections, but you could also draw additional axes
wherever you'd like along the cross section and label the vertical
coordinate values, there, too. This just makes liberal use of the 'q w2xy'
command.

I'm not sure if using ZDEF 54 levels 0.99745 0.9923 0.98715 ... etc. will
work, but if it does, it gets you around the problem described above.

Jeff Duda

On Thu, May 31, 2018 at 12:47 AM, Gevorgyan Artur <agm86 at yandex.ru> wrote:

> Dear Sir/Madam,
>
> I have wrf model output file in the netcdf fromat and I want to plot
> vertical cross sections for various parameters.
>
> The vertical levels in the file are defined as eta values on half (mass)
> levels. The following eta values are used in the model:
>
>
>
> *ZNU =*
> *  0.99745, 0.9923, 0.98715, 0.9821, 0.97705, 0.97185, 0.9664, 0.9607,*
> *    0.95465, 0.94815, 0.9412, 0.9337, 0.9256, 0.9168, 0.90715, 0.89655,*
> *    0.8849, 0.8721, 0.85805, 0.84255, 0.8255, 0.80685, 0.78645, 0.76425,*
> *    0.74025, 0.71445, 0.6869, 0.65775, 0.6271, 0.5952, 0.5623, 0.52865,*
> *    0.49455, 0.46025, 0.42615, 0.39245, 0.3594, 0.3273, 0.29625, 0.2664,*
> *    0.23795, 0.21095, 0.18545, 0.16025, 0.1366, 0.1159, 0.097, 0.07975,*
> *    0.06405, 0.04975, 0.03675, 0.02495, 0.01425, 0.0046 ;*
>
> How to define the ZDEF correctly in the descriptor file so that grads
> could plot my data at all levels ?
>
> Best regards,
> Artur
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>


-- 
Jeff Duda, Research Scientist

University of Colorado Boulder

Cooperative Institute for Research in Environmental Sciences

NOAA/OAR/ESRL/Global Systems Division
Boulder, CO
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20180531/0e77b57d/attachment.html>


More information about the gradsusr mailing list