WRF

Some of the functions below are built into NCL, while some of them are part of the WRFUserARW.ncl script, which is a library of functions and procedures written to help users plot ARW WRF model data.

Note: in most of the WRF data analysis functions (unless otherwise specified), if any of the input arrays contain missing data, then the function will take the missing data as regular values. Please confirm that the input variable has no missing data with print(ismissing(x)).

Help on using NCL with ARW WRF is available from the user forum at:

http://forum.mmm.ucar.edu/phpBB3/viewforum.php?f=49

wrf_avo Calculates absolute vorticity from WRF model output.
wrf_cape_2d Computes maximum convective available potential energy (CAPE), maximum convective inhibition (CIN), lifted condensation level (LCL), and level of free convection (LFC).
wrf_cape_3d Computes convective available potential energy (CAPE) and convective inhibition (CIN).
wrf_contour Creates a contour plot from ARW WRF model output.
wrf_dbz Calculates simulated equivalent radar reflectivity factor [dBZ] from WRF model output.
wrf_eth Calculates equivalent potential temperature from WRF model output.
wrf_helicity Calculates storm relative helicity from WRF model output.
wrf_ij_to_ll Finds the nearest longitude, latitude locations to the specified model grid indices (i,j) (deprecated).
wrf_interp_1d Linearly interpolates a one-dimensional variable in the vertical.
wrf_interp_2d_xy Extracts a cross section from a given input field.
wrf_interp_3d_z Interpolates to a specified pressure/height level.
wrf_latlon_to_ij Finds the nearest model grid indices (i,j) to the specific location(s) in latitude and longitude (deprecated).
wrf_ll_to_ij Finds the nearest model grid indices (i,j) to the specified location(s) in longitude and latitude (deprecated).
wrf_map Creates a map background for ARW WRF model data.
wrf_map_overlay Overlays WRF plot(s) on a WRF-ARW map background (deprecated).
wrf_map_overlays Overlays contour and vector plots on a WRF-ARW map background.
wrf_map_resources Sets map plotting resources based on an input WRF-ARW file.
wrf_map_zoom Zooms into a portion of the ARW WRF model domain, and creates a map background (deprecated).
wrf_mapres_c Sets the appropriate geographical mapping resources based upon WRF file contents. (deprecated)
wrf_omega Calculates approximate omega in C, given vertical velocity, water vapor mixing ratio, temperature, and pressure from WRF model output.
wrf_overlay Overlays multiple plots created from other WRF-ARW plot functions (deprecated).
wrf_overlays Overlays multiple plots, created from other ARW WRF plot functions.
wrf_pvo Calculates potential vorticity from WRF model output.
wrf_rh Calculates relative humidity from ARW WRF model output.
wrf_slp Calculates sea level pressure from ARW WRF model output.
wrf_smooth_2d Smooths a given field.
wrf_td Calculates dewpoint temperature in [C] from ARW WRF model output.
wrf_times_c Converts WRF variable "Times" which is of type character to user specified numeric units.
wrf_tk Calculates temperature in [K] from ARW WRF model output.
wrf_updraft_helicity Calculates updraft helicity from WRF model output.
wrf_user_getvar Extracts data from ARW WRF model output, and does basic diagnostics calculations.
wrf_user_ij_to_ll Finds the nearest longitude, latitude locations to the specified WRF-ARW model grid indexes (deprecated).
wrf_user_interp_level Interpolates a horizontal slice from a three-dimensional WRF-ARW field at the given vertical level(s).
wrf_user_interp_line Interpolates a two-dimensional WRF-ARW field along a line.
wrf_user_intrp2d Interpolates ARW WRF 2D model data along a given line (deprecated).
wrf_user_intrp3d Interpolates ARW WRF model data vertically or horizontally (deprecated).
wrf_user_latlon_to_ij Finds the nearest WRF-ARW model grid indexes (i,j) to the specific location (deprecated).
wrf_user_list_times Extracts the list of available times in the ARW WRF model output.
wrf_user_ll_to_ij Finds the nearest WRF-ARW model grid indexes (i,j) to the requested longitude and latitude locations (deprecated).
wrf_user_ll_to_xy Finds the nearest WRF-ARW model grid indexes (0-based) that are the closest to the requested longitude and latitude locations.
wrf_user_unstagger Unstaggers an input variable along a specified dimension.
wrf_user_vert_cross Interpolates a vertical cross-section from a three-dimensional WRF-ARW field at the given vertical level(s).
wrf_user_vert_interp Vertically interpolates ARW WRF variables given the type of surface and a set of new levels.
wrf_user_xy_to_ll Finds the nearest longitude, latitude locations to the specified WRF-ARW model grid indexes.
wrf_uvmet Rotates u,v components of the wind to earth coordinates.
wrf_vector Creates a vector plot from ARW WRF model output.
wrf_virtual_temp Calculates virtual temperature, given temperature and mixing ratio from WRF model output.
wrf_wetbulb Calculates wet bulb temperature in K, given pressure in temperature in K and mixing ratio in kg/kg from WRF model output.
wrf_wps_close_int Closes a currently open WPS intermediate file.
wrf_wps_open_int Opens a WPS intermediate file and returns a status.
wrf_wps_rddata_int Reads a 2D field from an open WPS intermediate file.
wrf_wps_rdhead_int Reads header information for the current field of an open WPS intermediate file.
wrf_wps_read_int Reads data from a WPS intermediate file.
wrf_wps_write_int Writes data to a WPS intermediate file.