Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 31 additions & 22 deletions cmip_basins/cmip6.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

"""basins module that includes definitions and creation function """

import sys
import numpy as np

try:
Expand Down Expand Up @@ -36,8 +35,8 @@

# polygon points:

melbourne = (145.0, -37.8)
cape_town = (18.4, -33.9)
melbourne = (146.4, -39.15)
cape_town = (20.0, -34.75)

perth = (115.9, -32.0) # lon

Expand All @@ -46,7 +45,8 @@
[
[-180, melbourne[1]],
[-68.1, melbourne[1]],
[-68.1, cape_town[1]],
[-68.1, -31],
[-55.1, cape_town[1]],
[cape_town[0], cape_town[1]],
[perth[0], cape_town[1]],
[perth[0], -30],
Expand All @@ -62,14 +62,18 @@
[
[-42.0, 66.5], # greenland
[-41.0, 66.0],
[-40.0, 65.0], # greenland
[-40.0, 65.5], # greenland
[-32.0, 68.5], # Greenland
[-24.4, 65.5], # Patreksfjordur
[-22.0, 66.0], # Holmavik, kinda
[-22.0, 65.0], # Budardalur, kinda
[-18.6, 65.0], # iceland
[15.1, 65.0], # sweden
[15.1, 64.8], # sweden
[14.49, 56.99], # South Sweden
[12.56, 56.04], # Helsinger
[12.29, 55.63], # Copenhagen
[11.60, 55.49], # Zealand
[10.72, 55.32], # Funen
[9.0, 55.40], # Funen
[9.23, 54.79], # Flensburg
[9.82, 53.50], # Hamburg
[2.3, 47.1], # bourges
Expand All @@ -79,7 +83,8 @@
[cape_town[0], 7],
[19.0, -33.0], # just inland from cape town
[cape_town[0], cape_town[1]],
[-68.1, cape_town[1]],
[-55.1, cape_town[1]],
[-68.1, -31],
[-68.1, 7], # venezuela
[-75.68, 6.22], # Medellin, Columbia
[-77.68, 8.12], # Yaviza, Panama
Expand All @@ -93,13 +98,13 @@
[-99.1, 19.4], # mexico city
[-106.7, 35.1], # albequerque
[-76.46, 49.60], # Baie James. QC
[-71.71, 60.72], # Riviere Koksoak, QC
[-72.11, 60.72], # Riviere Koksoak, QC
[-70.83, 63.06], # Kimmirut, Nunavut
[-69.62, 64.14], #
[-68.61, 66.46], # Kipisa, NU
[-68.20, 67.72], # Baffin island
[-62.02, 66.71], # Cape Dyer
[-52.46, 68.29], # Davis strait, Greenland side
[-52.46, 68.20], # Davis strait, Greenland side
]
)

Expand All @@ -110,8 +115,8 @@
[-177.52, 66.69], # Russia
[-174.10, 66.02], # Russia
[-169.86, 66.09], # Naukan, Russia
[-169.06, 65.80], # Big Diomede
[-167.97, 65.61], # Wales, AK
[-169.06, 65.70], # Big Diomede
[-167.97, 65.70], # Wales, AK
[-140.0, 65.0],
[-106.7, 35.1], # albequerque
[-99.1, 19.4], # mexico city
Expand Down Expand Up @@ -163,12 +168,16 @@
[98.8, 65.0], # krasnoyarsk
[35.93, 60.93], # Russia
[21.30, 68.04], # North Sweden
[15.1, 65.0], # sweden
[15.1, 64.8], # sweden
[-18.6, 65.0], # iceland
[-40.0, 65.0], # greenland
[-22.0, 65.0], # Budardalur, kinda
[-22.0, 66.0], # Holmavik, kinda
[-24.4, 65.5], # Patreksfjordur
[-32.0, 68.5], # Greenland
[-40.0, 65.5], # greenland
[-41.0, 66.0],
[-42.0, 66.5], # greenland
[-52.46, 68.29], # Davis strait, Greenland side
[-52.46, 68.20], # Davis strait, Greenland side
[-62.02, 66.71], # Cape Dyer
[-68.20, 67.72], # Baffin island
[-78.18, 71.13], # Baffin island
Expand All @@ -178,8 +187,8 @@
[-93.19, 66.34], # Keewatin, NU
[-100.53, 64.47], # Keewatin, NU
[-140.0, 65.0],
[-167.97, 65.61], # Wales, AK
[-169.06, 65.80], # Big Diomede
[-167.97, 65.70], # Wales, AK
[-169.06, 65.70], # Big Diomede
[-169.86, 66.09], # Naukan, Russia
[-174.10, 66.02], # Russia
[-177.52, 66.69], # Russia
Expand All @@ -191,7 +200,7 @@
HUD = np.array(
[
[-70.83, 63.06], # Kimmirut, Nunavut
[-71.71, 60.72], # Riviere Koksoak, QC
[-72.11, 60.72], # Riviere Koksoak, QC
[-76.46, 49.60], # Baie James. QC
[-87.01, 52.01], # Ontario
[-99.04, 57.21], # Manitoba
Expand Down Expand Up @@ -244,7 +253,7 @@
[
[2.3, 47.1], # bourges
[11.6, 48.0], # munich
[28.7, 41.0], # istanbul
[28.7, 41.1], # istanbul
[33.02, 40.03], # ankara
[37.3, 37.1], # gaziantep
[36.8, 30.6], # jordan
Expand All @@ -257,7 +266,7 @@

BLK = np.array(
[
[28.7, 41.0], # istanbul
[28.7, 41.1], # istanbul
[24.78, 43.51], # pleven
[30.1, 48.7], # uman
[44.2, 48.7], # volograd
Expand All @@ -270,12 +279,12 @@
[
[9.82, 53.50], # Hamburg
[9.23, 54.79], # Flensburg
[10.72, 55.32], # Funen
[9.0, 55.40], # Funen
[11.60, 55.49], # Zealand
[12.29, 55.63], # Copenhagen
[12.56, 56.04], # Helsinger
[14.49, 56.99], # South Sweden
[15.1, 65.0], # sweden
[15.1, 64.8], # sweden
[21.30, 68.04], # North Sweden
[35.93, 60.93], # Russia
[30.42, 59.85], # st petersburg
Expand Down
Loading