v3.1.0
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
andget_exposures
- method names changed,
util.interpolate
- refactoring: the module
util.interpolate
was removed and the methods therein were refactored and integrated inutil.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 toeuclidean
. This is faster thanhaversine
for (quasi-)gridded data but less accurate.
- refactoring: the module
TCTracks.from_ibtracs_netcdf
: now stores selected agency for each track variable- Uncertainty Quantification
- renaming module from
uncertainty_quantification
tounsequa
- updating of all plotting methods
- addition of helper methods for the most common uncertainty input parameters for exposures, hazard, impact functions, entities, measures.
- renaming module from
hazard.select
works withextent
.- addition of
hazard.select_tight
to reduce a hazard to a box around anexposure
. - 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 byshapereader.Reader
.
Note: This may lead to aKeyError '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)