|
50 | 50 | from matplotlib.collections import LineCollection |
51 | 51 | from matplotlib.colors import BoundaryNorm, ListedColormap |
52 | 52 | from matplotlib.lines import Line2D |
53 | | -from shapely.geometry import LineString, MultiLineString, Point |
| 53 | +from shapely.geometry import LineString, MultiLineString, Point, Polygon |
54 | 54 | from sklearn.metrics import DistanceMetric |
55 | 55 |
|
56 | 56 | import climada.hazard.tc_tracks_synth |
|
167 | 167 | } |
168 | 168 | """Basin-specific default environmental pressure""" |
169 | 169 |
|
| 170 | +BASINS_BOUNDS = { |
| 171 | + "NA": Polygon( |
| 172 | + [ |
| 173 | + (-100, 19), |
| 174 | + (-94.21951983987083, 17.039584804350312), |
| 175 | + (-88.75211790888072, 14.837521327451947), |
| 176 | + (-84.96610530622198, 12.214318798718033), |
| 177 | + (-84.89823142225451, 12.181148019885352), |
| 178 | + (-82.59052306410497, 8.777858931465238), |
| 179 | + (-81.09730008320902, 8.358383265470449), |
| 180 | + (-79.50226644452471, 9.196860922133856), |
| 181 | + (-78.58597052442947, 9.213610839871123), |
| 182 | + (-77.02487377167459, 7.299350879751048), |
| 183 | + (-77.02487377167459, 5), |
| 184 | + (-20.0, 5.0), |
| 185 | + (-20.0, 60.0), |
| 186 | + (-100.0, 60.0), |
| 187 | + (-100, 19), |
| 188 | + ] |
| 189 | + ), |
| 190 | + "EP": Polygon( |
| 191 | + [ |
| 192 | + (-180.0, 5.0), |
| 193 | + (-77.02487377167459, 5), |
| 194 | + (-77.02487377167459, 7.299350879751048), |
| 195 | + (-78.58597052442947, 9.213610839871123), |
| 196 | + (-79.50226644452471, 9.196860922133856), |
| 197 | + (-81.09730008320902, 8.358383265470449), |
| 198 | + (-82.59052306410497, 8.777858931465238), |
| 199 | + (-84.89823142225451, 12.181148019885352), |
| 200 | + (-84.96610530622198, 12.214318798718033), |
| 201 | + (-88.75211790888072, 14.837521327451947), |
| 202 | + (-94.21951983987083, 17.039584804350312), |
| 203 | + (-100, 19), |
| 204 | + (-100.0, 60.0), |
| 205 | + (-180.0, 60.0), |
| 206 | + (-180.0, 5.0), |
| 207 | + ] |
| 208 | + ), |
| 209 | + "WP": Polygon( |
| 210 | + [(100.0, 5.0), (180.0, 5.0), (180.0, 60.0), (100.0, 60.0), (100.0, 5.0)] |
| 211 | + ), |
| 212 | + "NI": Polygon( |
| 213 | + [(40.0, 5.0), (100.0, 5.0), (100.0, 60.0), (40.0, 60.0), (40.0, 5.0)] |
| 214 | + ), |
| 215 | + "SI": Polygon( |
| 216 | + [(10.0, -60.0), (135.0, -60.0), (135.0, -5.0), (10.0, -5.0), (10.0, -60.0)] |
| 217 | + ), |
| 218 | + "SP": Polygon( |
| 219 | + [(135.0, -60.0), (240.0, -60.0), (240.0, -5.0), (135.0, -5.0), (135.0, -60.0)] |
| 220 | + ), |
| 221 | +} |
| 222 | +""" Basins latitude and longitude bounds. """ |
| 223 | + |
170 | 224 | EMANUEL_RMW_CORR_FILES = [ |
171 | 225 | "temp_ccsm420thcal.mat", |
172 | 226 | "temp_ccsm4rcp85_full.mat", |
|
0 commit comments