Skip to content

Releases: hyriver/pynldas2

v0.19.3

07 Mar 19:11

Choose a tag to compare

Release Notes

New Features

  • Add a new argument to both get_bygeom and get_bycoords functions called validate_filesize. When set to True, the function checks the file size of the previously cached files and will re-download if the local filesize does not match that of the remote. Defaults to False. Setting this to False can be useful when you are sure that the cached files are not corrupted and just want to get the combined dataset more quickly. This is faster because it avoids web requests that are necessary for getting the file sizes.

Internal Changes

  • Use [TinyRetriever](https://github.com/cheginit/tiny-retriever) for all server requests. It offers the same functionalities as the previous _streaming module and has the same dependencies. It has a more robust handling of async threads and is more efficient.

v0.19.1

18 Jan 04:00

Choose a tag to compare

Release Notes

This release is a major refactoring of the package to make it more lightweight and independent. The package now uses aiohttp and aiofiles with a limit on the number of simulnatious connections to the host, for handling all server requests. This avoids hammering the server with multiple requests and improves the performance and reliability of the package. The package no longer depends on other HyRiver libraries, making it more lightweight and faster to load.

Internal Changes

  • Remove dependency on other HyRiver libraries to make the package more lightweight and independent.
  • Use aiohttp and aiofiles for handling all server requests. This avoids hammering the server with multiple requests and improves the performance and reliability of the package.
  • Remove dependency on geopandas and use shapely only for handling geometries. This makes the package more lightweight and faster.

Breaking Changes

  • Since the GRIB source has been discontinued by NASA, the source argument has been removed from the get_bygeom and get_bycoords functions. The package now only supports the NetCDF source.
  • Remove the option to disable SSL in all functions. Now, SSL verification is always enabled.

v0.19.0

18 Jan 02:22

Choose a tag to compare

Release Notes

This release is a major refactoring of the package to make it more lightweight and independent. The package now uses aiohttp and aiofiles with a limit on the number of simulnatious connections to the host, for handling all server requests. This avoids hammering the server with multiple requests and improves the performance and reliability of the package. The package no longer depends on other HyRiver libraries, making it more lightweight and faster to load.

Internal Changes

  • Remove dependency on other HyRiver libraries to make the package more lightweight and independent.
  • Use aiohttp and aiofiles for handling all server requests. This avoids hammering the server with multiple requests and improves the performance and reliability of the package.
  • Remove dependency on geopandas and use shapely only for handling geometries. This makes the package more lightweight and faster.

Breaking Changes

  • Since the GRIB source has been discontinued by NASA, the source argument has been removed from the get_bygeom and get_bycoords functions. The package now only supports the NetCDF source.
  • Remove the option to disable SSL in all functions. Now, SSL verification is always enabled.

v0.18.0

06 Oct 16:38

Choose a tag to compare

Release Notes

Breaking Changes

  • Drop support for Python 3.8 since its end-of-life date is October 2024.
  • Remove all exceptions from the main module and raise them from the exceptions module. This is to declutter the public API and make it easier to maintain.

v0.17.1

14 Sep 16:43

Choose a tag to compare

Release Notes

Internal Changes

  • Drop support for Python 3.8 since its end-of-life date is October 2024.

v0.17.0

07 Jul 17:26

Choose a tag to compare

Release Notes

Internal Changes

  • Add the exceptions module to the high-level API to declutter the main module. In the future, all exceptions will be raised from this module and not from the main module. For now, the exceptions are raised from both modules for backward compatibility.
  • Switch to using the src layout instead of the flat layout for the package structure. This is to make the package more maintainable and to avoid any potential conflicts with other packages.
  • Add artifact attestations to the release workflow.

v0.16.0

03 Jan 23:41

Choose a tag to compare

Release Notes

Internal Changes

  • Remove dependency on dask.
  • Reduce complexity of the code by breaking down the _check_inputs function into _get_variables and _get_dates functions.

v0.15.2

22 Sep 14:26

Choose a tag to compare

Release Notes

Internal Changes

  • Remove dependency on dask.
  • Reduce complexity of the code by breaking down the _check_inputs function into _get_variables and _get_dates functions.

v0.15.1

11 Jul 03:07

Choose a tag to compare

Release Notes

Bug Fixes

  • Fix a bug in computing snow where the t_snow argument was not being converted to Kelvin.

New Features

  • If snow=True is passed to both get_bygeom and get_bycoords functions, the variables argument will be checked to see if it contains prcp and temp, if not, they will be added to the list of variables to be retrieved. This is to ensure that the snow argument works as expected.

v0.15.0

08 May 15:15

Choose a tag to compare

Release Notes

From release 0.15 onward, all minor versions of HyRiver packages will be pinned. This ensures that previous minor versions of HyRiver packages cannot be installed with later minor releases. For example, if you have py3dep==0.14.x installed, you cannot install pydaymet==0.15.x. This is to ensure that the API is consistent across all minor versions.

New Features

  • Add source argument to both get_bygeom and get_bycoords functions. Valid values for source are grib (default) and netcdf. Both return the same values, the latter also offers additional variable psurf for surface pressure. Valid variable names for netcdf are: prcp, pet, wind_u, wind_v, humidity, temp, rsds, rlds, psurf Valid variable names for grib source are unchanged as to not introduce breaking changes.

By Luc Rébillout. - For now, retain compatibility with shapely<2 while supporting shapley>=2.