|
|
Utility: read_wrf_nc
- This utility was created to allow a user to look at a WRF netCDF file at a glance
- What is the difference between this utility and the netCDF utility ncdump?
- This utility has a large number of options, to allow a user to look at the specific part of the netCDF file in question
- The utility is written in Fortran 90, which will allow users to add options
- Can be used for both WRF-ARW and WRF-NMM cores
- Can be used for geogrid, metgrid and wrf input/output files
- Only 3 basic diagnostics are available: pressure, height, and tk. These can be activated with the -diag option (these are only available for wrfout files)
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 read_wrf_nc.f -L/usr/local/netcdf/lib -lnetcdf -lm
-I/usr/local/netcdf/include -Mfree -o read_wrf_nc
If successful, this will create the executable: read_wrf_nc
Run
./read_wrf_nc wrf_data_file_name [-options]
options: [-h / help] [-att] [-m] [-M z] [-s] [-S x y z]
[-times] [-t t1 [t2]] [-v VAR] [-V VAR] [-w VAR]
[-ts xy X Y VAR VAR .....] [-ts ll lat lon VAR VAR .....]
[-lev z] [-rot] [-diag]
[-EditData VAR]
|