Skip to content

RRFSx/regrid-wrapper

 
 

Repository files navigation

CLI Usage

The rw command provides a set of command-line tools for regridding.

MPAS to UGRID Conversion

  1. conda env create -f environment-uxarray.yaml
  2. cd <regrid-wrapper src>
  3. conda run -n regrid-wrapper-uxarray pip install -e .
  4. export REGRID_WRAPPER_LOG_DIR=<path to log dir>
  5. conda run -n regrid-wrapper-uxarray rw mpas-to-ugrid <flags>

Convert an MPAS grid file to UGRID format:

usage: rw mpas-to-ugrid [-h] -i INPUT -o OUTPUT [--clobber]

options:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        Input MPAS grid path
  -o OUTPUT, --output OUTPUT
                        Output UGRID path
  --clobber             Overwrite output file if it exists (default is False)

Docker Testing Instructions

Install Docker desktop: https://docs.docker.com/get-started/get-docker/

Start the container environment:

rw_root=<path to regrid-wrapper root> && \
  docker run --rm -it -v ${rw_root}:/opt/project deckyfre/regrid-wrapper-ci bash

Now inside the container:

cd /opt/project && \
  pytest src/test

... or mpi tests:

mpirun -n 8 pytest -m mpi src/test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Python 93.5%
  • Shell 6.4%
  • Dockerfile 0.1%