Skip to content

v3.1.0

Compare
Choose a tag to compare
@emanuel-schmid emanuel-schmid released this 02 Feb 11:25
· 725 commits to main since this release

updated features:

  • new function get_admin1_geometries: return GeoDataFrame with geometries of admin 1 regions within given countries.
  • 'set_' method deprecated. New methods 'from_'.
  • '+init CRS specs' deprecated.
  • data-api client refactored:
    • method names changed, list_data_type_infos returns only data types with active datasets (data types with only test data are hidden)
    • concatenation of CLIMADA objects was removed from get_hazard and get_exposures
  • util.interpolate
    • refactoring: the module util.interpolate was removed and the methods therein were refactored and integrated in util.coordinates.
    • a new method _nearest_neighbor_euclidean was added to find nearest neighbors with a k-d tree using Euclidean metric.
    • the default distance for exposure.assign_centroids was changed to euclidean. This is faster than haversine for (quasi-)gridded data but less accurate.
  • TCTracks.from_ibtracs_netcdf: now stores selected agency for each track variable
  • Uncertainty Quantification
    • renaming module from uncertainty_quantification to unsequa
    • updating of all plotting methods
    • addition of helper methods for the most common uncertainty input parameters for exposures, hazard, impact functions, entities, measures.
  • hazard.select works with extent.
  • addition of hazard.select_tight to reduce a hazard to a box around an exposure.
  • adaptations to Natural Earth (v5.0.0) from 2021-12-08. The file format has changed and posed a problem to the shapefile.Reader, which consequently was replaced by shapereader.Reader.
    Note: This may lead to a KeyError 'GDP_MD' in various places, e.g. climada.util.finance.nat_earth_adm0. To come over it, remove the cached Natural Earth files in ~/.local/share/cartopy/shapefiles/natural_earth/.

changed environment:

  • cartopy >= 0.20 (0.18 - 0.19)
  • cfgrib 0.9.7 - 0.9.9 (>= 0.9.7)
  • contextily 1.0 - 1.1 (1.0)
  • numba != 0.55.0
  • rasterio >= 1.2.7 (1.1 - 1.2.6)