The rw command provides a set of command-line tools for regridding.
conda env create -f environment-uxarray.yamlcd <regrid-wrapper src>conda run -n regrid-wrapper-uxarray pip install -e .export REGRID_WRAPPER_LOG_DIR=<path to log dir>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)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