Skip to main content

Python package for working with SCHISM input and output files.

Project description



A Python interface for SCHISM model runs.



It is highly recommended that you run this software using a Python virtual environment, and that you use Python>=3.6 (preferrably, using the latest available Python version is encouraged). You may use conda or venv to satisfy this dependency. You should also have the cdunits library installed. In ubuntu systems this is achieved by:

apt-get install udunits-bin

Install option 1: pip

pip install pyschism

Install option 2: clone repo

To install, clone this repository, and navigate into it:

git clone
cd pyschism

Then make sure to activate the target Python environment (this step is not necessary if you chose not to use a virtual environment). After making sure your target environment is active, you can install the package using pip:

pip install .

If you are a developer

If you are a developer, it is recommended that you clone the repo. After you add the -e flag to the pip install command in order to install in developer mode.

pip install -e .

Usage examples:

Using the Library

Example 1: Full domain Hgrid plot:
from pyschism.mesh import Hgrid
hgrid ='hgrid.gr3')
Example 2: Write mesh to QGIS friendly format
# NOTE: 2dm files can be read by QGIS > 3.0
from pyschism.mesh import Hgrid
hgrid ='hgrid.gr3')
hgrid.write("/path/to/output/file.2dm", fmt='2dm')

Questions, comments and suggestions are welcome. Please follow the instructions on the file for contributions. For bug reports and feature requests, please open an issue using the issue tracker. Author contact:

“Marconi is a good fellow. Let him continue. He is using seventeen of my patents.”
Nikola Tesla

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyschism-0.1.5.tar.gz (485.7 kB view hashes)

Uploaded source

Built Distribution

pyschism-0.1.5-py3-none-any.whl (208.5 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page