Skip to content

Commit 9c9150b

Browse files
add bounds
1 parent 95052b2 commit 9c9150b

File tree

1 file changed

+55
-1
lines changed

1 file changed

+55
-1
lines changed

climada/hazard/tc_tracks.py

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
from matplotlib.collections import LineCollection
5151
from matplotlib.colors import BoundaryNorm, ListedColormap
5252
from matplotlib.lines import Line2D
53-
from shapely.geometry import LineString, MultiLineString, Point
53+
from shapely.geometry import LineString, MultiLineString, Point, Polygon
5454
from sklearn.metrics import DistanceMetric
5555

5656
import climada.hazard.tc_tracks_synth
@@ -167,6 +167,60 @@
167167
}
168168
"""Basin-specific default environmental pressure"""
169169

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+
170224
EMANUEL_RMW_CORR_FILES = [
171225
"temp_ccsm420thcal.mat",
172226
"temp_ccsm4rcp85_full.mat",

0 commit comments

Comments
 (0)