Pynldas2

Latest version: v0.16.0

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

Scan your dependencies

Page 1 of 2

0.15.2

-------------------

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.

0.15.1

-------------------

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.

0.15.0

-------------------
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 <https://github.com/LucRSquared>`__.
- For now, retain compatibility with ``shapely<2`` while supporting
``shapley>=2``.

0.14.0

-------------------

New Features
~~~~~~~~~~~~
- Add ``snow`` and ``snow_params`` arguments to both ``get_bygeom``
and ``get_bycoords`` functions for computing snow from ``prcp``
and ``temp``.
- Rewrite ``by_coords`` functions to improve performance and
reduce memory usage. Also, its ``to_xarray`` argument now returns
a much better structured ``xarray.Dataset``. Moreover, the function
has a new argument called ``coords_id`` which allows the user to
specify IDs for the input coordinates. This is useful for cases
where the coordinates belong to some specific features, such as
station location, that have their own IDs. These IDs will be used
for both cases where the data is returned as ``pandas.DataFrame``
or ``xarray.Dataset``.

Internal Changes
~~~~~~~~~~~~~~~~
- Sync all minor versions of HyRiver packages to 0.14.0.

0.1.12

-------------------

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.1.2

------------------

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

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.