Hydrobricks

Latest version: v0.7.5

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

Scan your dependencies

Page 2 of 5

0.6.2

Breaking changes

- The csv files defining the hydro units (e.g., elevation bands) properties have now to include the units of the values (e.g., m for elevation) below the column title.

Added

- Adding the computation of the slope and aspect from the DEM.
- Transferring slope and aspect values to the hydrological model (e.g., for Socont quick discharge using the unit slope).
- Any hydro unit property can now be extracted from data and provided to the hydrological model (flexible generic approach).
- Adding the computation of the mean latitude and longitude for each hydro unit and allow using it for the PET computation.
- Adding an extraction of the forcing using a faster weighted approach.
- Addition of an example script for the catchment data preparation.
- Allow loading unit ids from raster.
- Adding a hydro unit discretization by elevation and aspect (separately or combined; with an example script).

Changed

- Refactoring catchment attributes parsing.
- The csv files defining the hydro units (e.g., elevation bands) properties have now to include the units of the values (e.g., m for elevation) below the column title.

Fixed

- Socont quick discharge has been fixed.

0.6.1

Fixed

- Fixing an issue with the data container shape when using the spatialization from gridded data.

0.6.0

Breaking changes

- Many changes in the Forcing class:
- load_from_csv() was renamed to load_station_data_from_csv().
- define_spatialization() was renamed to spatialize_from_station_data() and is only meant for spatialization from station data.
- correct_station_data() was added and is to be used for applying a correction factor, for example.
- spatialize_from_gridded_data() was added to load data from gridded netCDF files.
- compute_pet() was added and uses the pyet package.
- The operations are not performed immediately, but only applied when apply_operations() is called, which is done automatically before the model run or before saving the forcing data to a netcdf file.
- The Catchment class is now part of the main module.

Added

- Adding the spatialization from gridded data with spatialize_from_gridded_data().
- Adding PET computation using the pyet library. New function: compute_pet().
- The forcing data can now be loaded from the dumped netCDF file with load_from().

Changed

- Refactoring of the Forcing and TimeSeries classes to separate 1D and 2D data.
- Enums are used to specify the Forcing variables.
- The Catchment class is now part of the main module.
- The Catchment class can generate a geotiff of the hydro unit ids with save_unit_ids_raster()

Fixed

- Fixing an issue with the elevation range condition in the elevation bands creation.

0.5.0

Breaking changes

- Removing hyphens for underscores. Any component (including land cover elements) have to use underscores and not hyphens (e.g., glacier_ice instead of glacier-ice, slow_reservoir instead of slow-reservoir)

Added

- Adding aliases for all parameters.
- Adding examples.
- Adding Socont constraints.

Changed

- Changing Socont default values.
- Upgrading conan builds.
- Upgrading C++ minimal version.
- Upgrading to Pandas 2.0.

Fixed

- Code improvements.
- There were issues to build the wheel locally (in editable mode).

0.4.11

Added
- Resetting the behaviour counters when resetting the model.
- Adding land cover fractions to the logger output.

Fixed
- Fixing issue of behaviour dates not being correctly sorted.
- Fixing issue with dates in land cover behaviours.

0.4.10

Fixed

- Fixing ground area compensation in land cover changes.
- Fixing flux weighting when applying land cover changes.

Page 2 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.