Giter VIP home page Giter VIP logo

wrf-plugin's Introduction

EVEREST logo

This software bundle is part of the EVEREST project, funded under an EU grant.

WRF RRTMG plugin

This is the main repository of the plugin_rrtmg project, which produces a dynamic library of the same name that dispatches class to the RRTMG submodule in WRF.

Building

A two-step build process is required, which involves the use of Python (version 3.10 or newer). First, setup the virtual environment and install the Python dependencies.

# Setup the python virtual environment.
python3.10 -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txt

To build the plugin, the constant data must be baked. This is achieved by running the following command in the virtual environment:

python bake.py

The plugin_rrtmg project is built using CMake (version 3.20 or newer). Make sure to provide all dependencies required by the project, either by installing them to system-default locations, or by setting the appropriate search location hints!

Dependency apt Package name
libnetcdf libnetcdf-dev
libnetcdf_c++4 libnetcdf-c++4-dev
# Configure.
cmake -S . -B build -G Ninja

# Build.
cmake --build build

Testing

An additional CMake target called runner is provided, which invokes the plugin on pre-recorded test data (data/wrf-input.nc). The runner executable should be executed from within the project root directory, where it will produce an output.nc file.

Assuming the virtual environment is activated, the following commands will perform verification:

# Produces data/ref-output.nc using the Python reference.
python make_reference.py

# Execute the runner.
build/runner

# Compare the actual with the expected result.
python compare.py

License

This project is licensed under the ISC license.


EU notice

wrf-plugin's People

Contributors

kfafsp avatar

Watchers

Christian Pilato avatar  avatar Fabrizio Ferrandi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.