Skip to main content

pyhecdss

> Note: This project only supports DSS version 6 and now recommends users to HEC-DSS Python version 7 and higher

For reading/writing HEC-DSS files [https://www.hec.usace.army.mil/software/hec-dss/] HEC-DSS is an ancient database used by the Army Corps of Engineers and prevalent in water related models. This module is a bridge to read and write time series data from this data format and read it into pandas DataFrame

Features

  • Open and close DSS files

  • Read catalog of DSS files as pandas DataFrame

  • Read and write time series from DSS files

Limitations

  • Only support for Python 3 - 64 bit for windows and linux

  • Relies on pre-compiled libraries the source distribution of which is not allowed

Credits

This package wraps the HEC-DSS Software using the Swig library.

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

CHANGELOG

1.1.4

fix for issue #25, #26, #27 and warning cleanup

1.1.3

Fixed imports to avoid circular import issue #27

1.1.2

more fixes for create_new flag tests

1.1.1

fixing tests for create_new flag

1.1.0

DSS file only created when explicitly create_new=True(default: False)

1.0.2

bugfix for empty arrays

1.0.1

handle pandas Series on writes

1.0.0

using generators for get_ts and get_matching_ts functions for efficiency context manager for use “with” statement fixed for pandas >=1.1 auto versioning turned on

0.6.1

fixed bug when switching to non-condensed catalog that caused shortening of time windows

0.6.0

  • fix for breaking change by pandas >= 1.1

  • switching to using non-condensed catalog, flag available to switch back

  • changing exception on missing pathname to logging message

  • changing message level to 0 as default

  • adding get_rts_matching for pathname selection by regular expressions

  • replaced warnings with debug logging

0.5.1

Fixed for ‘*’ in catalog file in case of missing periods

0.5.0

Added helper function for simple timeseries retrieval

0.4.1

regular and irregular timeseries now share same time window parsing logic

0.4.0

fixes for issue #16: pandas timestamp limitations

0.3.1

another fix for pandas 1.0.0 upgrade - issue #15

0.3.0

fix for issue 15: units ‘M’ and ‘Y’ no longer supported

0.2.9

Fixed issue with end of timestamp writing to dss files for “PER-*” data type

0.2.8

Recompiled heclib in linux with latest compilers to resolve issue 8

0.2.7

Partial fixes for offset: Fixed for “INST-*” timeseries but not “PER-*” timeseries (issue #12)

0.2.6

Performance tests added to showcase pyhecdss is the fastest Fixed issue #10: Period data stored shifted to end of time stamp (HEC-DSS convention) Fixing libgfortran dependency on linux by statically linking the library

0.2.5

Merged pull request from HenryDane: issues warnings or throws exception based on return value from functions fixed minor typo(s), added tests

0.2.4

Fixes issues #2, #4: get_version(), set_message_level(), set_program_name() now supported at module level Fixes issues #1: HECDSS marks periods by end of time stamp bug

0.2.3

Added linux 64bit support Corrected license to MIT for conda distribution

0.2.2

Update tests to use a smaller test.dss files Added sphinx documentation and demo notebook

0.2.1

Write irregular time series

0.2.0

Write regular time series Read irregular time series as data frame + units + type Performance improvement to using np.zeros instead of np.array(range…)

0.1.6

Metadata

Release files for pyhecdss 1.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for pyhecdss 1.6.0
File Interpreter ABI Platform Actions
pyhecdss-1.6.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for pyhecdss-1.6.0-cp311-cp311-win_amd64.whl

Release files / pyhecdss-1.6.0-cp311-cp311-win_amd64.whl

Download URL pyhecdss-1.6.0-cp311-cp311-win_amd64.whl
Size 451.6 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
eafeef36fe8de4a6ae095a9a9fd8689fbeb76d14ed63b1ab6728927c0bda8bf6
BLAKE2b-256 checksum
How to use checksums
02cc7ce11db23499071ae4ca879ea23fbecdc5d8b53def7eeea124874fd8d90e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.11

Security for pyhecdss 1.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page