Skip to main content

Reimplementation of the delta.snow model by Winkler et al. 2021: Snow water equivalents exclusively from snow depths and their temporal changes.

Project description

ReadTheDocs PyPI-Server GitHub Workflow Status PyPI - Python Version

pydeltasnow

Python implementation of the deltaSNOW model by Winkler et al. 2021:

Winkler, M., Schellander, H., and Gruber, S.: Snow water equivalents exclusively from snow depths and their temporal changes: the DeltaSNOW model, Hydrol. Earth Syst. Sci., 25, 1165-1187, 10.5194/hess-25-1165-2021, 2021.

The original implementation is included within the nixmass R package of Winkler et al 2021. Differences of this version to the original R version are the following:

  • The model accepts breaks in the date series if a break is sourrounded by zeros. Additionally, breaks in the date series can be accepted if surrounded by NaNs. See below for more information. This behaviour can be useful for measurement series that are not continued in summer.

  • The user can specify how to deal with missing values in a measurement series. There are three parameters that control NaN handling:

    • ignore_zeropadded_gaps

    • ignore_zerofollowed_gaps

    • interpolate_small_gaps

    Note that the runtime efficiency of the model will decrease when one or several of these options are turnded on.

  • Accepts as input data only a pd.Series with pd.DatetimeIndex and no dataframe.

  • The time resolution (timestep in R implementation) will be automatically sniffed from the DatetimeIndex of the input series.

  • The user can specify the input and output units of the HS and SWE measurement series, respectively.

  • A pd.Series with the dates as pd.DatetimeIndex is returned.

The core of this code is mainly based on the work of Manuel Theurl, this version makes use of the numba just-in-time compiler for performance optimization.

Dependencies

The package is tested on python versions 3.7, 3.8 and 3.9. Higher python versions might work too but are not tested. pydeltasnow depends on the following packages:

Installation

Install pydeltasnow and its dependencies by runnig:

pip install pydeltasnow

Usage

For examples on how to use the package, please have a look at the documentation of this project.

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

pydeltasnow-0.1.0.tar.gz (324.1 kB view details)

Uploaded Source

Built Distribution

pydeltasnow-0.1.0-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file pydeltasnow-0.1.0.tar.gz.

File metadata

  • Download URL: pydeltasnow-0.1.0.tar.gz
  • Upload date:
  • Size: 324.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pydeltasnow-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4555800e29ec8967bc0cadb3bdc7aae3dc6813a8cf01c1bf9ccacc0dc6cc7044
MD5 d05f1574d85cccfb6cedb7c489b3b94c
BLAKE2b-256 1368aec9c8d45b77225ba8e4c2278f5f9998a8b297ff6079039686ef62241627

See more details on using hashes here.

File details

Details for the file pydeltasnow-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pydeltasnow-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pydeltasnow-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 54025e1ca4a9bb4c5b1848afdd822746dc665a0fb581293e9b13419fa7d50c20
MD5 f2bccf84bf7eb7f72a247ac23e93cc6e
BLAKE2b-256 115036d6760ff8f3d7f9e95523826172e0db7e30de24ad53a454a4e0dbd06f11

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