Reading data from metgrid file

Any miscellaneous question/problem/comment related to WRF support that does not fit under any of the other category
Post Reply
AbbyCoello
Posts: 5
Joined: Tue Sep 29, 2020 10:43 pm

Reading data from metgrid file

Post by AbbyCoello » Wed Nov 04, 2020 4:31 pm

Hi everyone,

I'm analyzing the data that is stored in the metgrid file that was generated when running WRF model. I want to know which is the height, in meters, of each one of the 32 layers that were created along z-axis. Does anyone knows where, in this file, I can find that information?

Thanks in advance!

Abby

kwerner
Posts: 2287
Joined: Wed Feb 14, 2018 9:21 pm

Re: Reading data from metgrid file

Post by kwerner » Fri Nov 06, 2020 12:17 am

Hi Abby,
Unfortunately there isn't a simple way to do this, as the input data is calculated on pressure levels, and therefore at every point in the domain, the thickness of each level will differ. If you wanted to calculate this for every point, you would need to write some code that finds the geopotential height (GHT) above and below each vertical level (num_metgrid_level), but you would need a loop for i,j,k.
NCAR/MMM

AbbyCoello
Posts: 5
Joined: Tue Sep 29, 2020 10:43 pm

Re: Reading data from metgrid file

Post by AbbyCoello » Fri Nov 06, 2020 10:03 pm

Thank you so much, kwerner!! I'll work on that.

I have another question, do you know if the PBL height is directly an output of the WRF files? or how does it have to be calculated?

Thanks in advance!

Abby

kwerner
Posts: 2287
Joined: Wed Feb 14, 2018 9:21 pm

Re: Reading data from metgrid file

Post by kwerner » Mon Nov 09, 2020 5:59 pm

Abby,
Yes, in the wrf output, there is a variable called PBLH, which is PBL height.
NCAR/MMM

AbbyCoello
Posts: 5
Joined: Tue Sep 29, 2020 10:43 pm

Re: Reading data from metgrid file

Post by AbbyCoello » Thu Nov 12, 2020 4:18 am

Thank you so much, kwerner!! :)

Post Reply

Return to “Miscellaneous”