Pydaymet

Latest version: v0.16.1

Safety actively analyzes 626513 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 6

0.13.5

Release Notes

Breaking Changes

- Append \"Error\" to all exception classes for conforming to PEP-8 naming conventions.

Internal Changes

- Bump the minimum versions of `pygeoogc`, `pygeoutils`, `py3dep` to 0.13.5 and that of `async-retriever` to 0.3.5.

0.13.3

Release Notes

Bug Fixes

- Fix a bug in `PETGridded` where the wrong data type was being set for `pet` and `elevation` variables.
- When initializing `PETGridded`, only chunk the elevation if the input climate data is chunked.

0.13.2

Release Notes

Breaking Changes

- Set the minimum supported version of Python to 3.8 since many of the dependencies such as `xarray`, `pandas`, `rioxarray` have dropped support for Python 3.7.

Internal Changes

- Use [micromamba](https://github.com/marketplace/actions/provision-with-micromamba) for running tests and use [nox](https://github.com/marketplace/actions/setup-nox) for linting in CI.

0.13.1

Release Notes

New Features

- Adopt the default snow parameters\' values from a new source <https://doi.org/10.5194/gmd-11-1077-2018> and add the citation.

Bug Fixes

- Set the end year based on the current year since Daymet data get updated every year (:pull_day:[55]{.title-ref}) by [Tim Cera](https://github.com/timcera).
- Set the months for the annual timescale to correct values (:pull_day:[55]{.title-ref}) by [Tim Cera](https://github.com/timcera).

0.13.0

Release Notes

Breaking Changes

- Remove caching-related arguments from all functions since now they can be set globally via three environmental variables:

- `HYRIVER_CACHE_NAME`: Path to the caching SQLite database.
- `HYRIVER_CACHE_EXPIRE`: Expiration time for cached requests in seconds.
- `HYRIVER_CACHE_DISABLE`: Disable reading/writing from/to the cache file.

You can do this like so:

python
import os

os.environ["HYRIVER_CACHE_NAME"] = "path/to/file.sqlite"
os.environ["HYRIVER_CACHE_EXPIRE"] = "3600"
os.environ["HYRIVER_CACHE_DISABLE"] = "true"

0.12.3

Release Notes

New Features

- Add a new flag to both `get_bycoords` and `get_bygeom` functions called `snow` which separates snow from the precipitation using the [Martinez and Gupta (2010)](https://doi.org/10.1029/2009WR008294) method.

Internal Changes

- Add elevation data when computing PET regardless of the `pet` method.
- Match the chunk size of `elevation` with that of the climate data.
- Drop `time` dimension from `elevation`, `lon`, and `lat` variables.

Bug Fixes

- Fix a bug in setting dates for monthly timescales. For monthly timescale Daymet calendar is at 15th or 16th of the month, so input dates need to be adjusted accordingly.

Page 3 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.