8000 GitHub - NCAR/wrf_hydro_training: Jupyter notebooks for WRF-Hydro trainings · GitHub
[go: up one dir, main page]

Skip to content

About

Jupyter notebooks for WRF-Hydro trainings

Topics

Resources

Stars

57 stars

Watchers

7 watching

Forks

Latest commit

 

History

382 Commits

Folders and files

Repository files navigation

WRF-Hydro®

Training Status

Overview

This repository contains lessons in the form of Jupyter notebooks focused on understanding the basic functionality of WRF-Hydro.

Requirements

The easiest and recommended way to run these lessons is via the wrfhydro/training Docker container, which has all software dependencies and data pre-installed.

  • Docker >= v.17.12
  • Web browser (Google Chrome recommended)

Where to get help and/or post issues

If you have general questions about Docker, there are ample online resourves including the excellent Docker documentation at https://docs.docker.com.

If you have questions about WRF-Hydro or these lessons please use the contact form on our website: https://ral.ucar.edu/projects/wrf_hydro/contact.

If you have found a bug in these lessons please log an issue on the Issues page of the GitHub repository at https://github.com/NCAR/wrf_hydro_training/issues.

How to run

Make sure you have Docker installed and that it can access your localhost ports. Most out-of-the-box Docker installations accepting all defaults will have this configuration.

Step 1: Open a terminal or PowerShell session

Step 2: Pull the wrfhydro/training Docker container for the desired code version Each training container is specific to a release version of the WRF-Hydro source code, which can be found at https://github.com/NCAR/wrf_hydro_nwm_public/releases.

Issue the following command in your terminal to pull a specific version of the training corresponding to your code release ver 5790 sion.

$ docker pull wrfhydro/training:v5.2.0-rc1

Step 3: Start the training container Issue the following commnand in your terminal session to start the training Docker container.

$ docker run --name wrf-hydro-training -p 8888:8888 wrfhydro/training

Start in interative mode with persistent data $ docker run --name wrf-hydro-training -it -v ./path/to/wrf_hydro_training:/home/docker/saved wrfhydro/training

Run training notebooks CI

$ docker run --name wrf-hydro-ci --rm -e CI_TESTING=true wrfhydro/training

Note: If you have already started the training once you will need to remove the previous container using the command $ docker rm wrf-hydro-training

The container will start and perform a number of actions before starting the training.

  1. The container will pull the model code
  2. The container will pull an example test case
  3. The container will launch a Jupyter Lab server and echo the address to your terminal

Note: Port forwarding is setup with the -p 8888:8888 argument, which maps your localhost port to the container port. If you already have sometihng running on port 8888 on your localhost you will need to change this number

About

Jupyter notebooks for WRF-Hydro trainings

Topics

Resources

Stars

57 stars

Watchers

7 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0