Code Monkey home page Code Monkey logo

wrf-docker's Introduction

Docker Container for WRF

John Exby and Kate Fossell provided a method to encapsulate the WRF modeling system with a container.

From their work, we have modified the Dockerfiles to work with new code, and a couple of separate use cases. The Dockerfiles include

  • Source code for WRF and WPS, from github
  • External libraries required to build WRF and WPS
  • Construct enough of an OS to have traditional user-level Linux capabilities
  • Ability to use the GNU compiler for compilation
  • OpenMPI is used for distributed memory processing
  • Post-processing is available, via PDF fields, from NCL
  • The static data for geogrid is available (low resolution only)
  • Two Dockerfiles to allow a tutorial walk-through, or regression testing
  • The tutorial case has namelists and Grib data to run end-to-end
  • The regression case has metgrid output and all of the NML files from the regression suite

There is a README for each of the two Dockerfiles: tutorial and regtest. Make sure that you copy the correct Dockerfile. Either:

ln -sf Dockerfile_tutorial Dockerfile

or

ln -sf Dockerfile_regtest Dockerfile

Tutorial

The README_tutorial.md has step-by-step instructions to run the entire WRF system, from geogrid through generating PDF files with model output. We go "into" the container for the tutorial case. This is a mechanical process of the required process to churn through the modeling system parts.

docker   build   -t   wrf_tutorial  .
mkdir OUTPUT
docker   run   -it   --name   teachme   -v   `pwd`/OUTPUT:/wrf/wrfoutput   wrf_tutorial   /bin/tcsh

Regtest

The purpose of the regression test is to allow a specifically built container to conduct a number of tests. We stay outside of the container for the regression test case. Because of the way that we started this container, we need to explicitly "stop" it after we are finished.

docker   build   -t   wrf_regtest  .
docker   run   -d -t   --name   test_001   wrf_regtest   /bin/tcsh
docker   exec  test_001   ./script.csh   BUILD   CLEAN   34   1   em_real -d
docker   exec  test_001   ./script.csh   RUN   em_real   34   em_real 03
docker   stop  test_001

For regression testing, the above two docker exec commands should each have a exit status of 0. Additionally, in the README_regtest.md file, there is explicit information for each test that may be conducted for the regression suite.

wrf-docker's People

Contributors

davegill 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.