|
488 | 488 | "- `append()` is used to expand events with data from another `Hazard` (and same centroids).\n", |
489 | 489 | "- `select()` returns a new hazard with the selected region, date and/or synthetic or historical filter.\n", |
490 | 490 | "- `remove_duplicates()` removes events with same name and date.\n", |
491 | | - "- `local_exceedance_inten()` returns a matrix with the exceedence frequency at every frequency and provided return periods. This is the one used in `plot_rp_intensity()`.\n", |
| 491 | + "- `local_exceedance_intensity()` returns a gdf.GeoDataFrame with the exceedence frequency at every frequency and provided return periods.\n", |
492 | 492 | "- `local_return_period()` returns a gdf.GeoDataFrame with the return periods at every centroid for user-specified threshold intensities. \n", |
493 | 493 | "- `reproject_vector()` is a method to change the centroids' CRS. \n", |
494 | 494 | "\n", |
|
755 | 755 | "haz_tc_fl.plot_intensity(event='1998295N12284', cmap='BuGn') # setting color map\n", |
756 | 756 | "\n", |
757 | 757 | "# 4. tropical cyclone intensities maps for the return periods [10, 50, 75, 100]\n", |
758 | | - "_, res = haz_tc_fl.plot_rp_intensity([10, 50, 75, 100])\n", |
| 758 | + "exceedance_intensities, label, column_label = haz_tc_fl.local_exceedance_intensity([10, 50, 75, 100])\n", |
| 759 | + "from climada.util.plot import plot_from_gdf\n", |
| 760 | + "plot_from_gdf(exceedance_intensities, colorbar_name=label, title_subplots=column_label)\n", |
759 | 761 | "\n", |
760 | 762 | "# 5. tropical cyclone return period maps for the threshold intensities [30, 40]\n", |
761 | 763 | "return_periods, label, column_label = haz_tc_fl.local_return_period([30, 40])\n", |
762 | | - "from climada.util.plot import plot_from_gdf\n", |
763 | 764 | "plot_from_gdf(return_periods, colorbar_name=label, title_subplots=column_label)\n", |
764 | 765 | "\n", |
765 | 766 | "# 6. intensities of all the events in centroid with id 50\n", |
|
0 commit comments