Skip to main content

Analysis of surface water data.

Project description

hyswap - HYdrologic Surface Water Analysis Package

USGS-category-image pipeline-status-image coverage-report-image PyPI version PyPI - Python Version

Overview

hyswap (HYdrologic Surface Water Analysis Package), is a Python package which provides a set of functions for manipulating and visualizing USGS water data. Specifically, a number of functions for calculating statistics (e.g., exceedance probabilities, daily historic percentiles) and generating related plots (e.g., flow duration curves, streamflow duration hydrographs) are available. These methods are provided in a modular fashion as individual functions, and are designed to give the user flexibility in implementation.

Project Documentation

For more information, visit the hyswap documentation.

Installation

User Installation via pip

One-liner to install hyswap via pip:

pip install hyswap

Note: hyswap has 4 dependencies right now, numpy, pandas, scipy, and matplotlib, these will be installed automatically when installing the package via pip.

User Installation From Source

To install hyswap from source, first you will need to clone the repository. Next, from the root of the repository, run the following commands:

pip install -r requirements.txt
pip install .

Developer Installation

Developer installation should be performed from source. First you will need to clone the repository. Next, from the root of the repository, run the following commands:

pip install -r requirements.txt
pip install -r requirements-dev.txt
pip install -e .

Testing and Building Documentation Locally

To test the code and building and test the documentation locally, you must have cloned the source repository, follow the instructions above for a "developer installation" first.

To test the package locally, run the following command from the root of the repository:

pytest

To build the documentation locally, run the following commands from the root of the repository:

cd docs
make docs

Running the Linting and Formatting Checks Locally

To run the linting and formatting checks locally, run the following commands from the root of the repository:

flake8 .
pydocstringformatter .

Running the Example Workflow Notebooks

The example workflow notebooks are extended example use cases of hyswap functions. Open the jupyter notebooks from the 'example_notebooks' folder in the hyswap repository. The notebooks sometimes utilize additional packages that are not required to run hyswap. You can use the developer installation instructions to ensure you have all of the required packages to run the notebooks.

Contributing

See the contributing guidelines for more information.

License

See the license for more information.

Disclaimer

See the disclaimer for more information.

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

hyswap-0.1.2.tar.gz (2.0 MB view details)

Uploaded Source

Built Distribution

hyswap-0.1.2-py3-none-any.whl (43.0 kB view details)

Uploaded Python 3

File details

Details for the file hyswap-0.1.2.tar.gz.

File metadata

  • Download URL: hyswap-0.1.2.tar.gz
  • Upload date:
  • Size: 2.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for hyswap-0.1.2.tar.gz
Algorithm Hash digest
SHA256 95eecf4408bd0802ce3d45b09bd1305c23ca8df5a84098374580ccb93d5e9862
MD5 946c643ec623758a5c5a4c43cb6b3954
BLAKE2b-256 f74faa4f9621619b67eb722c3a85cf3a2ed5eae5fa5a65004f66335820d06632

See more details on using hashes here.

File details

Details for the file hyswap-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: hyswap-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 43.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for hyswap-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8558331900e3cd13026f68a4ad3ad5ce8b8b118594461c415437a710147aa95a
MD5 d1b37638e5a318a5b4ce89b047433905
BLAKE2b-256 92be92f03d4998a2c81602be753a2a9e5de374d4ce36c4a6c6d5bfe810d2748e

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