Skip to main content

Command line application to plot WRF model output data

Project description

Application License License: GPL v3

Works on both Linux Linux and Windows Windows.

Mac OS macOS support is available via conda.

Status of Documentation Documentation

Details of PyPi package PyPI Version PyPi Downloads

Status of builds Build and Release PyPi Package

Conda details Conda Version Last updated on Works on Windows, Linux and Mac Download Counts

About wrfplot

wrfplot is a command line application written in Python programming language to plot set of diagnostic variables from World Research and Forecasting (WRF) atmospheric model output file. Though, WRF model output files are simple NetCDF, it requires one to install various software and libraries to plot a few variables. Python has many modules that can deal with WRF model output data set. However, setting up theses libraries, plotting variables through reading lot of documentation is tedious process. wrfplot aims to fill this gap by proving an application that is easy to install and use.

The idea of developing wrfplot came to my mind as I frequently revisit the same code base again and again to tweak few lines of code to get changes in final plots. Therefore, I was looking for a command line application that would help me to tweak the common WRF model forecast images by providing appropriate command line options. I could not find any and hence created one.

Documentation

Documentation of this project is located at https://wxguy.in/wrfplot.

Use Cases

A typical use case of wrfplot would be to include as part of your WRF model run framework to plotting of variables immediately after the model run is completed. The other use case would be to use it for producing publication quality 2D maps which does not much tweaking for your publication.

Installation on all Platforms (Windows, Linux and Mac OS)

Support for all platforms is provided through conda-forge. If you have already conda installed, then following command is enough to install wrfplot:

conda install -c cond-forge wrfplot

Check your installation by typing the following command which should show the version number:

wrfplot --version
0.1.0

Binary (standalone) Installation

Since it is intended to be used as a command line, the application is also distributed as stand-alone on both Linux and Windows. You must download the correct version of application installer or setup file. Both are described below:

Windows Only

Go to https://github.com/wxguy/wrfplot/releases and look for the latest release. The Windows setup executable will have name wrfplot-windows-64bit.exe. Click on the link and download it to local disk. The rest of the installation procedure is same as you do for any other windows setup files. Once installed Check if installation is successful by typing following command in cmd window which should not produce any errors:

wrfplot --version
0.1.0

Linux Only

You must have at least Ubuntu 22.04 , Red Hat 8.x or above for this to work. There is no additional packages or admin rights are required to install this package. Go to https://github.com/wxguy/wrfplot/releases and look for latest release. The Linux installer will have name wrfplot-linux-64bit.run. Click on the link and download it to local disk. Thereafter execute the below command (assuming that the Linux installer is downloaded at ~/Downloads):

bash ~/Downloads/wrfplot-linux-64bit.run

that would produce the output as indicated below:

Verifying archive integrity...  100%   MD5 checksums are OK. All good.
Uncompressing wrfplot_Linux_Installer  100%  
Removing previous install directory...
Installing wrfplot to /home/wxguy/.wrfplot...
Renaming '/home/wxguy/wrfplot' directory to '/home/wxguy/.wrfplot'..
'/home/wxguy/.local/bin' directory already exists. Not creating it.
Linking wrfplot executable...
Updating .bashrc file to include install directory...
/home/wxguy/.local/bin directory already added to PATH. Skipping...
Installation completed. Please restart your terminal to continue using wrfplot...

Once installed Check if installation is successful by typing the following command in the terminal which should not produce any errors:

wrfplot --version
0.1.0

macOS Only

At the moment, macOS support is not available in binary format. However, support is provided through conda. You can install wrfplot using conda install -c cond-forge wrfplot command.

How to use?

Please refer to https://wxguy.in/wrfplot for complete documentation on how to use wrfplot application.

TODO

Add the following command line options:

  • --cmap : Use user provided colour map
  • --ulevels : To plot upper level data as per user defined upper levels
  • --clevels : Control contour levels
  • --animation : Create animation for specific variable(s) in GIF for max compatibility. The animation option is implemented through --gif and --gif-speed options. Completed.
  • --save-format: Save image in specific file format
  • --list-save-format : List all supported image file format
  • --title : Custom title for the plot
  • --title-font-size : Specify title font size

Author

J Sundar (wrf.guy@gmail.com)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wrfplot-2.0.4.tar.gz (14.6 MB view details)

Uploaded Source

File details

Details for the file wrfplot-2.0.4.tar.gz.

File metadata

  • Download URL: wrfplot-2.0.4.tar.gz
  • Upload date:
  • Size: 14.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.19

File hashes

Hashes for wrfplot-2.0.4.tar.gz
Algorithm Hash digest
SHA256 87641f6875fc1d6330d62ae2538a24c087ed6f593c8530ac1219ff9abc481ebb
MD5 0e45ad0b074499d645708d6af10dd878
BLAKE2b-256 37a77f73c153bc2f63d9c300d7f134cf8d940c741506229c90fccd9d335236b8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page