Commit e77111fe authored by abuddenberg's avatar abuddenberg
Browse files

Refactored more hacks out into webform_transforms.py

parent 2e863f58
...@@ -227,7 +227,7 @@ class Image(GcisObject): ...@@ -227,7 +227,7 @@ class Image(GcisObject):
class Dataset(GcisObject): class Dataset(GcisObject):
def __init__(self, data, trans=()): def __init__(self, data, trans=(), known_ids=None):
self.gcis_fields = ['contributors', 'vertical_extent', 'native_id', 'href', 'references', 'cite_metadata', self.gcis_fields = ['contributors', 'vertical_extent', 'native_id', 'href', 'references', 'cite_metadata',
'scale', 'publication_year', 'temporal_extent', 'version', 'parents', 'scope', 'type', 'scale', 'publication_year', 'temporal_extent', 'version', 'parents', 'scope', 'type',
'processing_level', 'files', 'data_qualifier', 'access_dt', 'description', 'spatial_ref_sys', 'processing_level', 'files', 'data_qualifier', 'access_dt', 'description', 'spatial_ref_sys',
...@@ -235,49 +235,7 @@ class Dataset(GcisObject): ...@@ -235,49 +235,7 @@ class Dataset(GcisObject):
'attributes'] 'attributes']
#This desperately needs to get added to the webform self._identifiers = known_ids
self._identifiers = {
'Global Historical Climatology Network - Daily': 'nca3-ghcn-daily-r201305',
'Global Historical Climatology Network - Monthly': 'nca3-ghcn-monthly-r201305',
'NCDC Merged Land and Ocean Surface Temperature': 'nca3-mlost',
'NOAA Merged Land-Ocean Surface Temperature Analysis (MLOST)': 'nca3-mlost',
'U.S. Climate Divisional Dataset Version 2': 'nca3-cddv2-r1',
'Climate Division Database Version 2': 'nca3-cddv2-r1',
'Eighth degree-CONUS Daily Downscaled Climate Projections by Katharine Hayhoe': 'nca3-cmip3-downscaled-r201304',
'Eighth degree-CONUS Daily Downscaled Climate Projections': 'nca3-cmip3-downscaled-r201304',
'Earth Policy Institute Atmospheric Carbon Dioxide Concentration, 1000-2012': 'nca3-epi-co2-r201307',
'Daily 1/8-degree gridded meteorological data [1 Jan 1949 - 31 Dec 2010]': 'nca3-maurer-r201304',
'NCEP/NCAR Reanalysis': 'nca3-ncep-ncar-r1',
'NCDC Global Surface Temperature Anomalies': 'nca3-ncdc-gst-anomalies-r201307',
'GRACE Static Field Geopotential Coefficients JPL Release 5.0 GSM': 'nca3-grace-r201307',
'UW/NCDC Satellite Derived Hurricane Intensity Dataset': 'nca3-hursat-r1',
'Bias-Corrected and Spatially Downscaled Surface Water Projections Hydrologic Data': 'nca3-water-projections-r201208',
'International Best Track Archive for Climate Stewardship (IBTrACS)': 'nca3-ibtracs-r201311',
'the World Climate Research Programme\'s (WCRP\'s) Coupled Model Intercomparison Project phase 3 (CMIP3) multi-model dataset': 'nca3-cmip3-r201205',
'World Climate Research Programme\'s (WCRP\'s) Coupled Model Intercomparison Project phase 3 (CMIP3) multi-model dataset': 'nca3-cmip3-r201205',
'World Climate Research Program\'s (WCRP\'s) Coupled Model Intercomparison Project phase 3 (CMIP3) multi-model dataset': 'nca3-cmip3-r201205',
'North American Regional Climate Change Assessment Program dataset': 'nca3-narccap-r201205',
'Gridded Population of the World Version 3 (GPWv3): Population Count Grid': 'nca3-gpwv3-r201211',
'ETCCDI Extremes Indices Archive': 'nca3-etccdi-r201305',
'Historical Climatology Network Monthly (USHCN) Version 2.5': 'nca3-ushcn',
'Annual Maximum Ice Coverage (AMIC)': 'nca3-amic-r201308',
'Global Historical Climatology Network-Daily (GHCN-D) Monthly Summaries: North American subset': 'nca3-ghcnd-monthly-summaries-r201401',
'Global Sea Level From TOPEX & Jason Altimetry': 'nca3-topex-jason-altimetry-r1',
'World Climate Research Program\'s (WCRP\'s) Coupled Model Intercomparison Project phase 5 (CMIP5) multi-model ensemble': 'nca3-cmip5-r1',
'Global CO2 Emissions from Fossil-Fuel Burning, Cement Manufacture, and Gas Flaring: 1751-2009': 'nca3-doe-co2-r201209',
'Proxy-based reconstructions of hemispheric and global surface temperature variations over the past two millennia': 'nca3-mann-recons-r200809',
'EPICA Dome C Ice Core 800KYr Carbon Dioxide Data': 'nca3-epica-ice-core-r20080515',
'Western U.S. Percent Area Moderately to Extremely Dry and Moderately to Extremely Wet': 'nca3-western-us-wet-dry-r2012',
'Total Wildland Fires and Acres (1960-2009)': 'nca3-wildland-fires-r1',
'HadCRUT4': 'nca3-hadcrut4-v4_1_1_0',
'GISS Surface Temperature Analysis (GISTEMP)': 'nca3-gistemp-r2010',
'Solar Constant': 'nca3-solar-constant-r20131003',
#Surely we can do better
'Proxy Data': 'nca3-proxy-data-r1',
'Tide Gauge Data': 'nca3-tide-gauge-data-r1',
'Projected Sea Level Rise': 'nca3-projected-sea-level-rise-r1',
}
#Private attributes for handling date parsing #Private attributes for handling date parsing
self._release_dt = None self._release_dt = None
...@@ -385,38 +343,10 @@ class Person(Gcisbase): ...@@ -385,38 +343,10 @@ class Person(Gcisbase):
class Organization(Gcisbase): class Organization(Gcisbase):
def __init__(self, data, trans=()): def __init__(self, data, trans=(), known_ids=None):
self.gcis_fields = ['organization_type_identifier', 'url', 'uri', 'href', 'country_code', 'identifier', 'name'] self.gcis_fields = ['organization_type_identifier', 'url', 'uri', 'href', 'country_code', 'identifier', 'name']
self._identifiers = { self._identifiers = known_ids
'NOAA NCDC/CICS-NC': 'cooperative-institute-climate-satellites-nc',
'NCDC/CICS-NC': 'cooperative-institute-climate-satellites-nc',
'NOAA NCDC/CICS NC': 'cooperative-institute-climate-satellites-nc',
'NESDIS/NCDC': 'national-climatic-data-center',
'NCDC': 'national-climatic-data-center',
'U.S. Forest Service': 'us-forest-service',
'NOAA Pacific Marine Environmental Laboratory': 'pacific-marine-environmental-laboratory',
'Jet Propulsion Laboratory': 'jet-propulsion-laboratory',
'HGS Consulting': 'hgs-consulting-llc',
'University of Virginia': 'university-virginia',
'Miami-Dade Dept. of Regulatory and Economic Resources': 'miami-dade-dept-regulatory-economic-resources',
'Nansen Environmental and Remote Sensing Center': 'nansen-environmental-and-remote-sensing-center',
'University of Illinois at Urbana-Champaign': 'university-illinois',
'USGCRP': 'us-global-change-research-program',
'National Park Service': 'national-park-service',
'Institute of the Environment': 'university-arizona',
'USGS': 'us-geological-survey',
'University of Puerto Rico': 'university-puerto-rico',
'University of Alaska': 'university-alaska',
'U.S. Department of Agriculture': 'us-department-agriculture',
'Kiksapa Consulting': 'kiksapa-consulting-llc',
'Centers for Disease Control and Prevention': 'centers-disease-control-and-prevention',
'Pacific Northwest Laboratories': 'pacific-northwest-national-laboratory',
'Susanne Moser Research & Consulting': 'susanne-moser-research-consulting',
'NEMAC': 'national-environmental-modeling-analysis-center',
'LBNL': 'lawrence-berkeley-national-laboratory',
'Texas Tech University': 'texas-tech-university'
}
super(Organization, self).__init__(data, fields=self.gcis_fields, trans=trans) super(Organization, self).__init__(data, fields=self.gcis_fields, trans=trans)
...@@ -431,45 +361,10 @@ class Organization(Gcisbase): ...@@ -431,45 +361,10 @@ class Organization(Gcisbase):
class Contributor(Gcisbase): class Contributor(Gcisbase):
def __init__(self, data): def __init__(self, data, hints=None):
self.gcis_fields = ['role_type_identifier', 'organization_uri', 'uri', 'href', 'person_uri', 'person_id', 'id'] self.gcis_fields = ['role_type_identifier', 'organization_uri', 'uri', 'href', 'person_uri', 'person_id', 'id']
#Hack self.people_role_map = hints
self.people_role_map = {
'Kenneth Kunkel': 'scientist',
'Xungang Yin': 'scientist',
'Nina Bednarsek': 'scientist',
'Henry Schwartz': 'scientist',
'Jessicca Griffin': 'graphic_artist',
'James Youtz': 'scientist',
'Chris Fenimore': 'scientist',
'Deb Misch': 'graphic_artist',
'James Galloway': 'scientist',
'Laura Stevens': 'scientist',
'Nichole Hefty': 'point_of_contact',
'Mike Squires': 'scientist',
'Peter Thorne': 'scientist',
'Donald Wuebbles': 'scientist',
'Felix Landerer': 'scientist',
'David Wuertz': 'scientist',
'Russell Vose': 'scientist',
'Gregg Garfin': 'scientist',
'Jeremy Littell': 'scientist',
'Emily Cloyd': 'contributing_author',
'F. Chapin': 'scientist',
' Chapin': 'scientist',
'Andrew Buddenberg': 'analyst',
'Jerry Hatfield': 'author',
'George Luber': 'lead_author',
'Kathy Hibbard': 'lead_author',
'Susanne Moser': 'convening_lead_author',
'Bull Bennett': 'convening_lead_author',
'Ernesto Weil': 'scientist',
'William Elder': 'scientist',
'Greg Dobson': 'analyst',
'Michael Wehner': 'scientist',
'Katharine Hayhoe': 'scientist'
}
self._role = None self._role = None
super(Contributor, self).__init__(data, fields=self.gcis_fields) super(Contributor, self).__init__(data, fields=self.gcis_fields)
...@@ -509,7 +404,7 @@ class Role(object): ...@@ -509,7 +404,7 @@ class Role(object):
class Parent(Gcisbase): class Parent(Gcisbase):
def __init__(self, data, trans=()): def __init__(self, data, trans=(), search_hints=None):
self.gcis_fields = ['relationship', 'url', 'publication_type_identifier', 'label', 'activity_uri', 'note'] self.gcis_fields = ['relationship', 'url', 'publication_type_identifier', 'label', 'activity_uri', 'note']
self.publication_type_map = { self.publication_type_map = {
...@@ -522,92 +417,7 @@ class Parent(Gcisbase): ...@@ -522,92 +417,7 @@ class Parent(Gcisbase):
'conference_proceedings': 'generic', 'conference_proceedings': 'generic',
} }
self.search_hints = { self.search_hints = search_hints
'report': {
'The State of the Climate 2009 Highlights': 'noaa-stateofclim-2009',
'Global Climate Change Impacts in the United States': 'nca2',
'Impacts of Climate Change and Variability on Transportation Systems and Infrastructure: Gulf Study, Phase I.': 'ccsp-sap-4_7-2008',
'Climate and Energy-Water-Land System Interactions': 'pnnl-21185',
'Freshwater Use by U.S. Power Plants Electricity\'s thirst for a Precious Resource': 'ucusa-freshwater-2011',
'New York City Panel on Climate Change Climate Risk Information 2013 Observations, Climate Change Projections and Maps': 'nycpanelonclimch-cri2013',
'Regional Climate Trends and Scenarios for the U.S. National Climate Assessment. Part 2. Climate of the Southeast U.S.': 'noaa-techreport-nesdis-142-2',
'Regional Climate Trends and Scenarios for the U.S. National Climate Assessment. Part 3. Climate of the Midwest U.S.': 'noaa-techreport-nesdis-142-3',
'Reefs at Risk Revisited': ('book', '3788c071-e06a-42c3-b0b9-0396fd494aa3'),
'Climate Change and Pacific Islands: Indicators and Impacts Report for the 2012 Pacific Islands Regional Climate Assessment': 'pirca-climate-change-and-pacific-islands',
'Climate adaptation: Risk, uncertainty and decision-making': 'ukcip-climate-adaptation-risk-uncertainty-and-decision-making',
'Adapting to Impacts of Climate Change. America\'s Climate Choices: Report of the Panel on 43 Adapting to the Impacts of Climate C': ('book', '1e88532d-c40d-47d2-a872-77b2627fbe89'),
'Climate Change 2007: The Physical Science Basis. Contribution of Working Group I to the Fourth Assessment Report of the IPCC': ('book', '92debecd-ca55-46f1-a0c1-734e6b0dc6b1'),
'Snow, Water, Ice and Permafrost in the Arctic (SWIPA): Climate Change and the Cryosphere': ('book', 'e7c9614c-8db8-410f-9fec-0957292554bf'),
'Climate Change 2013: The Physical Science Basis. Contribution of Working Group I to the Fifth Assessment Report of the IPCC': 'ipcc-wg1-ar5-physical-science-basis',
'Regional Climate Trends and Scenarios for the U.S. National Climate Assessment. Part 9. Climate of the Contiguous United States': 'noaa-techreport-nesdis-142-9',
'How to Avoid Dangerous Climate Change. A Target for U.S. Emissions Reductions': 'ucusa-howtoavoid-2007',
'Summary for Decision Makers. Assessment of Climate Change in the Southwest United States': 'swccar-assessment-climate-change-in-southwest-us',
'Climate Variability and Change in Mobile, Alabama: Task 2 Final Report. Impacts of Climate 25 Change and Variability on Transpo': 'fhwa-hep-12-053',
'Effects of Climatic Variability and Change on Forest Ecosystems: A Comprehensive Science Synthesis for the U.S. Forest Sector': 'usfs-pnw-gtr-870',
'Future of America\'s Forests and Rangelands Forest Service. 2010 Resources Planning Act Assessment': 'usfs-gtr-wo-87',
'Regional Climate Trends and Scenarios for the U.S. National Climate Assessment. Part 5. Climate of the Southwest U.S.': 'noaa-techreport-nesdis-142-5',
'Regional Climate Trends and Scenarios for the U.S. National Climate Assessment. Part 7. Climate of Alaska': 'noaa-techreport-nesdis-142-7',
'Reclamation, SECURE Water Act Section 9503(c) - Reclamation Climate Change and Water, Report to Congress': 'usbr-secure-2011',
'The Physical Science Basis. Contribution of Working Group I to the Fourth AR4 of IPCC': 'ipcc-wg1-ar5-physical-science-basis',
'2005 Louisiana Hurricane Impact Atlas': 'lgic-lahurricane-2006',
'2009 State of the Climate Highlights': 'noaa-stateofclim-2009',
'Climate of the Southeast United States: Variability, change, impacts and vulnerability.': ('book', '7951fbd8-5877-41aa-ae62-9da3eb56b5c5'),
'A Reef Manager\'s Guide to Coral Bleaching': ('book', 'd6f69088-1025-4ce7-b0e1-54ab6403a951'),
'Climate Stabilization Targets: Emissions, Concentrations, and Impacts over Decades to Millennia': ('book', 'f5b281a2-38d2-4633-84db-fd37fa0fb3e6')
},
'webpage': {
'Toxic Algae Bloom in Lake Erie. October 14, 2011': 'afe12af6-a7d3-4b70-99e5-0f80b67b7047',
'Tribal Energy Program Projects on Tribal Lands': 'abde0ebc-342b-4bb7-b206-016cd3c829c4',
'Atlas of Rural and Small-Town America. Category: County Classifications. Current Map: Rural-urban Continuum Code, 2013': '2cb79b4a-31cf-43ec-a70a-0371626f1407',
'Atlas of Rural and Small-Town America. Category: County Classifications. Current Map: Economic Dependence, 1998-2000': '2cb79b4a-31cf-43ec-a70a-0371626f1407',
'Atlas of Rural and Small-Town America. Category: People.': '2cb79b4a-31cf-43ec-a70a-0371626f1407',
'St. Petersburg Coastal and Marine Science Center': '2f586ef7-91bb-45e5-b463-ee3e358185ba',
'NASA Earth Observatory Natural Hazards': 'c57946b1-f413-491f-b75c-1c08f7594f84',
'Plants of Hawaii': 'a8159919-b01c-442b-afb8-c2e272f81f48',
'Public Roads': '5f3538ab-eb81-4858-b44e-1304b949b288',
'Freight Analysis Framework Data Tabulation Tool': '5fe65558-d010-445b-b4f1-9079224dca6b',
'Ecosystem Services Analysis of Climate Change and Urban Growth in the Upper Santa Cruz Watershed: SCWEPM': 'd4622f7e-aca7-42e6-95da-90579a187c30',
'State and Local Climate Adaptation': '7de6bfc9-55fa-4d12-ae80-486561b3802c',
'Climate Change Response Framework - Northwoods': '267378f7-278b-4201-8ffa-a820f5a694b8',
'NWHI Maps and Publications': 'e6438f11-85f4-4c29-abb5-b09efa3279b2',
'The Cryosphere Today Compare Daily Sea Ice': 'e4a9eb6a-9421-42c3-94b1-47caf588d41d',
'NASA Earth Observatory Visualizing the Sea Ice Minimum': '71b4c19e-42da-4f15-99d2-7c7746d8eaf2',
'2007 Census Ag Atlas Maps: Crops and Plants': 'f39c0146-137f-4668-b401-5972fe40208d',
'NRCS Photo Gallery': '13da595f-e0f0-4ad0-b87b-44ce3897cd30',
'Billion-Dollar Weather/Climate Disasters: Mapping': 'd70d7a59-45d7-4b38-baf2-86a7fcf12da3',
'Before and After: 50 Years of Rising Tides and Sinking Marshes': '6778161f-897b-4f89-942f-8ad2f01f11a0',
'Influence of El Nino and La Nina on Southwest Rainfall': '6d0a1cba-70fe-4fa3-a630-c45409115ab8',
'Map of Sea Level Trends': '2ab182cc-171d-4edd-9f9f-51e8b4cc2584',
'Climate changing our nation\'s landscapes: NOAA, American Public Gardens Association unveil partnership to enhance awareness': 'e4160240-e5ad-41ee-ad56-9cbdaf162369'
},
'article': {
'North American carbon dioxide sources and sinks: magnitude, attribution, and uncertainty': '10.1890/120066',
'Air Quality and Exercise-Related Health Benefits from Reduced Car Travel in the Midwestern United States': '10.1289/ehp.1103440',
'A Shift in Western Tropical Pacific Sea Level Trends during the 1990s': '10.1175/2011JCLI3932.1',
'An update on Earth\'s energy balance in light of the latest global observations': '10.1038/ngeo1580',
'About the Lack of Warming...': ('web_page', 'e2ec2d0f-430c-4032-a309-2514ca1f6572'),
'The Myth of the 1970s Global Cooling Scientific Consensus': '10.1175/2008BAMS2370.1',
'Hurricane Sandy devestates NY/NJ-area passenger rai systems': ('web_page', '135ae7d9-56e3-4dcb-a81c-42a6f1e9b332'),
'Climate change impacts of US reactive nitrogen': '10.1073/pnas.1114243109',
'Range-wide patterns of greater sage-grouse persistence': '10.1111/j.1472-4642.2008.00502.x',
'Monitoring and understanding changes in heat waves, cold waves, floods and droughts in the United States: State of Knowledge': '10.1175/BAMS-D-12-00066.1',
'How do we know the world has warmed?': '10.1175/BAMS-91-7-StateoftheClimate',
'Attribution of observed historical near-surface temperature variations to anthropogenic and natural causes usingCMIP5simulations': '10.1002/jgrd.50239'
},
'book': {
'Climate Change and Pacific Islands: Indicators and Impacts. Report for the 2012 Pacific Islands Regional Climate Assessment': ('report', 'pirca-climate-change-and-pacific-islands'),
'A focus on climate during the past 100 years in "Climate Variability and Extremes during the Past 100 Years"': '998aa4c2-9f0d-478c-b7bb-19e383c628a9'
},
'generic': {
'Verrazano Narrows Storm Surge Barrier: Against the Deluge: Storm Barriers to Protect New York City, March 31st 2009': '01d188d1-636b-49e6-af43-c1544cee9319',
'National Association of Recreation Resource Planners Annual Conference': 'national-association-of-recreation-resource-planners-annual-conference-2005'
}
}
self._publication_type_identifier = None self._publication_type_identifier = None
super(Parent, self).__init__(data, fields=self.gcis_fields, trans=trans) super(Parent, self).__init__(data, fields=self.gcis_fields, trans=trans)
......
...@@ -31,9 +31,9 @@ def parse_creators(field): ...@@ -31,9 +31,9 @@ def parse_creators(field):
first_name, last_name = name_split[0], name_split[-1] first_name, last_name = name_split[0], name_split[-1]
org_name = rest[0] if len(rest) > 0 else None org_name = rest[0] if len(rest) > 0 else None
contributor = Contributor({}) contributor = Contributor({}, hints=trans.CONTRIB_ROLES)
contributor.person = Person({'first_name': first_name, 'last_name': last_name}) contributor.person = Person({'first_name': first_name, 'last_name': last_name})
contributor.organization = Organization({'name': org_name}) contributor.organization = Organization({'name': org_name}, known_ids=trans.ORG_IDS)
return contributor return contributor
...@@ -93,7 +93,7 @@ class WebformClient: ...@@ -93,7 +93,7 @@ class WebformClient:
#Add provenance information (wasDerivedFrom parent) #Add provenance information (wasDerivedFrom parent)
if 'what_type_of_source_provided_this_figure' in figure_json and figure_json[ if 'what_type_of_source_provided_this_figure' in figure_json and figure_json[
'what_type_of_source_provided_this_figure'] == 'published_source': 'what_type_of_source_provided_this_figure'] == 'published_source':
f.add_parent(Parent(deepcopy(f.original), trans=trans.PARENT_TRANSLATIONS)) f.add_parent(Parent(deepcopy(f.original), trans=trans.PARENT_TRANSLATIONS, search_hints=trans.PARENT_SEARCH_HINTS))
if 'images' in webform_json[webform_nid]: if 'images' in webform_json[webform_nid]:
for img_idx, image in enumerate(webform_json[webform_nid]['images']): for img_idx, image in enumerate(webform_json[webform_nid]['images']):
...@@ -107,7 +107,7 @@ class WebformClient: ...@@ -107,7 +107,7 @@ class WebformClient:
#TODO: this just keeps getting worse #TODO: this just keeps getting worse
if 'datasources' in webform_json[webform_nid]['images'][img_idx]: if 'datasources' in webform_json[webform_nid]['images'][img_idx]:
for dataset_json in webform_json[webform_nid]['images'][img_idx]['datasources']: for dataset_json in webform_json[webform_nid]['images'][img_idx]['datasources']:
dataset = Dataset(dataset_json, trans=trans.DATASET_TRANSLATIONS) dataset = Dataset(dataset_json, trans=trans.DATASET_TRANSLATIONS, known_ids=trans.DATASET_IDS)
#Commence the hacks #Commence the hacks
try: try:
......
...@@ -37,6 +37,50 @@ DATASET_TRANSLATIONS = { ...@@ -37,6 +37,50 @@ DATASET_TRANSLATIONS = {
'data_set_variables': 'attributes' 'data_set_variables': 'attributes'
} }
DATASET_IDS = {
'Global Historical Climatology Network - Daily': 'nca3-ghcn-daily-r201305',
'Global Historical Climatology Network - Monthly': 'nca3-ghcn-monthly-r201305',
'NCDC Merged Land and Ocean Surface Temperature': 'nca3-mlost',
'NOAA Merged Land-Ocean Surface Temperature Analysis (MLOST)': 'nca3-mlost',
'U.S. Climate Divisional Dataset Version 2': 'nca3-cddv2-r1',
'Climate Division Database Version 2': 'nca3-cddv2-r1',
'Eighth degree-CONUS Daily Downscaled Climate Projections by Katharine Hayhoe': 'nca3-cmip3-downscaled-r201304',
'Eighth degree-CONUS Daily Downscaled Climate Projections': 'nca3-cmip3-downscaled-r201304',
'Earth Policy Institute Atmospheric Carbon Dioxide Concentration, 1000-2012': 'nca3-epi-co2-r201307',
'Daily 1/8-degree gridded meteorological data [1 Jan 1949 - 31 Dec 2010]': 'nca3-maurer-r201304',
'NCEP/NCAR Reanalysis': 'nca3-ncep-ncar-r1',
'NCDC Global Surface Temperature Anomalies': 'nca3-ncdc-gst-anomalies-r201307',
'GRACE Static Field Geopotential Coefficients JPL Release 5.0 GSM': 'nca3-grace-r201307',
'UW/NCDC Satellite Derived Hurricane Intensity Dataset': 'nca3-hursat-r1',
'Bias-Corrected and Spatially Downscaled Surface Water Projections Hydrologic Data': 'nca3-water-projections-r201208',
'International Best Track Archive for Climate Stewardship (IBTrACS)': 'nca3-ibtracs-r201311',
'the World Climate Research Programme\'s (WCRP\'s) Coupled Model Intercomparison Project phase 3 (CMIP3) multi-model dataset': 'nca3-cmip3-r201205',
'World Climate Research Programme\'s (WCRP\'s) Coupled Model Intercomparison Project phase 3 (CMIP3) multi-model dataset': 'nca3-cmip3-r201205',
'World Climate Research Program\'s (WCRP\'s) Coupled Model Intercomparison Project phase 3 (CMIP3) multi-model dataset': 'nca3-cmip3-r201205',
'North American Regional Climate Change Assessment Program dataset': 'nca3-narccap-r201205',
'Gridded Population of the World Version 3 (GPWv3): Population Count Grid': 'nca3-gpwv3-r201211',
'ETCCDI Extremes Indices Archive': 'nca3-etccdi-r201305',
'Historical Climatology Network Monthly (USHCN) Version 2.5': 'nca3-ushcn',
'Annual Maximum Ice Coverage (AMIC)': 'nca3-amic-r201308',
'Global Historical Climatology Network-Daily (GHCN-D) Monthly Summaries: North American subset': 'nca3-ghcnd-monthly-summaries-r201401',
'Global Sea Level From TOPEX & Jason Altimetry': 'nca3-topex-jason-altimetry-r1',
'World Climate Research Program\'s (WCRP\'s) Coupled Model Intercomparison Project phase 5 (CMIP5) multi-model ensemble': 'nca3-cmip5-r1',
'Global CO2 Emissions from Fossil-Fuel Burning, Cement Manufacture, and Gas Flaring: 1751-2009': 'nca3-doe-co2-r201209',
'Proxy-based reconstructions of hemispheric and global surface temperature variations over the past two millennia': 'nca3-mann-recons-r200809',
'EPICA Dome C Ice Core 800KYr Carbon Dioxide Data': 'nca3-epica-ice-core-r20080515',
'Western U.S. Percent Area Moderately to Extremely Dry and Moderately to Extremely Wet': 'nca3-western-us-wet-dry-r2012',
'Total Wildland Fires and Acres (1960-2009)': 'nca3-wildland-fires-r1',
'HadCRUT4': 'nca3-hadcrut4-v4_1_1_0',
'GISS Surface Temperature Analysis (GISTEMP)': 'nca3-gistemp-r2010',
'Solar Constant': 'nca3-solar-constant-r20131003',
#Surely we can do better
'Proxy Data': 'nca3-proxy-data-r1',
'Tide Gauge Data': 'nca3-tide-gauge-data-r1',
'Projected Sea Level Rise': 'nca3-projected-sea-level-rise-r1',
}
ACT_TRANSLATIONS = { ACT_TRANSLATIONS = {
'how_much_time_was_invested_in_creating_the_image': 'duration', 'how_much_time_was_invested_in_creating_the_image': 'duration',
'35_what_are_all_of_the_files_names_and_extensions_associated_with_this_image': 'output_artifacts', '35_what_are_all_of_the_files_names_and_extensions_associated_with_this_image': 'output_artifacts',
...@@ -49,6 +93,72 @@ ACT_TRANSLATIONS = { ...@@ -49,6 +93,72 @@ ACT_TRANSLATIONS = {
} }
ORG_IDS = {
'NOAA NCDC/CICS-NC': 'cooperative-institute-climate-satellites-nc',
'NCDC/CICS-NC': 'cooperative-institute-climate-satellites-nc',
'NOAA NCDC/CICS NC': 'cooperative-institute-climate-satellites-nc',
'NESDIS/NCDC': 'national-climatic-data-center',
'NCDC': 'national-climatic-data-center',
'U.S. Forest Service': 'us-forest-service',
'NOAA Pacific Marine Environmental Laboratory': 'pacific-marine-environmental-laboratory',
'Jet Propulsion Laboratory': 'jet-propulsion-laboratory',
'HGS Consulting': 'hgs-consulting-llc',
'University of Virginia': 'university-virginia',
'Miami-Dade Dept. of Regulatory and Economic Resources': 'miami-dade-dept-regulatory-economic-resources',
'Nansen Environmental and Remote Sensing Center': 'nansen-environmental-and-remote-sensing-center',
'University of Illinois at Urbana-Champaign': 'university-illinois',
'USGCRP': 'us-global-change-research-program',
'National Park Service': 'national-park-service',
'Institute of the Environment': 'university-arizona',
'USGS': 'us-geological-survey',
'University of Puerto Rico': 'university-puerto-rico',
'University of Alaska': 'university-alaska',
'U.S. Department of Agriculture': 'us-department-agriculture',
'Kiksapa Consulting': 'kiksapa-consulting-llc',
'Centers for Disease Control and Prevention': 'centers-disease-control-and-prevention',
'Pacific Northwest Laboratories': 'pacific-northwest-national-laboratory',
'Susanne Moser Research & Consulting': 'susanne-moser-research-consulting',
'NEMAC': 'national-environmental-modeling-analysis-center',
'LBNL': 'lawrence-berkeley-national-laboratory',
'Texas Tech University': 'texas-tech-university'
}
CONTRIB_ROLES = {
'Kenneth Kunkel': 'scientist',
'Xungang Yin': 'scientist',
'Nina Bednarsek': 'scientist',
'Henry Schwartz': 'scientist',
'Jessicca Griffin': 'graphic_artist',
'James Youtz': 'scientist',
'Chris Fenimore': 'scientist',
'Deb Misch': 'graphic_artist',
'James Galloway': 'scientist',
'Laura Stevens': 'scientist',
'Nichole Hefty': 'point_of_contact',
'Mike Squires': 'scientist',
'Peter Thorne': 'scientist',
'Donald Wuebbles': 'scientist',
'Felix Landerer': 'scientist',
'David Wuertz': 'scientist',
'Russell Vose': 'scientist',
'Gregg Garfin': 'scientist',
'Jeremy Littell': 'scientist',
'Emily Cloyd': 'contributing_author',
'F. Chapin': 'scientist',
' Chapin': 'scientist',
'Andrew Buddenberg': 'analyst',
'Jerry Hatfield': 'author',
'George Luber': 'lead_author',
'Kathy Hibbard': 'lead_author',
'Susanne Moser': 'convening_lead_author',
'Bull Bennett': 'convening_lead_author',
'Ernesto Weil': 'scientist',
'William Elder': 'scientist',
'Greg Dobson': 'analyst',
'Michael Wehner': 'scientist',
'Katharine Hayhoe': 'scientist'
}
PARENT_TRANSLATIONS = { PARENT_TRANSLATIONS = {
'what_type_of_publication_was_the_figure_published_in': 'publication_type_identifier', 'what_type_of_publication_was_the_figure_published_in': 'publication_type_identifier',
'name_title': 'label', 'name_title': 'label',
...@@ -57,4 +167,90 @@ PARENT_TRANSLATIONS = { ...@@ -57,4 +167,90 @@ PARENT_TRANSLATIONS = {
'web_page_title': 'label', 'web_page_title': 'label',
'conference_title': 'label', 'conference_title': 'label',
'title': 'label', 'title': 'label',
} }
\ No newline at end of file
PARENT_SEARCH_HINTS = {
'report': {
'The State of the Climate 2009 Highlights': 'noaa-stateofclim-2009',
'Global Climate Change Impacts in the United States': 'nca2',
'Impacts of Climate Change and Variability on Transportation Systems and Infrastructure: Gulf Study, Phase I.': 'ccsp-sap-4_7-2008',
'Climate and Energy-Water-Land System Interactions': 'pnnl-21185',
'Freshwater Use by U.S. Power Plants Electricity\'s thirst for a Precious Resource': 'ucusa-freshwater-2011',
'New York City Panel on Climate Change Climate Risk Information 2013 Observations, Climate Change Projections and Maps': 'nycpanelonclimch-cri2013',
'Regional Climate Trends and Scenarios for the U.S. National Climate Assessment. Part 2. Climate of the Southeast U.S.': 'noaa-techreport-nesdis-142-2',
'Regional Climate Trends and Scenarios for the U.S. National Climate Assessment. Part 3. Climate of the Midwest U.S.': 'noaa-techreport-nesdis-142-3',
'Reefs at Risk Revisited': ('book', '3788c071-e06a-42c3-b0b9-0396fd494aa3'),
'Climate Change and Pacific Islands: Indicators and Impacts Report for the 2012 Pacific Islands Regional Climate Assessment': 'pirca-climate-change-and-pacific-islands',
'Climate adaptation: Risk, uncertainty and decision-making': 'ukcip-climate-adaptation-risk-uncertainty-and-decision-making',
'Adapting to Impacts of Climate Change. America\'s Climate Choices: Report of the Panel on 43 Adapting to the Impacts of Climate C': ('book', '1e88532d-c40d-47d2-a872-77b2627fbe89'),
'Climate Change 2007: The Physical Science Basis. Contribution of Working Group I to the Fourth Assessment Report of the IPCC': ('book', '92debecd-ca55-46f1-a0c1-734e6b0dc6b1'),
'Snow, Water, Ice and Permafrost in the Arctic (SWIPA): Climate Change and the Cryosphere': ('book', 'e7c9614c-8db8-410f-9fec-0957292554bf'),
'Climate Change 2013: The Physical Science Basis. Contribution of Working Group I to the Fifth Assessment Report of the IPCC': 'ipcc-wg1-ar5-physical-science-basis',
'Regional Climate Trends and Scenarios for the U.S. National Climate Assessment. Part 9. Climate of the Contiguous United States': 'noaa-techreport-nesdis-142-9',
'How to Avoid Dangerous Climate Change. A Target for U.S. Emissions Reductions': 'ucusa-howtoavoid-2007',
'Summary for Decision Makers. Assessment of Climate Change in the Southwest United States': 'swccar-assessment-climate-change-in-southwest-us',
'Climate Variability and Change in Mobile, Alabama: Task 2 Final Report. Impacts of Climate 25 Change and Variability on Transpo': 'fhwa-hep-12-053',
'Effects of Climatic Variability and Change on Forest Ecosystems: A Comprehensive Science Synthesis for the U.S. Forest Sector': 'usfs-pnw-gtr-870',
'Future of America\'s Forests and Rangelands Forest Service. 2010 Resources Planning Act Assessment': 'usfs-gtr-wo-87',
'Regional Climate Trends and Scenarios for the U.S. National Climate Assessment. Part 5. Climate of the Southwest U.S.': 'noaa-techreport-nesdis-142-5',
'Regional Climate Trends and Scenarios for the U.S. National Climate Assessment. Part 7. Climate of Alaska': 'noaa-techreport-nesdis-142-7',
'Reclamation, SECURE Water Act Section 9503(c) - Reclamation Climate Change and Water, Report to Congress': 'usbr-secure-2011',
'The Physical Science Basis. Contribution of Working Group I to the Fourth AR4 of IPCC': 'ipcc-wg1-ar5-physical-science-basis',
'2005 Louisiana Hurricane Impact Atlas': 'lgic-lahurricane-2006',
'2009 State of the Climate Highlights': 'noaa-stateofclim-2009',
'Climate of the Southeast United States: Variability, change, impacts and vulnerability.': ('book', '7951fbd8-5877-41aa-ae62-9da3eb56b5c5'),
'A Reef Manager\'s Guide to Coral Bleaching': ('book', 'd6f69088-1025-4ce7-b0e1-54ab6403a951'),
'Climate Stabilization Targets: Emissions, Concentrations, and Impacts over Decades to Millennia': ('book', 'f5b281a2-38d2-4633-84db-fd37fa0fb3e6')
},
'webpage': {
'Toxic Algae Bloom in Lake Erie. October 14, 2011': 'afe12af6-a7d3-4b70-99e5-0f80b67b7047',
'Tribal Energy Program Projects on Tribal Lands': 'abde0ebc-342b-4bb7-b206-016cd3c829c4',
'Atlas of Rural and Small-Town America. Category: County Classifications. Current Map: Rural-urban Continuum Code, 2013': '2cb79b4a-31cf-43ec-a70a-0371626f1407',
'Atlas of Rural and Small-Town America. Category: County Classifications. Current Map: Economic Dependence, 1998-2000': '2cb79b4a-31cf-43ec-a70a-0371626f1407',
'Atlas of Rural and Small-Town America. Category: People.': '2cb79b4a-31cf-43ec-a70a-0371626f1407',
'St. Petersburg Coastal and Marine Science Center': '2f586ef7-91bb-45e5-b463-ee3e358185ba',
'NASA Earth Observatory Natural Hazards': 'c57946b1-f413-491f-b75c-1c08f7594f84',
'Plants of Hawaii': 'a8159919-b01c-442b-afb8-c2e272f81f48',
'Public Roads': '5f3538ab-eb81-4858-b44e-1304b949b288',
'Freight Analysis Framework Data Tabulation Tool': '5fe65558-d010-445b-b4f1-9079224dca6b',
'Ecosystem Services Analysis of Climate Change and Urban Growth in the Upper Santa Cruz Watershed: SCWEPM': 'd4622f7e-aca7-42e6-95da-90579a187c30',
'State and Local Climate Adaptation': '7de6bfc9-55fa-4d12-ae80-486561b3802c',
'Climate Change Response Framework - Northwoods': '267378f7-278b-4201-8ffa-a820f5a694b8',
'NWHI Maps and Publications': 'e6438f11-85f4-4c29-abb5-b09efa3279b2',
'The Cryosphere Today Compare Daily Sea Ice': 'e4a9eb6a-9421-42c3-94b1-47caf588d41d',
'NASA Earth Observatory Visualizing the Sea Ice Minimum': '71b4c19e-42da-4f15-99d2-7c7746d8eaf2',
'2007 Census Ag Atlas Maps: Crops and Plants': 'f39c0146-137f-4668-b401-5972fe40208d',
'NRCS Photo Gallery': '13da595f-e0f0-4ad0-b87b-44ce3897cd30',
'Billion-Dollar Weather/Climate Disasters: Mapping': 'd70d7a59-45d7-4b38-baf2-86a7fcf12da3',
'Before and After: 50 Years of Rising Tides and Sinking Marshes': '6778161f-897b-4f89-942f-8ad2f01f11a0',
'Influence of El Nino and La Nina on Southwest Rainfall': '6d0a1cba-70fe-4fa3-a630-c45409115ab8',
'Map of Sea Level Trends': '2ab182cc-171d-4edd-9f9f-51e8b4cc2584',
'Climate changing our nation\'s landscapes: NOAA, American Public Gardens Association unveil partnership to enhance awareness': 'e4160240-e5ad-41ee-ad56-9cbdaf162369'
},
'article': {
'North American carbon dioxide sources and sinks: magnitude, attribution, and uncertainty': '10.1890/120066',
'Air Quality and Exercise-Related Health Benefits from Reduced Car Travel in the Midwestern United States': '10.1289/ehp.1103440',
'A Shift in Western Tropical Pacific Sea Level Trends during the 1990s': '10.1175/2011JCLI3932.1',
'An update on Earth\'s energy balance in light of the latest global observations': '10.1038/ngeo1580',
'About the Lack of Warming...': ('web_page', 'e2ec2d0f-430c-4032-a309-2514ca1f6572'),
'The Myth of the 1970s Global Cooling Scientific Consensus': '10.1175/2008BAMS2370.1',
'Hurricane Sandy devestates NY/NJ-area passenger rai systems': ('web_page', '135ae7d9-56e3-4dcb-a81c-42a6f1e9b332'),
'Climate change impacts of US reactive nitrogen': '10.1073/pnas.1114243109',
'Range-wide patterns of greater sage-grouse persistence': '10.1111/j.1472-4642.2008.00502.x',
'Monitoring and understanding changes in heat waves, cold waves, floods and droughts in the United States: State of Knowledge': '10.1175/BAMS-D-12-00066.1',
'How do we know the world has warmed?': '10.1175/BAMS-91-7-StateoftheClimate',
'Attribution of observed historical near-surface temperature variations to anthropogenic and natural causes usingCMIP5simulations': '10.1002/jgrd.50239'
},
'book': {
'Climate Change and Pacific Islands: Indicators and Impacts. Report for the 2012 Pacific Islands Regional Climate Assessment': ('report', 'pirca-climate-change-and-pacific-islands'),
'A focus on climate during the past 100 years in "Climate Variability and Extremes during the Past 100 Years"': '998aa4c2-9f0d-478c-b7bb-19e383c628a9'
},
'generic': {
'Verrazano Narrows Storm Surge Barrier: Against the Deluge: Storm Barriers to Protect New York City, March 31st 2009': '01d188d1-636b-49e6-af43-c1544cee9319',
'National Association of Recreation Resource Planners Annual Conference': 'national-association-of-recreation-resource-planners-annual-conference-2005'
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment