PostWRF’s Documentation

PostWRF is a bunch of interactive tools for the visualizaion and post-processing of the Weather Research and Forecasting (WRF) model outputs. PostWRF as an integrated system based on the NCAR Command Language (NCL) and Linux shell scripts, acts as a bridge between atmospheric modeling and environmental science, and makes it possible for many environmental scientists to directly visualize the WRF model outputs, without any advanced knowledge in NCL scripting and WRF modeling system.

PostWRF can provide the input data for the RTTOV (radiation transfer) model, out of WRF output files. Moreover, it can visualize the RTTOV output files from ASCII format to a desired format of NetCDF, PNG, GeoTIFF, or even RGB image.

PostWRF codes are publically available at:
https://github.com/anikfal/PostWRF

Note

PostWRF is a Linux-based software, developed on Fedora/CentOS. However, it can be tested on the Mac OS.

Overview

For each post-processing task, there are one or more corresponding NCL scripts which are automatically modified by the Linux shell scripts. The end user does not need to make any direct modifications on the NCL scripts, rather, the Linux shell scripts act as proxies between NCL codes and the end user, in modifying the NCL codes with regard to some primary input data, provided by the user.

Software structure

The processing steps through PostWRF is depicted below as a flowchart diagram:

map to buried treasure

PostWRF structure and run processes

Run PostWRF

Modify namelist.wrf and enable the section associated with the desired post-processing task:

vi namelist.wrf

Run the tool:

./postwrf.sh

The user can Run postwrf.sh with some special switches. Each switch is described by the command bellow:

./postwrf.sh -h

Installation

On a Linux (Unix) OS, two steps are required before using PostWRF:

1. Installing NCL:
On CentOS or Fedora:
sudo dnf install ncl

If need more information, please see: NCL download and installation



2. Make the shell scripts executable:
On the main directory of PostWRF:
chmod +x postwrf.sh
chmod +x modules/*.sh

WRF and ERA5 Data extraction

The very first step in running PostWRF is modifying namelist.wrf:

vi namelist.wrf

Time-series of the WRF variables

The first section in namelist.wrf corresponds to the data extraction:

==================== DATA EXTRACTION =======================
============================================================
WRF_Extract_On-Off                             = 1
ERA5_Extract_On-Off                             = 0

WRF_variable_name                   = pvo
Location_names                           = Berlin, London
Location_latitudes                       = 52.52, 51.51
Location_longitudes                     = 13.40, 00.10

+Vertical_profile_plot_on_off     = 0
+Vprofile_X_axis_decimals         = 3

After modifying namelist.wrf, run the software by:

./postwrf.sh
During the run process, the method of data extraction (interpolation) will be inquired. Three interpolation methods are available:
  1. Nearest point
  2. Bilinear
  3. IDW
The Output as an ascii file will be saved in a folder with a name similar to the name of the selected WRF file:
———————————————————————————————————
WRF output variable: pvo (Potential Vorticity) - unit_scale: PVU
———————————————————————————————————
                    Time         Berlin_(52.52-13.40)         London_(51.51-00.10) 2021-11-01_06:00:00                 -0.26                 -0.33
2021-11-01_07:00:00                 -0.27                 -0.25
2021-11-01_08:00:00                 -0.29                 -0.22
2021-11-01_09:00:00                 -0.28                 -0.24
2021-11-01_10:00:00                 -0.25                 -0.22
2021-11-01_11:00:00                 -0.22                 -0.15
2021-11-01_12:00:00                 -0.18                   0.01
2021-11-01_13:00:00                   0.22                 1.79
2021-11-01_14:00:00                   2.59                 3.91
2021-11-01_15:00:00                   3.22                 5.22
2021-11-01_16:00:00                   2.53                 6.81

Note

ERA5 data can tbe extracted by the same method. Set ERA5_Extract_On-Off to 1, and WRF_Extract_On-Off to 0. For ERA5 data, only one method (bilinear) is applied for interpolation. Moreover, unlike the WRF data, for ERA5 data the start and end of time slots can be specified.

Plotting vertical profiles (for WRF outputs)

If +Vertical_profile_plot_on_off is set to 1, the vertical profiles of the locations (Berlin and London) will be plotted:

map to buried treasure

Vertical profiles of the potential vorticity over two locations of London and Berlin

Conversion to GeoTIFF

PostWRF provides conversion of a desired variable (polynomial of variables) of WRF output to GeoTIFF format.

For running this capability of PostWRF,it is necessary to have the gdal tool installed:

sudo dnf install gdal

The section corresponding to the GeoTIFF conversion in namelist.wrf must be enabled:

============== CONVERT TO GEOTIFF ================
==============================================
Geotiff_ON_OFF                             = 1
Variable_name_to_Geotiff               = rh
Geotiff_pressure_level                     = 700

After running postwrf.sh, the converted tif files will be saved in a folder with a name similar to the name of the file selected

The generated GeoTIFF files could be processed and visualized by a GIS software:

map to buried treasure

Relative humidity from WRF output at 700hpa, converted to GeoTIFF by PostWRF and visualized by the QGIS software

Contour plots

A combination of three variables, as well as wind vectors and location markers, could be plotted by PostWRF.

Note

Line colors, font sizes, etc., can be modified by changing the relevant variables in namelist.wrf

Example 1

Two line contours plus the locations of some points (specified in ‘Data extraction’ section of namelist.wrf):

================ CONTOUR PLOT =================
=============================================
CONTOUR_ON_OFF = 1
!!! Variable_1 by line contours !!!
1st_Variable_on_off = 1
1st_Variable_name = tc
1st_Variable_pressure_level = 700
1st_Variable_intervals = 4
1st_Variable_line_color = red
1st_Variable_line_thickness = 0.5
1st_Variable_label_size = 0.5
!!! Variable_2 by (broken) line contours !!!
2nd_Variable_on_off = 1
2nd_Variable_name = PBLH
2nd_Variable_pressure_level = 0
2nd_Variable_intervals = 500
2nd_Variable_line_color = blue
2nd_Variable_line_thickness = 0.5
2nd_Variable_label_size = 0.5
2nd_Variable_brokenline_on_off = 0
!!! Variable_3 by filled (colored) contours !!!
3rd_Variable_on_off = 0
3rd_Variable_name = pvo
3rd_Variable_pressure_level = 0,
Wind_Vectors_on_off = 0
Wind_Vectors_pressure_level = 700
Wind_Vectors_speed (m/s) = 5
Wind_Vectors_density = 0.5
Wind_Vectors_color = blue
Wind_Vectors_thickness = 0.5
Location_point_mark_on_off = 1
Location_labels_on_off = 1
Location_labels_size = 0.2
Location_labels_color = black
Shapefile_on-off = 0
Shapefile_path = /home/ah/postwrf/modules/iran_provinces/all.shp
————————————————————————————————-

Output image at a specific time-slot in the WRF output is as bellow:

map to buried treasure

Overlaid line contours and some locations

Example 2

Shaded contour of a polynomial (tk * (rh/100)^2)

During the processing, several questions, such as the color pattern of the contours, name and unit of the polynomial, and file format will be asked from the usr.

The user can specify a pressure level for each variable names, with exactly the same number as the variable names (2 values, corresponded to tk and rh for this example). If only one value is set for 3rd_Variable_pressure_level, all the variables (tk and rh) will be plotted at the same pressure level.

================ CONTOUR PLOT =================
=============================================
CONTOUR_ON_OFF = 1
!!! Variable_1 by line contours !!!
1st_Variable_on_off = 0
1st_Variable_name = tc
1st_Variable_pressure_level = 500
1st_Variable_intervals = 3
1st_Variable_line_color = red
1st_Variable_line_thickness = 0.7
1st_Variable_label_size = 0.7
!!! Variable_2 by (broken) line contours !!!
2nd_Variable_on_off = 0
2nd_Variable_name = T2
2nd_Variable_pressure_level = 0
2nd_Variable_intervals = 0
2nd_Variable_line_color = brown
2nd_Variable_line_thickness = 0.7
2nd_Variable_label_size = 0.7
2nd_Variable_brokenline_on_off = 1
!!! Variable_3 by filled (colored) contours !!!
3rd_Variable_on_off = 1
3rd_Variable_name = tk * (rh/100)^2
3rd_Variable_pressure_level = 650, 700
Wind_Vectors_on_off = 1
Wind_Vectors_pressure_level = 700
Wind_Vectors_speed (m/s) = 5
Wind_Vectors_density = 0.5
Wind_Vectors_color = yellow
Wind_Vectors_thickness = 0.7
Location_point_mark_on_off = 1
Location_labels_on_off = 1
Location_labels_size = 0.2
Location_labels_color = black
Shapefile_on-off = 0
Shapefile_path = /home/ah/postwrf/modules/iran_provinces/all.shp
————————————————————————————————-

Output image at a specific time-slot in the WRF output is as bellow:

map to buried treasure

Shaded contours, overlaid by wind vectors

Example 3

Panel plot of a shaded and a line contour

================ CONTOUR PLOT =================
=============================================
CONTOUR_ON_OFF = 1
!!! Variable_1 by line contours !!!
1st_Variable_on_off = 1
1st_Variable_name = tc
1st_Variable_pressure_level = 500
1st_Variable_intervals = 4
1st_Variable_line_color = red
1st_Variable_line_thickness = 0.7
1st_Variable_label_size = 0.7
!!! Variable_2 by (broken) line contours !!!
2nd_Variable_on_off = 0
2nd_Variable_name = T2
2nd_Variable_pressure_level = 0
2nd_Variable_intervals = 0
2nd_Variable_line_color = brown
2nd_Variable_line_thickness = 0.7
2nd_Variable_label_size = 0.7
2nd_Variable_brokenline_on_off = 1
!!! Variable_3 by filled (colored) contours !!!
3rd_Variable_on_off = 1
3rd_Variable_name = dust_pm10
3rd_Variable_pressure_level = 0
Wind_Vectors_on_off = 0
Wind_Vectors_pressure_level = 700
Wind_Vectors_speed (m/s) = 5
Wind_Vectors_density = 0.5
Wind_Vectors_color = yellow
Wind_Vectors_thickness = 0.7
Location_point_mark_on_off = 0
Location_labels_on_off = 1
Location_labels_size = 0.2
Location_labels_color = black
Shapefile_on-off = 0
Shapefile_path = /home/ah/postwrf/modules/iran_provinces/all.shp
————————————————————————————————-

Panel plot is a capability of PostWRF which must be set in the General settings section of namelist.wrf

============== GENERAL SETTINGS ===============
=============================================
spin-up_time (hours) = 12
averaging_on_off = 0
average_time (hours) = 12
panel_plot__on_off = 1
panel_plot__rows_number = 2
panel_plot__columns_number = 3
smooth_maps_on_off = 1
map_borderline_color = black
map_borderline_thickness = 0.7
map_filled_ocean_on_off = 1
map_gridlines_on_off = 1
plot_titles_on_off = 0
————————————————————————————————-

Output image at a specific time-slot in the WRF output is as bellow:

map to buried treasure

Contour maps as panel plots

Cross-section plots

Like the contour plots, PostWRF provides a combination of three variables to be overlaid
in a cross-section plot, besides the path of cross-section in a separate small plot inside the main plot

Note

Line colors, font sizes, etc., can be modified by changing the relevant variables in namelist.wrf

Example 1

A set of line contours with the path of the cross-section:

============= CROSS SECTION PLOT ==============
===========================================
CROSSSECTION_ON-OFF = 1
CrossSection_path_on_off = 1
Topographic_map_on_off = 1
!!! 3D Variable_1 by line contours !!!
1st_var_on_off = 1
1st_var_name = rh
1st_var_intervals = 20
1st_var_line_color = blue
1st_var_line_thickness = 0.5
1st_var_label_size = 0.4
!!! 3D Variable_2 by (broken) line contours !!!
2nd_var_on_off = 0
2nd_var_name = (ua^2 + va^2)^0.5
2nd_var_intervals = 4
2nd_var_line_color = black
2nd_var_line_thickness = 0.5
2nd_var_label_size = 0.5
2nd_var_brokenline_on_off = 1
!!! 3D Variable_3 by filled (colored) contours !!!
3rd_var_on_off = 0
3rd_var_name = pvo
————————————————————————————————-

Output image at a specific time-slot in the WRF output is as bellow:

map to buried treasure

Cross-section plot with line contours

Example 2

A set of line contours of a polynomial and a set of shaded contours, besides the path of the cross-section

============= CROSS SECTION PLOT ==============
===========================================
CROSSSECTION_ON-OFF = 1
CrossSection_path_on_off = 1
Topographic_map_on_off = 0
!!! 3D Variable_1 by line contours !!!
1st_var_on_off = 0
1st_var_name = rh
1st_var_intervals = 20
1st_var_line_color = blue
1st_var_line_thickness = 0.5
1st_var_label_size = 0.4
!!! 3D Variable_2 by (broken) line contours !!!
2nd_var_on_off = 1
2nd_var_name = (ua^2 + va^2)^0.5
2nd_var_intervals = 4
2nd_var_line_color = black
2nd_var_line_thickness = 0.5
2nd_var_label_size = 0.5
2nd_var_brokenline_on_off = 1
!!! 3D Variable_3 by filled (colored) contours !!!
3rd_var_on_off = 1
3rd_var_name = tc
————————————————————————————————-

Output image at a specific time-slot in the WRF output is as bellow:

map to buried treasure

Cross-section plot with shaded contours

Example 3

Average (12 hours) plots of Two sets of line contours, shown as a panel plot

============= CROSS SECTION PLOT ==============
===========================================
CROSSSECTION_ON-OFF = 1
CrossSection_path_on_off = 0
Topographic_map_on_off = 0
!!! 3D Variable_1 by line contours !!!
1st_var_on_off = 1
1st_var_name = rh
1st_var_intervals = 20
1st_var_line_color = blue
1st_var_line_thickness = 0.5
1st_var_label_size = 0.4
!!! 3D Variable_2 by (broken) line contours !!!
2nd_var_on_off = 1
2nd_var_name = tv
2nd_var_intervals = 10
2nd_var_line_color = red
2nd_var_line_thickness = 0.5
2nd_var_label_size = 0.5
2nd_var_brokenline_on_off = 0
!!! 3D Variable_3 by filled (colored) contours !!!
3rd_var_on_off = 0
3rd_var_name = tc
————————————————————————————————-

Panel plot is a capability of PostWRF which must be set in the General settings section of namelist.wrf

============== GENERAL SETTINGS ===============
============================================
spin-up_time (hours) = 6
averaging_on_off = 1
average_time (hours) = 12
panel_plot__on_off = 1
panel_plot__rows_number = 1
panel_plot__columns_number = 2
smooth_maps_on_off = 1
map_borderline_color = black
map_borderline_thickness = 0.7
map_filled_ocean_on_off = 1
map_gridlines_on_off = 1
plot_titles_on_off = 1
————————————————————————————————-

Output image at a specific time-slot in the WRF output is as bellow:

map to buried treasure

Panel plots of cross-sections

Plotting WRF domains

Two methods are available in PostWRF to plot the WRF’s simulation domain:

Method 1

Using namelist.wps from the WRF Preprocessing System (WPS)

In this method a schematic map of the simulation domain will be plotted.

=============== DOMAIN MAP ================
===========================================
Domain_On-Off = 1
namelist.wps_path (schematic) = /home/anikfal/wrf/WPS/namelist.wps
background_color (schematic) = forestgreen
lables_On-Off (schematic) = 0
+Domain_on_off (topography) = 0
+number_of_domains (topography) = 2
+box_color = white
————————————————————————————-

Output image at a specific time-slot in the WRF output is as bellow:

map to buried treasure

Schematic domain, plotted by reading namelist.wps

Method 2

Using the model’s outputs, which could be the outputs of geogrid.exe, metgrid.exe, or wrf.exe

In this method the WRF simulation domain will be plotted as a topography map.

=============== DOMAIN MAP ================
===========================================
Domain_On-Off = 1
namelist.wps_path (schematic) = /home/anikfal/wrf/WPS/namelist.wps
background_color (schematic) = forestgreen
lables_On-Off (schematic) = 0
+Domain_on_off (topography) = 1
+number_of_domains (topography) = 2
+box_color = white
————————————————————————————-

Output image at a specific time-slot in the WRF output is as bellow:

map to buried treasure

WRF domains, plotted directly by reading the WRF output files

Meteorological diagrams

Plotting two meteorological diagrams is provided by PostWRF:

Wind-rose

=============== WIND ROSE DIAGRAM ================
==================================================
windrose_On-Off = 1
wind_location_name = Berlin
wind_location_latitude = 52.52
wind_location_longitude = 13.40
———————————————————————————————————

Output image at a specific time-slot in the WRF output is as bellow:

map to buried treasure

Windrose diagram from the WRF output, on a specific location (Berlin)

SkewT

=============== SKEWT DIAGRAM ================
==============================================
windrose_On-Off = 1
skewt_location_name = Berlin
skewt_location_latitude = 52.52
skewt_location_longitude = 13.40
———————————————————————————————————

Output image at a specific time-slot in the WRF output is as bellow:

map to buried treasure

SkewT diagram from the WRF output, on a specific location (Berlin)

Statistical Diagrams

The extracted variables (by the PostWRF’s EXTRACT section) can be accompanied by observation values, and used in a couple of statistical diagrams. Time-series, scatter plots, and Taylor diagrams can be plotted by PostWRF. Except the time sereis, the other two diagrams (scatter plots and Taylor diagrams), need both simulation (WRF) and observation values. Time series can be plotted by using only simulation values, without incorporating observations.

Example 1

Plotting time-series (can be simulations or observations) of the WRF output from some locations:

Plotting time-series needs the WRF output extractions in some points. In other words, running the “DATA EXTRACTION” section of PostWRF is a prerequisite stage for the statistical section. The user can copy the simulation extractions (files started by “values”) and change “values” to “observations” to make a new file with a name started by “observations”. Afterwards, the user is supposed to update the new file and replace its values with observation values.

For example, suppose we have extracted T2 variable in 3 locations of Loc_1, Loc_2, and Loc_3, saved in a directory named outputs_postwrf_wrfout_d01_2017-06-21_18:00:00. The extracted file is named “values-T2-Bilinear”. the observation file (provided by the user) will be a file named “observations-T2-Bilinear”, with the exact structure of the copied file, but different values (observation values).

============= STATISTICAL DIAGRAMS ==============
===========================================
STATISTICAL_DIAGRAMS_ON_OFF = 1
Timeseries_ON_OFF = 1
Timeseries_Line_on_off = 1
Timeseries_Marker_on_off = 1
Scatterplot_ON_OFF = 0
Taylor_diagram_ON_OFF = 0
Taylor_labels_size = 1
Taylor_markers_size = 0
————————————————————————————————-

Minimum and maximum of the Y-axis can be specified while running the program.

Sample output image is as below:

map to buried treasure

Timeseries diagram for 2m temperature on several locations (needs either simulations or observations)

Example 2

Scatter plot using the WRF output, and observations in some locations:

============= STATISTICAL DIAGRAMS ==============
===========================================
STATISTICAL_DIAGRAMS_ON_OFF = 1
Timeseries_ON_OFF = 0
Timeseries_Line_on_off = 1
Timeseries_Marker_on_off = 1
Scatterplot_ON_OFF = 1
Taylor_diagram_ON_OFF = 0
Taylor_labels_size = 1
Taylor_markers_size = 0
————————————————————————————————-

Sample output image is as below:

map to buried treasure

Scatter plot for 2m temperature on a specific location (needs both simulations and observations)

Example 3

Taylor Diagram using the WRF output, and observations in some locations:

If several variable outputs are available, Taylor Diagram will be plotted with several models (represented as variables).

============= STATISTICAL DIAGRAMS ==============
===========================================
STATISTICAL_DIAGRAMS_ON_OFF = 1
Timeseries_ON_OFF = 0
Timeseries_Line_on_off = 1
Timeseries_Marker_on_off = 1
Scatterplot_ON_OFF = 0
Taylor_diagram_ON_OFF = 1
Taylor_labels_size = 0.5
Taylor_markers_size = 0.5
————————————————————————————————-

Sample output image is as below:

map to buried treasure

Taylor diagram for 2m temperature on several locations (needs both simulations and observations)

RTTOV model input/output

RTTOV (Radiative Transfer for TOVS) is a fast radiative transfer model to simulate imagery from about 100 satellite sensors. It is a FORTRAN 90 code for simulating satellite radiances, designed to be incorporated within user applications.

PostWRF can prepare RTTOV input file from the WRF output variables, and convert the RTTOV outputs from ASCII to other formats, such as NetCDF, PNG, and GeoTIFF.

Input data preparation

Generating the RTTOV input data:

PostWRF can generate RTTOV input files from a WRF output, on specified time-slots, for all of the WRF horizontal grid points. In the current PostWRF software (V1.2), aerosol impact on the optical depth is supported only for dust particles. The advanced user can modify the NCL codes to add their desired supplemetary capabilities (e.g. extraction of O3, SO2, and other gaseous profiles).

============= RTTOV MODEL INPUT/OUTPUT ==============
===========================================
RTTOV_On-Off = 1
WRF2RTTOV_profiles_OnOff = 1
aerosol_profile_OnOff = 0
RTTOV_OUTPUT_OnOff = 0
rttov_output_prefix = output_example
Brightness_temperature = 1
Reflectance = 0
Radiance = 0
Surface_emissivity = 0
————————————————————————————————-

The first lines of a sample RTTOV input file (from the WRF output), generated by PostWRF is as below:

RTTOV input data from WRF, generated by PostWRF

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! WRF File Name: wrfout_d01_2017-06-21_18:00:00
! TOTAL PROFILES (Grid Points): 8811
! TOTAL LEVELS (in each profile): 48
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! Specify input profiles for example_aer_file_fwd.F90.
! Multiple profiles may be described: follow the same format for each one.
! Comment lines (starting with ‘!’) are optional.
!
! Gas units (must be same for all profiles)
! 0 => ppmv over dry air
! 1 => kg/kg over moist air
! 2 => ppmv over moist air
!
1
! — Start of profile (lat, lon): 1 (1, 1) out of (89, 99)
5.363971
6.147287
7.049780
8.089530

Output data conversion

Converting RTTOV output files to other formats:

PostWRF can convert the RTTOV output files (as ASCII format) to stadard geoscientific data, such as NetCDF. The simulated variables by the RTTOV model are brightness temperature, reflectance, radiance, and surface emissivity. The user must be aware that some of the RTTOV variables might be empty, or with uniform values.

RTTOV output as an ASCII file can be converted to NetCDF, GeoTIFF, PNG, or RGB image. For converting to an RGB image, a python code is run. The required python packages for converting to an RGB image are numpy, pillow, and netCDF4.

============= RTTOV MODEL INPUT/OUTPUT ==============
===========================================
RTTOV_On-Off = 1
WRF2RTTOV_profiles_OnOff = 0
aerosol_profile_OnOff = 0
RTTOV_OUTPUT_OnOff = 1
rttov_output_prefix = output_example
Brightness_temperature = 1
Reflectance = 0
Radiance = 0
Surface_emissivity = 0
————————————————————————————————-

Sample output as a PNG image file is as below:

map to buried treasure

Simulated brightness temperature for the MSG SEVIRI satellite sensor (10.8 \({\mu}\) m), by the RTTOV model, using the WRF output variables - converted to PNG image

ERA5 Contour plots

A combination of three variables, as well as wind vectors and location markers, could be plotted by PostWRF. Moreover, the user can plot the whole domain or a specified sub-domain by turning on ERA5_SubDomain_on_off and setting the relevant variables (Min_lat, Max_lat, Min_lon, and Max_lon)

Note

ERA5 data must be downloaded as NetCDF format

Example 1

A group of line contours (temperature) overlaid on a group of filled contours (geopotential thickness between 500 and 1000 hpa)

============== ERA5 CONTOUR PLOT ===============
=============================================
ERA5_ON_OFF = 1
!!! Variable_1 by line contours !!!
1st_ERA5_Var_on_off = 1
1st_ERA5_Var_name = t
1st_ERA5_Var_pressure_level = 500
1st_ERA5_Var_intervals = 5
1st_ERA5_Var_line_color = red
1st_ERA5_Var_line_thickness = 0.5
1st_ERA5_Var_label_size = 0.3
!!! Variable_2 by (broken) line contours !!!
2nd_ERA5_Var_on_off = 0
2nd_ERA5_Var_name = t+r
2nd_ERA5_Var_pressure_level = 333
2nd_ERA5_Var_intervals = 0
2nd_ERA5_Var_line_color = red
2nd_ERA5_Var_line_thickness = 0.8
2nd_ERA5_Var_label_size = 0.3
2nd_ERA5_Var_brokenline_on_off = 1
!!! Variable_3 by filled (colored) contours !!!
3rd_ERA5_Var_on_off = 1
3rd_ERA5_Var_name = (z-z)/98.1
3rd_ERA5_Var_pressure_level = 500, 1000
Wind_ERA5_on_off = 0
Wind_ERA5_pressure_level = 333
Wind_ERA5_speed (m/s) = 10
Wind_ERA5_density = 0.5
Wind_ERA5_color = blue
Wind_ERA5_thickness = 0.5
ERA5_point_mark_on_off = 0
ERA5_labels_on_off = 1
ERA5_labels_size = 0.3
ERA5_labels_color = black
ERA5_Shapefile_on_off = 0
ERA5_shapefile_path = /home/anikfal/shapefiles/anzali_swamp.shp
ERA5_SubDomain_on_off = 0
Min_lat = 30
Max_lat = 50
Min_lon = 60
Max_lon = 70
—————————————————————————–

Output image at a specific time-slot in the ERA5 NetCDF file is as bellow:

map to buried treasure

Overlaid line contours (temperature) on filled contours (thickness)

Please notice that unlike the WRF outputs, for ERA5 files, pressure levels are not interpolated. Therefor if the input pressure level is not in the file (e.g. 333), the nearest pressure level to this value will be selected.

Example 2

Similar to example one, but with overlaid wind vectors, with sub-domain

Same as WRF outputs, location labels, as well as shapefiles can also be overlaid on the plots

============== ERA5 CONTOUR PLOT ===============
=============================================
ERA5_ON_OFF = 1
!!! Variable_1 by line contours !!!
1st_ERA5_Var_on_off = 1
1st_ERA5_Var_name = t
1st_ERA5_Var_pressure_level = 500
1st_ERA5_Var_intervals = 5
1st_ERA5_Var_line_color = red
1st_ERA5_Var_line_thickness = 0.5
1st_ERA5_Var_label_size = 0.3
!!! Variable_2 by (broken) line contours !!!
2nd_ERA5_Var_on_off = 0
2nd_ERA5_Var_name = t+r
2nd_ERA5_Var_pressure_level = 333
2nd_ERA5_Var_intervals = 0
2nd_ERA5_Var_line_color = red
2nd_ERA5_Var_line_thickness = 0.8
2nd_ERA5_Var_label_size = 0.3
2nd_ERA5_Var_brokenline_on_off = 1
!!! Variable_3 by filled (colored) contours !!!
3rd_ERA5_Var_on_off = 1
3rd_ERA5_Var_name = (z-z)/98.1
3rd_ERA5_Var_pressure_level = 500, 1000
Wind_ERA5_on_off = 1
Wind_ERA5_pressure_level = 500
Wind_ERA5_speed (m/s) = 7
Wind_ERA5_density = 0.5
Wind_ERA5_color = yellow
Wind_ERA5_thickness = 0.5
ERA5_point_mark_on_off = 0
ERA5_labels_on_off = 1
ERA5_labels_size = 0.3
ERA5_labels_color = black
ERA5_Shapefile_on_off = 0
ERA5_shapefile_path = /home/anikfal/shapefiles/anzali_swamp.shp
ERA5_SubDomain_on_off = 1
Min_lat = 30
Max_lat = 50
Min_lon = 55
Max_lon = 65
—————————————————————————–

Output image at a specific time-slot in the WRF output is as bellow:

map to buried treasure

Shaded and line contours, overlaid by wind vectors, plotted over a sub-domain

Example 3

Panel plot of a shaded and a line contour

============== ERA5 CONTOUR PLOT ===============
=============================================
ERA5_ON_OFF = 1
!!! Variable_1 by line contours !!!
1st_ERA5_Var_on_off = 0
1st_ERA5_Var_name = t
1st_ERA5_Var_pressure_level = 500
1st_ERA5_Var_intervals = 5
1st_ERA5_Var_line_color = red
1st_ERA5_Var_line_thickness = 0.5
1st_ERA5_Var_label_size = 0.3
!!! Variable_2 by (broken) line contours !!!
2nd_ERA5_Var_on_off = 0
2nd_ERA5_Var_name = t+r
2nd_ERA5_Var_pressure_level = 333
2nd_ERA5_Var_intervals = 0
2nd_ERA5_Var_line_color = red
2nd_ERA5_Var_line_thickness = 0.8
2nd_ERA5_Var_label_size = 0.3
2nd_ERA5_Var_brokenline_on_off = 1
!!! Variable_3 by filled (colored) contours !!!
3rd_ERA5_Var_on_off = 1
3rd_ERA5_Var_name = vo
3rd_ERA5_Var_pressure_level = 500
Wind_ERA5_on_off = 0
Wind_ERA5_pressure_level = 500
Wind_ERA5_speed (m/s) = 7
Wind_ERA5_density = 0.5
Wind_ERA5_color = yellow
Wind_ERA5_thickness = 0.5
ERA5_point_mark_on_off = 0
ERA5_labels_on_off = 1
ERA5_labels_size = 0.3
ERA5_labels_color = black
ERA5_Shapefile_on_off = 0
ERA5_shapefile_path = /home/anikfal/shapefiles/anzali_swamp.shp
ERA5_SubDomain_on_off = 0
Min_lat = 30
Max_lat = 50
Min_lon = 55
Max_lon = 65
—————————————————————————–

Panel plot is a capability of PostWRF which must be set in the General settings section of namelist.wrf

============== GENERAL SETTINGS ===============
=============================================
spin-up_time (hours) = 6
averaging_on_off = 1
average_time (hours) = 12
panel_plot__on_off = 1
panel_plot__rows_number = 2
panel_plot__columns_number = 3
smooth_maps_on_off = 1
map_borderline_color = black
map_borderline_thickness = 0.7
map_filled_ocean_on_off = 1
map_gridlines_on_off = 1
plot_titles_on_off = 0
————————————————————————————————-

Output images of vorticity by 12 hour average, as panel plots:

map to buried treasure

Contour maps as panel plots