Utility: iowrf

  • This utility allows a user to do some basic manipulation on WRF-ARW netCDF files.
  • The utility allows a user to thin the data, de-stagger the data, or extract a box from the data file.

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 iowrf.f  -L/usr/local/netcdf/lib  -lnetcdf  -lm 
   -I/usr/local/netcdf/include  -Mfree  -o iowrf

If successful, this will create the executable: iowrf
 

Run

./iowrf  wrf_data_file_name  [-options]

options : [-h / help] [-thina X] [-thin X] [-box {}] [-A] [-64bit]

-thina X

Thins the data with a ratio of 1:X
Data will be averaged before being fed back

-thin X

Thins the data with a ratio of 1:X
No averaging will be done

-box {}

Extracts a box from the data file. X/Y/Z can be controlled independently. e.g.,
-box x 10 30 y 10 30 z 5 15
-box x 10 30 z 5 15
-box y 10 30
-box z 5 15

-A

De-stagger the data – no thinning will take place

-64bit

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