PyCEM Gridtools

Python package that interfaces to various grid generation/interpolation tools and provides suitable parameter file inputs for SHOC/COMPAS models in EMS

Contents

The Python package cem_gridtools contains the following modules:

  • gridgen low-level interface to gridgen-c

  • grid_interp low-level interface to the EMS grid library

  • cem_gridtools module - this is the main high-level API

To clone repository

git clone --recurse-submodules https://bitbucket.csiro.au/scm/cem/pycem-gridtools.git

Pre-requisites/dependencies

  • Linux environment

  • Recent Python 3.6+ and numpy dev environments

    • Note: you may use conda to avoid system level installs of some packages (eg. python-dev)

  • C compiler

Then all the python requirements are installed via pip

References and acknowledgements

  • gridgen-c - Pavel Sakov’s code repository (imported as a submodule here)

  • pygridgen - Another Python interface to gridgen-c, some of whose ideas are used here

  • NCAR PyNGL - Sibson Natural Neighbours interpolation

  • EMS - The CSIRO Environment Modelling Suite