Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

Writing non-isobaric data to WPS intermediate format

This post was from a previous version of the WRF&MPAS-A Support Forum. New replies have been disabled and if you have follow up questions related to this post, then please start a new thread from the forum home page.

Chris Thomas

New member
Hi there,

Referring to the section 'Writing Meteorological Data to the Intermediate Format' in Chapt. 3 of the Users Guide:

When writing data given on pressure levels to the intermediate format I write the pressure in Pa to the xlvl field. If I am trying to write non-isobaric data to the intermediate format, what value do I put in the field xlvl?

More generally, is there more comprehensive information about writing to the intermediate data format available anywhere?

Unfortunately, besides a few example codes, Chapter 3 of the Users's Guide is more or less all the documentation that is available on the intermediate format. For non-isobaric datasets, you can assign floating-point representations of sequential integers, beginning at 1.0, to the xlvl field. If I recall correctly, the real.exe program will work out whether the xlvl values increase with height or decrease with height, so you should be able to either use 1.0 as the lowest level or as the top-of-the-model level.
Thanks, that helps a lot.

From the limited documentation in the User's Guide it appears that I need to write all the 3D fields on the same set of (non-isobaric) levels? Is that correct, or is there some way of getting around this using appropriate METGRID.TBL options?