climada.entity package#
- climada.entity.disc_rates package
- climada.entity.disc_rates.base module
DiscRatesDiscRates.yearsDiscRates.ratesDiscRates.__init__()DiscRates.clear()DiscRates.check()DiscRates.select()DiscRates.append()DiscRates.net_present_value()DiscRates.plot()DiscRates.from_mat()DiscRates.read_mat()DiscRates.from_excel()DiscRates.read_excel()DiscRates.write_excel()DiscRates.from_csv()DiscRates.write_csv()
- climada.entity.disc_rates.base module
- climada.entity.exposures package
- climada.entity.exposures.litpop package
- climada.entity.exposures.litpop.gpw_population module
- climada.entity.exposures.litpop.litpop module
GPW_VERSIONLitPopLitPop.exponentsLitPop.fin_modeLitPop.gpw_versionLitPop.__init__()LitPop.set_countries()LitPop.from_countries()LitPop.set_nightlight_intensity()LitPop.from_nightlight_intensity()LitPop.set_population()LitPop.from_population()LitPop.set_custom_shape_from_countries()LitPop.from_shape_and_countries()LitPop.set_custom_shape()LitPop.from_shape()LitPop.set_country()
get_value_unit()reproject_input_data()gridpoints_core_calc()
- climada.entity.exposures.litpop.nightlight module
NOAA_RESOLUTION_DEGNASA_RESOLUTION_DEGNASA_TILE_SIZENOAA_BORDERBM_FILENAMESBM_NIGHTLIGHT_GRIDload_nasa_nl_shape()get_required_nl_files()check_nl_local_file_exists()download_nl_files()load_nasa_nl_shape_single_tile()load_nightlight_nasa()read_bm_file()unzip_tif_to_py()untar_noaa_stable_nightlight()load_nightlight_noaa()
- climada.entity.exposures.base module
ExposuresExposures.descriptionExposures.ref_yearExposures.value_unitExposures.dataExposures.vars_obligExposures.vars_defExposures.vars_optExposures.crsExposures.gdfExposures.latitudeExposures.longitudeExposures.geometryExposures.valueExposures.region_idExposures.category_idExposures.coverExposures.deductibleExposures.hazard_impf()Exposures.hazard_centroids()Exposures.derive_raster()Exposures.__init__()Exposures.check()Exposures.set_crs()Exposures.set_gdf()Exposures.get_impf_column()Exposures.assign_centroids()Exposures.set_geometry_points()Exposures.set_lat_lon()Exposures.set_from_raster()Exposures.from_raster()Exposures.plot_scatter()Exposures.plot_hexbin()Exposures.plot_raster()Exposures.plot_basemap()Exposures.write_hdf5()Exposures.read_hdf5()Exposures.from_hdf5()Exposures.read_mat()Exposures.from_mat()Exposures.to_crs()Exposures.plot()Exposures.copy()Exposures.write_raster()Exposures.concat()Exposures.centroids_total_value()Exposures.affected_total_value()
add_sea()INDICATOR_IMPFINDICATOR_CENTR
- climada.entity.exposures.litpop package
- climada.entity.impact_funcs package
- climada.entity.impact_funcs.base module
ImpactFuncImpactFunc.haz_typeImpactFunc.idImpactFunc.nameImpactFunc.intensity_unitImpactFunc.intensityImpactFunc.mddImpactFunc.paaImpactFunc.__init__()ImpactFunc.calc_mdr()ImpactFunc.plot()ImpactFunc.check()ImpactFunc.from_step_impf()ImpactFunc.set_step_impf()ImpactFunc.from_sigmoid_impf()ImpactFunc.set_sigmoid_impf()ImpactFunc.from_poly_s_shape()
- climada.entity.impact_funcs.impact_func_set module
ImpactFuncSetImpactFuncSet._dataImpactFuncSet.__init__()ImpactFuncSet.clear()ImpactFuncSet.append()ImpactFuncSet.remove_func()ImpactFuncSet.get_func()ImpactFuncSet.get_hazard_types()ImpactFuncSet.get_ids()ImpactFuncSet.size()ImpactFuncSet.check()ImpactFuncSet.extend()ImpactFuncSet.plot()ImpactFuncSet.from_excel()ImpactFuncSet.read_excel()ImpactFuncSet.from_mat()ImpactFuncSet.read_mat()ImpactFuncSet.write_excel()
- climada.entity.impact_funcs.storm_europe module
- climada.entity.impact_funcs.trop_cyclone module
- climada.entity.impact_funcs.base module
- climada.entity.measures package
- climada.entity.measures.base module
MeasureMeasure.nameMeasure.haz_typeMeasure.color_rgbMeasure.costMeasure.hazard_setMeasure.hazard_freq_cutoffMeasure.exposures_setMeasure.imp_fun_mapMeasure.hazard_inten_impMeasure.mdd_impactMeasure.paa_impactMeasure.exp_region_idMeasure.risk_transf_attachMeasure.risk_transf_coverMeasure.risk_transf_cost_factorMeasure.__init__()Measure.check()Measure.calc_impact()Measure.apply()
- climada.entity.measures.measure_set module
MeasureSetMeasureSet._dataMeasureSet.__init__()MeasureSet.clear()MeasureSet.append()MeasureSet.remove_measure()MeasureSet.get_measure()MeasureSet.get_hazard_types()MeasureSet.get_names()MeasureSet.size()MeasureSet.check()MeasureSet.extend()MeasureSet.from_mat()MeasureSet.read_mat()MeasureSet.from_excel()MeasureSet.read_excel()MeasureSet.write_excel()
- climada.entity.measures.base module
climada.entity.entity_def module#
- class climada.entity.entity_def.Entity(exposures: Exposures | None = None, disc_rates: DiscRates | None = None, impact_func_set: ImpactFuncSet | None = None, measure_set: MeasureSet | None = None)[source]#
Bases:
objectCollects exposures, impact functions, measures and discount rates. Default values set when empty constructor.
- impact_funcs#
impact functions set
- Type:
- measures#
measures
- Type:
- def_file#
Default file from configuration file
- Type:
str
- __init__(exposures: Exposures | None = None, disc_rates: DiscRates | None = None, impact_func_set: ImpactFuncSet | None = None, measure_set: MeasureSet | None = None)[source]#
Initialize entity
- Parameters:
exposures (climada.entity.Exposures, optional) – Exposures of the entity. The default is None (empty Exposures()).
disc_rates (climada.entity.DiscRates, optional) – Disc rates of the entity. The default is None (empty DiscRates()).
impact_func_set (climada.entity.ImpactFuncSet, optional) – The impact function set. The default is None (empty ImpactFuncSet()).
measure_set (climada.entity.Measures, optional) – The measures. The default is None (empty MeasuresSet().
- classmethod from_mat(file_name)[source]#
Read MATLAB file of climada.
- Parameters:
file_name (str, optional) – file name(s) or folder name containing the files to read
- Returns:
ent – The entity from matlab file
- Return type:
climada.entity.Entity
- classmethod from_excel(file_name)[source]#
Read csv or xls or xlsx file following climada’s template.
- Parameters:
file_name (str, optional) – file name(s) or folder name containing the files to read
description (str or list(str), optional) – one description of the data or a description of each data file
- Returns:
ent – The entity from excel file
- Return type:
climada.entity.Entity