Skip to main content

Python package for working with SCHISM input and output files.

Project description

PySCHISM

codecov

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')

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. Author contact: jrcalzada@wm.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.5.tar.gz (485.7 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyschism-0.1.5.tar.gz
Algorithm Hash digest
SHA256 dc9e8bc429a6adce2db5e0bff7322f900b7f4d61c0182ec1b5f5c95a60ee90f1
MD5 ac4fc4cfda273d510f7c416a102d1bdb
BLAKE2b-256 6cd661b6c658745980484c16fc97c7b4ec60a019b442962f4e05c5518b2085b6

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pyschism-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 10a51d4365273efd393b1923629ceb48cf3ec7f1ddcf58bc2ffae2a723052251
MD5 cb0df38bec4042df44495b96065a5f0d
BLAKE2b-256 f332a0c3c19e0ede7d7d90f0ab8c0a03ad7f4b8089670dc8a07cb4d8b80f0105

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