Skip to main content

Python package for working with SCHISM input and output files.

Project description

PySCHISM

coverage

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

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.0.5.tar.gz (394.8 kB view details)

Uploaded Source

Built Distribution

pyschism-0.0.5-py3-none-any.whl (121.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyschism-0.0.5.tar.gz
  • Upload date:
  • Size: 394.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for pyschism-0.0.5.tar.gz
Algorithm Hash digest
SHA256 a8c1fbe505a34554bbc28f8ea078635011281d65c42cdaa24981c3e116beffe4
MD5 b3b3b807e92b7d5c66027270e2a08c30
BLAKE2b-256 39d65a2de58ae2c6fc521a7109832411862a9f9817d73f31f3b397ae0607f157

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyschism-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 121.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for pyschism-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3205bb42a345141abc4ffb8ee751646d9c6b030cc17f20b93e04e2c359f56938
MD5 fdcd2108070828c7124639ef1ba4da0c
BLAKE2b-256 e6fc766d62f97299dc295f11d05edec63b583ba5e5df1fb9437fc8ea05be74b8

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