Pydaymet

Latest version: v0.16.1

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

Scan your dependencies

Page 2 of 6

0.14.0

Release Notes

New Features

- Change missing value of both single-pixel and gridded versions to `numpy.nan` from -9999.
- Add a new model parameter for computing PET using `priestlet_taylor` and `penman_monteith` models called `arid_correction`. For arid regions, FAO 56 suggests subtracting the min temperature by 2 degrees. This parameter can be passed via `pet_params` in `daymet_by*` functions, or `params` in `potential_pet` function.
- Refactor `get_bycoords` to reduce memory usage by using a combination of `itertools` and `Generator` objects.
- Refactor the `pet` module to improve performance and readability, and reduce code duplication.

Documentation

- Add more information about parameters that `pet` functions accept.

Breaking Changes

- Bump the minimum required version of `shapely` to 2.0, and use its new API.

Internal Changes

- Sync all minor versions of HyRiver packages to 0.14.0.

0.13.12

Release Notes

Internal Changes

- Fully migrate `setup.cfg` and `setup.py` to `pyproject.toml`.
- Convert relative imports to absolute with `absolufy-imports`.
- Sync all patch versions of HyRiver packages to x.x.12.

0.13.10

Release Notes

New Features

- Refactor the `show_versions` function to improve performance and print the output in a nicer table-like format.

Bug Fixes

- Fix a bug in `get_bygeom` where for small requests that lead to a single download URL, the function failed.

Internal Changes

- Skip 0.13.9 version so the minor version of all HyRiver packages become the same.

0.13.8

Release Notes

Internal Changes

- More robust handling of getting large gridded data. Instead of caching the requests/ responses, directly store the responses as NetCDF files to a cache folder using `pygeoogc.streaming_download` and ultimately read them using `xarray.open_mfdataset`. This should make the `bygeom` function even faster than before and also make it possible to make large requests without having to worry about running out of memory (:issue_day:[59]{.title-ref}).
- Modify the codebase based on [Refurb](https://github.com/dosisod/refurb) suggestions.

0.13.7

Release Notes

**Since the release of Daymet v4 R1 on November 2022, the URL of Daymet\'s server has been changed. Therefore, only the latest version of PyDaymet (v0.13.7) is going to work, and previous versions will not work anymore.**

New Features

- Add support for passing a list of coordinates to the `get_bycoords` function. Also, optionally, you can pass a list of IDs for the input coordinates that will be used as `keys` for the returned `pandas.DataFrame` or a dimension called `id` in the returned `xarray.Dataset` if `to_xarray` is enabled.
- Add a new argument called `to_xarray` to the `get_bycoords` function for returning the results as a `xarray.Dataset` instead of a `pandas.DataFrame`. When set to `True`, the returned `xarray.Dataset` will have three attributes called `units`, `description`, and `long_name`.
- The `date` argument of both `get_bycoords` and `by_geom` functions now accepts `range`-type objects for passing years, e.g., `range(2000-2005)`.

python
import pydaymet as daymet

0.13.6

Release Notes

Internal Changes

- Add the missing PyPi classifiers for the supported Python versions.

Page 2 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.