Interpolates global chemistry fields for use with WRF-CHEM
Project description
Interpolator for WRF-CHEM
Interpolator for WRF-CHEM is a preprocessing application for using global chemistry model fields with WRF-CHEM. It interpolates the global chemistry model fields to the WRF-CHEM grid and vertical levels. Think of it like WPS but for chemistry fields.
Some features:
- Interpolates 3D fields
- Can do species/size bin mapping through linear combinations of source fields
- Potentially support many global models (currently supports CAMS EAC4)
The application is written in Python and is meant to be used a command-line tool. Some potential limitations:
- The application currently assumes that fields are mixing ratios.
- The global model fields should be on a regular lat-lon grid.
- No nesting support
Installation
The application is available on PyPI and can be installed using pip:
pip install interpolator-for-wrfchem
Usage
The workflow for using the interpolator is as follows:
- Use WPS and
real.exe
as usual to generate themet_em
,wrfinput
, andwrfbdy
files. - Download global chemistry model fields (e.g. CAMS EAC4) for the same time period as the WRF simulation.
- Run the interpolator to interpolate the global chemistry model fields to the WRF-CHEM grid and vertical levels.
- Run WRF-CHEM.
The interpolator will update wrfinput
and wrfbdy
files to include the chemistry information.
The interpolator is a command-line tool and can be run as follows:
interpolator-for-wrfchem <global model data path> <met_em path> <wrfinput_d01 path> <wrfbdy_d01 path> <species map path> <output path>
The wrfinput_d01
and wrfbdy_d01
files WILL BE MODIFIED!
There are some optional flags:
--copy-icbc
: Make a backup of thewrfinput
andwrfbdy
files before updating them.--no-ic
and--no-bc
: Do not update thewrfinput
andwrfbdy
files, respectively.--diagnostics
: Store some diagnostic information in thediag.nc
file.
Species mapping
In many cases, the available fields of the global model do not directly correspond to the ones used by the chemistry/dust scheme you want to use in WRF-CHEM. For example, you might have dust concentrations available in different size bins. The application supports "species mapping", through which the WRF-CHEM fields are created through a linear combination of global model fields, after interpolation.
Detailed description of the species file format is available in species_maps.md.
License
The interpolator is licensed under the MIT License. See LICENSE for more information. Please cite the project if you use it for your research!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for interpolator_for_wrfchem-1.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c98259b59c658a9c4fd08d77d52acd91697d88dd5281115af8657cff63a3a55 |
|
MD5 | 9d20b7af50947a1acc54360a758ebf77 |
|
BLAKE2b-256 | af6a6d4270d71b91ab7e302d9c33b24ddd6cecf7ebfc46e0a3c77011f24df37d |
Hashes for interpolator_for_wrfchem-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26bde5c4f2b5278184e0b3a1ca1beae854cf0a2af94c32bb23b970b249199815 |
|
MD5 | 24dc801fab79b589fe16fdc6eb6f24b6 |
|
BLAKE2b-256 | 150041332ce6392317abc627fcc6c2cd8e89af83d5f224ace5aa9657baf3c5d1 |