Wind Rose Overview
The wind rose diagram source code is located in the https://github.com/dtcenter/METplotpy repository, under the METplotpy/metplotpy/plots/wind_rose directory. Custom configuration files and sample data are located under the METplotpy/test/wind_rose directory.
Detailed information about the wind rose diagram is available from Read the Docs:
https://metplotpy.readthedocs.io/en/latest/Users_Guide/wind_rose.html
These instructions are relevant for generating the wind rose diagram from the command line. For METplotpy version 2.0, development was performed with Python 3.8 and related third-party packages (i.e. Python packages outside the Python standard library).
The wind rose diagram requires two configuration files, a default and custom configuration file in YAML (https://yaml.org/). The default configuration file is automatically loaded by the source code. The custom configuration file is useful for overriding the default settings in the wind_rose_defaults.yaml configuration file. If the user chooses to use all the settings in the default configuration file, an empty custom configuration file can be provided (however, the user will have the sample data and output plot located in the directories specified in the default configuration file. Some users may not have permission to do this) . The custom configuration files and sample data are located in the METplotpy/test/wind_rose directory of the downloaded/cloned source code. The default configuration file, wind_rose_defaults.yml is located in the METplotpy/metplotpy/plots/config directory.
Set up pre-requisites:
The Python requirements for METplotpy are found in the User's Guide, under the Installation section
METcalcpy is a requirement for METplotpy. The following description is one of numerous methods to set up the working environment to utilize METcalcpy from the METplotpy source code. These instructions are suitable for users that are not working within a conda environment:
- Method 1: Follow instructions in Section 1.1.2 of the Installation section of the METplotpy User's Guide
- Method 2: Using using PyPI (Python Package Index) enter the following:
Clone the METplotpy repository to a directory where you have read/write permissions (replace /path/to/code with the full path to where you are saving the METplotpy source code):
Create the Wind Rose diagram:
Overview of steps:
-
create a WORKING_DIR where you have read/write permissions
-
set the PYTHONPATH, WORKING_DIR, and METPLOTPY_BASE environments
-
copy the wind rose sample data to the WORKING_DIR
-
copy the wind rose custom configuration file to the WORKING_DIR
-
modify the location of the input data and output plot in the custom configuration file
-
run the Python script to generate the wind rose diagram
Replace /path/to/working_dir with the full path to the working directory.
csh:
bash:
csh:
bash:
Modify the custom configuration file:
Save and close the wind_rose_custom.yaml file.
Your wind rose diagram will look like the following: