Skip to main content

A Python package to read SWAT model output files (.rch, .sub, .hru)

Project description

swatoutpy

A lightweight Python package to read SWAT model (Rev 681) output files: .rch, .sub, and .hru.

How to install

pip install swatoutpy

How to use

For *.rch files

from swatoutpy.reader import read_rch

df = read_rch("output.rch", timestep="monthly")
print(df.head())

For *.sub files

from swatoutpy.reader import read_sub

df = read_sub("output.sub", timestep="annual")
print(df.head())

For multiple files

from swatoutpy.reader import read_multiple_rch

scenarios = [
    ("./sce1/output.rch", "Sce-1"),
    ("./sce1/output.rch", "Sce-2")
]

df = read_multiple_rch(scenarios, timestep="monthly")
print(df.head())

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

swatoutpy-0.1.2.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

swatoutpy-0.1.2-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: swatoutpy-0.1.2.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for swatoutpy-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1a1d83d11298f084143126365dcc221d651c2cde521cc6eab056a913d8d7fab2
MD5 672fd4078272f7dd144f88255eb27d1f
BLAKE2b-256 a3a06262c183edcafb3e18707b2548608dae570b79dd8937b3e2bbb254199e3a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: swatoutpy-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for swatoutpy-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9c052993f19cf4976c99f02be651378be19084776d3fa76da0c8e35c4f565591
MD5 952fdf6170c6b4d13bf0f760abf073d2
BLAKE2b-256 7eb461c5bceca22107799061e4c1628994da22e87eeaffa79406937e6edb8342

See more details on using hashes here.

Supported by

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