pyschism


Namepyschism JSON
Version 0.1.15 PyPI version JSON
download
home_pagehttps://github.com/schism-dev/pyschism.git
SummaryPython package for working with SCHISM input and output files.
upload_time2023-11-07 15:32:42
maintainer
docs_urlNone
author"SCHISM development group"
requires_python>3.6
license"Apache 2.0"
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # PySCHISM
[![codecov](https://codecov.io/gh/schism-dev/pyschism/branch/main/graph/badge.svg?token=VE9PHEACBZ)](https://codecov.io/gh/schism-dev/pyschism)
[![DOI](https://zenodo.org/badge/233075737.svg)](https://zenodo.org/badge/latestdoi/233075737)

## A Python interface for SCHISM model runs.

### Installation:

#### Pre-requisites
It is highly recommended that you run this software using a [Python virtual environment](https://gist.github.com/jreniel/c2dd4f2f68f9d8172355461b5337f236), 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:
```bash
apt-get install udunits-bin
```


#### Install option 1: pip
```bash
pip install pyschism
```

#### Install option 2: clone repo
To install, clone this repository, and navigate into it:
``` bash
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:

```bash
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.

```bash
pip install -e .
```
---
### Usage examples:

#### Using the Library

##### Example 1: Full domain Hgrid plot:
``` python
from pyschism.mesh import Hgrid
hgrid = Hgrid.open('hgrid.gr3')
hgrid.make_plot(show=True)
```

##### Example 2: Write mesh to QGIS friendly format
```python
# 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
---

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/schism-dev/pyschism.git",
    "name": "pyschism",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">3.6",
    "maintainer_email": "",
    "keywords": "",
    "author": "\"SCHISM development group\"",
    "author_email": "jreniel@gmail.com, lcui@vims.edu",
    "download_url": "https://files.pythonhosted.org/packages/1f/7b/ae4aea93ad8c66e4fa213e1dfd20162a316744aff7237fe7cbd77a5329e6/pyschism-0.1.15.tar.gz",
    "platform": null,
    "description": "# PySCHISM\n[![codecov](https://codecov.io/gh/schism-dev/pyschism/branch/main/graph/badge.svg?token=VE9PHEACBZ)](https://codecov.io/gh/schism-dev/pyschism)\n[![DOI](https://zenodo.org/badge/233075737.svg)](https://zenodo.org/badge/latestdoi/233075737)\n\n## A Python interface for SCHISM model runs.\n\n### Installation:\n\n#### Pre-requisites\nIt is highly recommended that you run this software using a [Python virtual environment](https://gist.github.com/jreniel/c2dd4f2f68f9d8172355461b5337f236), 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.\nYou should also have the cdunits library installed. In ubuntu systems this is achieved by:\n```bash\napt-get install udunits-bin\n```\n\n\n#### Install option 1: pip\n```bash\npip install pyschism\n```\n\n#### Install option 2: clone repo\nTo install, clone this repository, and navigate into it:\n``` bash\ngit clone https://github.com/schism-dev/pyschism\ncd pyschism\n```\nThen make sure to activate the target Python environment (this step is not necessary if you chose not to use a virtual environment).\nAfter making sure your target environment is active, you can install the package using pip:\n\n```bash\npip install .\n```\n\n#### If you are a developer\nIf you are a developer, it is recommended that you clone the repo.\nAfter you add the `-e` flag to the pip install command in order to install in developer mode.\n\n```bash\npip install -e .\n```\n---\n### Usage examples:\n\n#### Using the Library\n\n##### Example 1: Full domain Hgrid plot:\n``` python\nfrom pyschism.mesh import Hgrid\nhgrid = Hgrid.open('hgrid.gr3')\nhgrid.make_plot(show=True)\n```\n\n##### Example 2: Write mesh to QGIS friendly format\n```python\n# NOTE: 2dm files can be read by QGIS > 3.0\nfrom pyschism.mesh import Hgrid\nhgrid = Hgrid.open('hgrid.gr3')\nhgrid.write(\"/path/to/output/file.2dm\", fmt='2dm')\n```\n---\n## Online manual\n\nhttps://schism-dev.github.io/schism/master/getting-started/pre-processing-with-pyschism/overview.html\n\n## References\n\nIf you used this software as part of your work, please use the following citation format.\n\nJaime R Calzada, Linlin Cui, & Joseph Zhang. (2023). schism-dev/pyschism: v0.1.5 (v0.1.5). Zenodo. https://doi.org/10.5281/zenodo.7623122\n\n---\n\n\n\nQuestions, 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.\nMain author name: Jaime R Calzada\nAuthor contact: jrcalzada@vims.edu\n\n\n---\n    \u201cMarconi is a good fellow. Let him continue. He is using seventeen of my patents.\u201d\n    Nikola Tesla\n---\n",
    "bugtrack_url": null,
    "license": "\"Apache 2.0\"",
    "summary": "Python package for working with SCHISM input and output files.",
    "version": "0.1.15",
    "project_urls": {
        "Homepage": "https://github.com/schism-dev/pyschism.git"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e3b2df0dcb888f3b4faab6fe72c4409e0c7cac8b62cb50b4808882508d811589",
                "md5": "b98ce97c3a837674108ec888d153a03a",
                "sha256": "b2db11cdb199d02fd8be24902a30dbda83c60147ce77a4f4e03161baf9b35644"
            },
            "downloads": -1,
            "filename": "pyschism-0.1.15-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b98ce97c3a837674108ec888d153a03a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">3.6",
            "size": 226561,
            "upload_time": "2023-11-07T15:32:40",
            "upload_time_iso_8601": "2023-11-07T15:32:40.958213Z",
            "url": "https://files.pythonhosted.org/packages/e3/b2/df0dcb888f3b4faab6fe72c4409e0c7cac8b62cb50b4808882508d811589/pyschism-0.1.15-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1f7bae4aea93ad8c66e4fa213e1dfd20162a316744aff7237fe7cbd77a5329e6",
                "md5": "0d51e69dbe6df074aa95ab4fa2acc718",
                "sha256": "42bed698d21bd8e24427a8ffba9148f74519da02ec35e1e0e463feacb47d5bac"
            },
            "downloads": -1,
            "filename": "pyschism-0.1.15.tar.gz",
            "has_sig": false,
            "md5_digest": "0d51e69dbe6df074aa95ab4fa2acc718",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">3.6",
            "size": 518675,
            "upload_time": "2023-11-07T15:32:42",
            "upload_time_iso_8601": "2023-11-07T15:32:42.612611Z",
            "url": "https://files.pythonhosted.org/packages/1f/7b/ae4aea93ad8c66e4fa213e1dfd20162a316744aff7237fe7cbd77a5329e6/pyschism-0.1.15.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-07 15:32:42",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "schism-dev",
    "github_project": "pyschism",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pyschism"
}
        
Elapsed time: 0.13923s