Skip to content

v0.8.0

Compare
Choose a tag to compare
@savente93 savente93 released this 18 Jul 14:00
· 403 commits to main since this release
76327f3

This release contains several new features, including extreme value analysis, new generic methods for the GridModel class, setting variable attributes like units through the data catalog, and the ability to detect compatibility issues between Datacatalog and HydroMT versions. It also includes a minor breaking change since now geometry masks are only set if the mask in raster.clip_geom is set to True to improve memory usage.

What's Changed

Added

  • Support for unit attributes for all data types in the DataCatalog. PR #334
  • Data catalog can now handle specification of HydroMT version
  • New generic methods for GridModel: setup_grid, setup_grid_from_constant, setup_grid_from_rasterdataset, setup_grid_from_raster_reclass, setup_grid_from_geodataframe. PR #333
  • New grid workflow methods to support the setup methods in GridModel: grid_from_constant, grid_from_rasterdataset, grid_from_raster_reclass, grid_from_geodataframe.
    PR #333
  • New raster method rasterize_geometry.
  • New extreme valua analysis and design event (creation hydrographs) methods in stats submodule.
    Note that these methods are experimental and may be moved elsewhere / change in signature. PR #85

Changed

  • Arguments to drivers in data catalog files and the DataCatalog.get_ methods should now explicitly be called driver_kwargs instead of kwargs. PR #334
  • New geom_type argument in RasterDataArray.vector_grid to specify the geometry type {'polygon', 'line', 'points'} of the vector grid. PR #351
  • Added extrapolate option to raster.interpolate_na method. PR #348
  • Name of methods setup_maps_from_raster and setup_mesh_from_raster to setup_maps_from_rasterdataset and setup_mesh_from_rasterdataset. PR #333
  • Add rename argument to setup_*_from_rasterdataset, setup_*_from_raster_reclass to maps and mesh for consistency with grid. PR #333
  • Introduced different merge options in GeoDataset.from_gdf and GeoDataFrame.from_gdf. PR #441
  • DataCatalog.get_rasterdataset always uses bbox to clip raster data. PR #434
  • raster.clip_geom only set a geometry mask if the mask argument is true to avoid memory issues. PR #434
  • raster.clip_mask interface and behavior changed to be consistent with raster.clip_geom. PR #318

Fixed

  • Order of renaming variables in DataCatalog.get_rasterdataset for x,y dimensions. PR #324
  • fix bug in get_basin_geometry for region kind 'subbasin' if no stream or outlet option is specified.
  • fix use of Path objects in DataCatalog.from_dict. PR #429
  • raster.reproject_like first clips the data to the target extent before reprojecting. PR #434