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

How to extract Temperature/Pressure/Surface Roughness and Precipitation data at a specific location from WRFOUT files

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.

Hi,

I am using WRF to simulate the winds and there is a huge mismatch in wind speed data between measured and WRF output at certain locations of a tropical island.

So, I want to check what is the simulated temperature, pressure, surface roughness, and precipitation against measurements.

I seek assistance as to how I can extract the wrf simulated temperature, pressure, surface roughness and precipitation data at a specific location from the wrfout files.

Appreciate sample scripts, guidance, assistance and advice.

Regards
Kunal
 
Hi Kunal,

Please use the NCL function wrf_user_ll_to_xy to get data at a point. This gives you the closest grid point to your lat/lon:

point = wrf_user_ll_to_xy(a,lon,lat,opts)

And now you can pull your data:

t2_point = a->T2(0,point(0),point(1))

In the future here are sites that can be very useful:

http://www.ncl.ucar.edu/Document/Functions/WRF_arw/index.shtml
http://www.ncl.ucar.edu/Document/Functions/list_alpha.shtml
http://www.ncl.ucar.edu/Applications/
http://www2.mmm.ucar.edu/wrf/OnLineTutorial/Graphics/NCL/NCL_examples.php
 
Top