Skip to main content

Python package for working with SCHISM input and output files.

Project description

PySCHISM

codecov DOI

A Python interface for SCHISM model runs.

Installation:

Pre-requisites

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 https://github.com/schism-dev/pyschism
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.open('hgrid.gr3')
hgrid.make_plot(show=True)
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.open('hgrid.gr3')
hgrid.write("/path/to/output/file.2dm", fmt='2dm')

Online manual

https://schism-dev.github.io/schism/master/getting-started/pre-processing-with-pyschism/overview.html

References

If you used this software as part of your work, please use the following citation format.

Jaime R Calzada, Linlin Cui, & Joseph Zhang. (2023). schism-dev/pyschism: v0.1.5 (v0.1.5). Zenodo. https://doi.org/10.5281/zenodo.7623122


Questions, comments and suggestions are welcome. Please follow the instructions on the CONTRIBUTING.md file for contributions. For bug reports and feature requests, please open an issue using the issue tracker. Main author name: Jaime R Calzada Author contact: jrcalzada@vims.edu


“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.14.tar.gz (518.7 kB view details)

Uploaded Source

Built Distribution

pyschism-0.1.14-py3-none-any.whl (226.6 kB view details)

Uploaded Python 3

File details

Details for the file pyschism-0.1.14.tar.gz.

File metadata

  • Download URL: pyschism-0.1.14.tar.gz
  • Upload date:
  • Size: 518.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for pyschism-0.1.14.tar.gz
Algorithm Hash digest
SHA256 b7afbeae5124f9149c8d291c7d71b1eb3b83bff5f609efeaea0e00f3bb07e169
MD5 78aeae4dda6c8f22f36031b72bd6984f
BLAKE2b-256 7a2cdb98f5a8cc4945f1676d3ae1543815e66aa184f8d999a00b66a90550c2eb

See more details on using hashes here.

File details

Details for the file pyschism-0.1.14-py3-none-any.whl.

File metadata

  • Download URL: pyschism-0.1.14-py3-none-any.whl
  • Upload date:
  • Size: 226.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for pyschism-0.1.14-py3-none-any.whl
Algorithm Hash digest
SHA256 65a44c31dec18148492528ff3e8ad14d07751592b767c75c6fff384c760b3b89
MD5 526ca05674dfc94676b60edd00837b01
BLAKE2b-256 e1cee03f1b9ff181387a6cf9b3a55c7acf38e2e1feff98a1bf9f558159fdd296

See more details on using hashes here.

Supported by

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