Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Andrew Buddenberg
gcis-py-client
Commits
858063ee
Commit
858063ee
authored
Mar 21, 2014
by
abuddenberg
Browse files
Added some dataset identifiers for aggregation
parent
37dae3b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/.gcis-client.py.swp
deleted
100644 → 0
View file @
37dae3b3
File deleted
src/domain.py
View file @
858063ee
...
...
@@ -8,6 +8,7 @@ from dateutil.parser import parse
import
re
import
inspect
class
Gcisbase
(
object
):
def
__init__
(
self
,
data
,
fields
=
[],
trans
=
{}):
#Setup class variables
...
...
@@ -214,12 +215,26 @@ class Dataset(Gcisbase):
'Daily 1/8-degree gridded meteorological data [1 Jan 1949 - 31 Dec 2010]'
:
'Maurer'
,
'NCEP/NCAR Reanalysis'
:
'NCEP-NCAR'
,
'NCDC Global Surface Temperature Anomalies'
:
'NCDC-GST-Anomalies'
,
'GRACE Static Field Geopotential Coefficients JPL Release 5.0 GSM'
:
'GRACE'
'GRACE Static Field Geopotential Coefficients JPL Release 5.0 GSM'
:
'GRACE'
,
'UW/NCDC Satellite Derived Hurricane Intensity Dataset'
:
'Hurricane-Intensity'
,
'Bias-Corrected and Spatially Downscaled Surface Water Projections Hydrologic Data'
:
'Water-Projections'
,
'International Best Track Archive for Climate Stewardship (IBTrACS)'
:
'IBTrACS'
,
'the World Climate Research Programme
\'
s (WCRP
\'
s) Coupled Model Intercomparison Project phase 3 (CMIP3) multi-model dataset'
:
'CMIP3'
,
'North American Regional Climate Change Assessment Program dataset'
:
'NARCCAP'
,
'Gridded Population of the World Version 3 (GPWv3): Population Count Grid'
:
'GPWv3'
}
#Private attributes for handling date parsing
self
.
_release_dt
=
None
self
.
_access_dt
=
None
self
.
_publication_year
=
None
#These do not accurately reflect GCIS' data model
self
.
note
=
None
self
.
activity
=
None
super
(
Dataset
,
self
).
__init__
(
data
,
fields
=
self
.
gcis_fields
,
trans
=
self
.
translations
)
self
.
identifier
=
self
.
_identifiers
[
self
.
name
]
if
self
.
name
in
self
.
_identifiers
else
self
.
name
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment