Utility: p_interp

This utility interpolates WRF-ARW netCDF output files to user specified pressure levels.
This is still a beta test version - March 2008


Obtain the utility from the WRF Download page (you must be a registered user to download any code - it is free)
 

Compile

The code should run on any machine with a netCDF library.

To compile the code, use the compile flags at the top of the utility.
e.g., for a LINUX  machine you need to type:

pgf90 p_interp.F90  -L/usr/local/netcdf/lib -lnetcdf  -lm 
    -I/usr/local/netcdf/include -Mfree  -o p_interp

If successful, this will create the executable: p_interp
 

Run

Edit the associated namelist.pinterp file (see namelist options below), and run

./p_interp

 

&io

input_root_name

Path and file name(s) of wrfout files.
Use wild character if more than one file is processed.

Output will be written to input_root_name_PLEV.

process

Indicate which fields to process.
‘all’ fields in wrfout file (diagnostics PRES, TT & GEOPT will automatically be calculated);
‘list’ of fields as indicated in ‘fields’

fields

List of fields to process.

debug

Switch debug more on/off.

-64bit

Allow large files (> 2GB) to be read / write.

 

&interp_in

interp_levels

List of pressure levels to interpolate data to

extrapolate

0 - set values below ground and above model top to missing values (default)
1 - extrapolate below ground, and set above model top to model top values

interp_method

1 - linear in p interpolation (default)
2 - linear in log p interpolation

unstagger_grid

Set to .True. so unstagger the data on output