-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add historical sea ice extent aggregator
- Loading branch information
1 parent
357e27d
commit d970640
Showing
5 changed files
with
43 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
from geometric_features.aggregation.seaice.arctic_regions import arctic | ||
from geometric_features.aggregation.seaice.historical_sea_ice import qgreenland |
33 changes: 33 additions & 0 deletions
33
geometric_features/aggregation/seaice/historical_sea_ice.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
def qgreenland(gf): | ||
""" | ||
Aggregate Greenland continental shelf regions similar to ISMIP6 | ||
Parameters | ||
---------- | ||
gf : geometric_features.GeometricFeatures | ||
An object that knows how to download and read geometric features | ||
Returns | ||
------- | ||
fc : geometric_features.FeatureCollection | ||
The new feature collection with antarctic regions | ||
""" | ||
# Authors | ||
# ------- | ||
# Alex Hager | ||
|
||
regions = ['April Historical Median Sea Ice Extent', | ||
'August Historical Median Sea Ice Extent', | ||
'December Historical Median Sea Ice Extent', | ||
'February Historical Median Sea Ice Extent', | ||
'January Historical Median Sea Ice Extent', | ||
'July Historical Median Sea Ice Extent', | ||
'June Historical Median Sea Ice Extent', | ||
'March Historical Median Sea Ice Extent', | ||
'May Historical Median Sea Ice Extent', | ||
'November Historical Median Sea Ice Extent', | ||
'October Historical Median Sea Ice Extent', | ||
'September Historical Median Sea Ice Extent' | ||
] | ||
fc = gf.read(componentName='seaice', objectType='region', | ||
featureNames=regions) | ||
|
||
return fc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters