Commit b90d72bf authored by abuddenberg's avatar abuddenberg
Browse files

Improve support for temporal extents. Pull identifier field up into GcisBase...

Improve support for temporal extents. Pull identifier field up into GcisBase class to facilitate realization. Add support for Dataset endpoint to survey_client
parent 5ff0a5da
......@@ -13,6 +13,7 @@ class Gcisbase(object):
#Setup class variables
self.gcis_fields = fields
self.translations = trans
self.identifier = None
#Save off a copy of the original JSON for debugging
self.original = deepcopy(data)
......@@ -246,6 +247,7 @@ class Dataset(GcisObject):
self._release_dt = None
self._access_dt = None
self._publication_year = None
self._temporal_extent = None
super(Dataset, self).__init__(data, fields=self.gcis_fields, trans=trans)
......@@ -306,7 +308,20 @@ class Dataset(GcisObject):
self._publication_year = match.group()
else:
self._publication_year = None
@property
def temporal_extent(self):
return self._temporal_extent
#Can't use property.setter due to multiple args
def set_temporal_extent(self, start_dt, end_dt):
try:
self._temporal_extent = '{0} {1}'.format(parse(start_dt).isoformat(), parse(end_dt).isoformat()) if start_dt and end_dt else None
except TypeError:
self._temporal_extent = None
except ValueError:
self._temporal_extent = None
class Activity(GcisObject):
def __init__(self, data, trans=()):
......
......@@ -297,3 +297,10 @@ class SurveyClient:
else:
raise Exception(resp.status_code)
def get_dataset(self, dataset_name):
url = '{b}/get-dataset'.format(b=self.base_url)
resp = requests.get(url, params={'uuid': dataset_name})
return resp
......@@ -2,6 +2,19 @@ __author__ = 'abuddenberg'
from gcis_clients.domain import Person
DATASET_TRANSLATIONS = {
'dataset_name': 'name',
'dataset_id': 'native_id',
'dataset_citation': 'cite_metadata',
'dataset_description': 'description',
'dataset_year_published': 'publication_year',
# 'dataset_period_record': 'temporal_extent',
'dataset_version': 'version',
'dataset_access_date': 'access_dt',
'dataset_url': 'url',
'dataset_release_date': 'release_dt'
}
DATASET_IDS = {
'U.S. Climate Divisional Dataset Version 2': 'nca3-cddv2-r1',
'World Climate Research Program\'s (WCRP\'s) Coupled Model Intercomparison Project phase 5 (CMIP5) multi-model ensemble': 'nca3-cmip5-r1',
......@@ -11,7 +24,10 @@ DATASET_IDS = {
'Billion-Dollar Weather and Climate Disasters': 'noaa-ncdc-billion-dollar-weather-climate-disasters',
'ESRI USA10 dataset (ArcGIS version 10.0)': 'esri-arcgis-v10-0',
'nClimDiv': 'noaa-ncdc-cag-us-temperature-nclimdiv',
'Global Historical Climatology Network (GHCN) Daily': 'noaa-ncdc-ghcn-daily'
'Global Historical Climatology Network (GHCN) Daily': 'noaa-ncdc-ghcn-daily',
'Continential United States Hurricane Impacts/ Landfalls 1851-2015': 'noaa-aoml-hurdat'
# 'Time Bias Corrected Divisional Temperature Precipitation Drought Index': 'noaa-ncei-time-bias-corrected-divisional-temperature-precipitation-drought-index',
# 'North American Drought Atlas': 'noaa-ncei-north-american-drought-atlas'
}
COPYRIGHT_TRANSLATIONS = {
......@@ -51,7 +67,8 @@ PARENT_SEARCH_HINTS = {
'Third National Climate Assessment': 'nca3',
'A conceptual framework for action on the social determinants of health': 'conceptual-framework-for-action-on-the-social-determinants-of-health',
'Regional Surface Climate Conditions in CMIP3 and CMIP5 for the United States: Differences, Similarities, and Implications for the U.S. National Climate Assessment.': 'noaa-techreport-nesdis-144',
'2012 Census of Agriculture': 'census-agriculture-2012'
'2012 Census of Agriculture': 'census-agriculture-2012',
'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'
},
'dataset': {
'Global Historical Climatology Network - Daily': 'noaa-ncdc-ghcn-daily'
......
......@@ -3,6 +3,8 @@ __author__ = 'abuddenberg'
from os.path import exists
import sys
from domain import GcisObject
def warning(*objs):
print("WARNING: ", *objs, file=sys.stderr)
......@@ -66,7 +68,12 @@ def realize_parents(gcis_client, parents):
parent_matches = gcis_client.lookup_publication(parent.publication_type_identifier, parent.label)
if len(parent_matches) == 1:
parent.url = '/{type}/{id}'.format(type=parent.publication_type_identifier, id=parent_matches[0][0])
matched_id, matched_name = parent_matches[0]
parent.url = '/{type}/{id}'.format(type=parent.publication_type_identifier, id=matched_id)
# Need the ability to dynamically identify and retrieve an instance of the parent publication.
# Here's a generic, for the time being.
parent.publication = GcisObject({'identifier': matched_id})
elif len(parent_matches) == 0:
warning(' '.join(('No ID found for', parent.publication_type_identifier, parent.label)))
else:
......
......@@ -3,547 +3,547 @@ from collections import OrderedDict
sync_metadata_tree = {
'noaa-led-state-summaries-2017': OrderedDict([
('alabama', [
('/metadata/figures/3819', 'al_observed-and-projected-temperature-change', '1'),
('/metadata/figures/3817', 'al_observed-number-of-very-hot-days', '2a'),
('/metadata/figures/3818', 'al_observed-number-of-very-warm-nights', '2b'),
('/metadata/figures/3815', 'al_observed-annual-precipitation', '2c'),
('/metadata/figures/4036', 'al_total-hurricane-events-in-alabama-1900-2013', '2d'),
('/metadata/figures/3816', 'al_observed-number-of-extreme-precipitation-events', '3'),
('/metadata/figures/3820', 'al_projected-change-in-spring-precipitation', '4'),
('/metadata/figures/3821', 'al_past-and-projected-changes-in-global-sea-level', '5')
('/metadata/figures/3819', 'al-observed-and-projected-temperature-change', '1'),
('/metadata/figures/3817', 'al-observed-number-of-very-hot-days', '2a'),
('/metadata/figures/3818', 'al-observed-number-of-very-warm-nights', '2b'),
('/metadata/figures/3815', 'al-observed-annual-precipitation', '2c'),
('/metadata/figures/4036', 'al-total-hurricane-events-in-alabama-1900-2013', '2d'),
('/metadata/figures/3816', 'al-observed-number-of-extreme-precipitation-events', '3'),
('/metadata/figures/3820', 'al-projected-change-in-spring-precipitation', '4'),
('/metadata/figures/3821', 'al-past-and-projected-changes-in-global-sea-level', '5')
]),
('alaska', []),
('arizona', [
('/metadata/figures/3676', 'az_observed-and-projected-temperature-change', '1'),
('/metadata/figures/3672', 'az_observed-number-of-extremely-hot-days', '2a'),
('/metadata/figures/3670', 'az_observed-maximum-summer-temperature', '2b'),
('/metadata/figures/4083', 'az_observed-minimum-summer-temperature', '2b'),
('/metadata/figures/3668', 'az_observed-annual-precipitation', '2c'),
('/metadata/figures/3673', 'az_observed-number-of-extreme-precipitation-events', '2d'),
('/metadata/figures/3674', 'az_observed-number-of-extremely-warm-nights', '3'),
('/metadata/figures/3675', 'az_observed-number-of-very-cold-nights', '4'),
('/metadata/figures/3671', 'az_observed-monsoon-season-precipitation', '5'),
('/metadata/figures/3676', 'az-observed-and-projected-temperature-change', '1'),
('/metadata/figures/3672', 'az-observed-number-of-extremely-hot-days', '2a'),
('/metadata/figures/3670', 'az-observed-maximum-summer-temperature', '2b'),
('/metadata/figures/4083', 'az-observed-minimum-summer-temperature', '2b'),
('/metadata/figures/3668', 'az-observed-annual-precipitation', '2c'),
('/metadata/figures/3673', 'az-observed-number-of-extreme-precipitation-events', '2d'),
('/metadata/figures/3674', 'az-observed-number-of-extremely-warm-nights', '3'),
('/metadata/figures/3675', 'az-observed-number-of-very-cold-nights', '4'),
('/metadata/figures/3671', 'az-observed-monsoon-season-precipitation', '5'),
('/metadata/figures/3903', 'arizona-palmer-drought-severity-index', '6'),
('/metadata/figures/3890', 'az_lake-mead-water-level-at-hoover-dam', '7'),
('/metadata/figures/3677', 'az_projected-change-in-spring-precipitation', '8')
('/metadata/figures/3890', 'az-lake-mead-water-level-at-hoover-dam', '7'),
('/metadata/figures/3677', 'az-projected-change-in-spring-precipitation', '8')
]),
('arkansas', [
('/metadata/figures/3954', 'ar_observed-and-projected-temperature-change', '1'),
('/metadata/figures/3840', 'ar_observed-number-of-extremely-hot-days', '2a'),
('/metadata/figures/3842', 'ar_observed-number-of-very-cold-nights', '2b'),
('/metadata/figures/3839', 'ar_observed-annual-precipitation', '2c'),
('/metadata/figures/3844', 'ar_observed-summer-precipitation', '2d'),
('/metadata/figures/3843', 'ar_observed-number-of-very-warm-nights', '3'),
('/metadata/figures/3845', 'ar_observed-summer-temperature', '4'),
('/metadata/figures/3841', 'ar_observed-number-of-extreme-precipitation-events', '5'),
('/metadata/figures/3846', 'ar_projected-change-in-winter-precipitation', '6')
('/metadata/figures/3954', 'ar-observed-and-projected-temperature-change', '1'),
('/metadata/figures/3840', 'ar-observed-number-of-extremely-hot-days', '2a'),
('/metadata/figures/3842', 'ar-observed-number-of-very-cold-nights', '2b'),
('/metadata/figures/3839', 'ar-observed-annual-precipitation', '2c'),
('/metadata/figures/3844', 'ar-observed-summer-precipitation', '2d'),
('/metadata/figures/3843', 'ar-observed-number-of-very-warm-nights', '3'),
('/metadata/figures/3845', 'ar-observed-summer-temperature', '4'),
('/metadata/figures/3841', 'ar-observed-number-of-extreme-precipitation-events', '5'),
('/metadata/figures/3846', 'ar-projected-change-in-winter-precipitation', '6')
]),
('california', [
('/metadata/figures/4086', 'ca_observed-and-projected-temperature-change', '1'),
('/metadata/figures/4090', 'ca_observed-number-of-extremely-hot-days', '2'),
('/metadata/figures/4094', 'ca_observed-annual-precipitation', '2b'),
('/metadata/figures/4089', 'ca_observed-number-of-extreme-precipitation-events', '2c'),
('/metadata/figures/4095', 'ca_observed-winter-precipitation', '2d'),
('/metadata/figures/4092', 'ca_observed-number-of-very-warm-nights', '3'),
('/metadata/figures/4088', 'ca_storage-levels-in-the-shasta-dam-reservoir', '6'),
('/metadata/figures/4086', 'ca-observed-and-projected-temperature-change', '1'),
('/metadata/figures/4090', 'ca-observed-number-of-extremely-hot-days', '2'),
('/metadata/figures/4094', 'ca-observed-annual-precipitation', '2b'),
('/metadata/figures/4089', 'ca-observed-number-of-extreme-precipitation-events', '2c'),
('/metadata/figures/4095', 'ca-observed-winter-precipitation', '2d'),
('/metadata/figures/4092', 'ca-observed-number-of-very-warm-nights', '3'),
('/metadata/figures/4088', 'ca-storage-levels-in-the-shasta-dam-reservoir', '6'),
('/metadata/figures/4096', 'california-palmer-drought-severity-index', '7'),
('/metadata/figures/4093', 'ca_projected-change-in-winter-precipitation', '8'),
('/metadata/figures/4084', 'ca_past-and-projected-changes-in-global-sea-level', '9')
('/metadata/figures/4093', 'ca-projected-change-in-winter-precipitation', '8'),
('/metadata/figures/4084', 'ca-past-and-projected-changes-in-global-sea-level', '9')
]),
('colorado', [
('/metadata/figures/3695', 'co_observed-and-projected-temperature-change', '1'),
('/metadata/figures/3693', 'co_observed-number-of-very-hot-days', '2'),
('/metadata/figures/3697', 'co_observed-spring-temperature', '3'),
('/metadata/figures/3698', 'co_observed-summer-temperature', '3'),
('/metadata/figures/3691', 'co_observed-number-of-very-cold-nights', '4'),
('/metadata/figures/3694', 'co_observed-number-of-warm-nights', '5a'),
('/metadata/figures/3689', 'co_observed-annual-precipitation', '5b'),
('/metadata/figures/3690', 'co_observed-fall-precipitation', '5c'),
('/metadata/figures/3696', 'co_observed-spring-precipitation', '5c'),
('/metadata/figures/3692', 'co_observed-number-of-extreme-precipitation-events', '5d'),
('/metadata/figures/3893', 'co_end-of-season-snow-water-equivalent-depth-at-tower', '6'),
('/metadata/figures/3699', 'co_projected-change-in-winter-precipitation', '7'),
('/metadata/figures/3695', 'co-observed-and-projected-temperature-change', '1'),
('/metadata/figures/3697', 'co-observed-spring-temperature', '2a'),
('/metadata/figures/3698', 'co-observed-summer-temperature', '2b'),
('/metadata/figures/3693', 'co-observed-number-of-very-hot-days', '3'),
('/metadata/figures/3691', 'co-observed-number-of-very-cold-nights', '4'),
('/metadata/figures/3694', 'co-observed-number-of-warm-nights', '5a'),
('/metadata/figures/3689', 'co-observed-annual-precipitation', '5b'),
('/metadata/figures/3690', 'co-observed-fall-precipitation', '5c'),
('/metadata/figures/3696', 'co-observed-spring-precipitation', '5c'),
('/metadata/figures/3692', 'co-observed-number-of-extreme-precipitation-events', '5d'),
('/metadata/figures/3893', 'co-end-of-season-snow-water-equivalent-depth-at-tower', '6'),
('/metadata/figures/3699', 'co-projected-change-in-winter-precipitation', '7'),
('/metadata/figures/3902', 'colorado-palmer-drought-severity-index', '8')
]),
('connecticut', [
('/metadata/figures/4060', 'ct_observed-and-projected-temperature-change', '1'),
('/metadata/figures/4082', 'ct_observed-number-of-very-hot-days', '2a'),
('/metadata/figures/3848', 'ct_observed-number-of-extreme-precipitation-events', '2b'),
('/metadata/figures/3847', 'ct_observed-annual-precipitation', '2c'),
('/metadata/figures/3852', 'ct_observed-summer-precipitation', '2d'),
('/metadata/figures/3851', 'ct_observed-number-of-warm-nights', '3'),
('/metadata/figures/3849', 'ct_observed-number-of-very-cold-nights', '4'),
('/metadata/figures/3853', 'ct_projected-change-in-spring-precipitation', '5'),
('/metadata/figures/3876', 'ct_past-and-projected-changes-in-global-sea-level', '7')
('/metadata/figures/4060', 'ct-observed-and-projected-temperature-change', '1'),
('/metadata/figures/4082', 'ct-observed-number-of-very-hot-days', '2a'),
('/metadata/figures/3848', 'ct-observed-number-of-extreme-precipitation-events', '2b'),
('/metadata/figures/3847', 'ct-observed-annual-precipitation', '2c'),
('/metadata/figures/3852', 'ct-observed-summer-precipitation', '2d'),
('/metadata/figures/3851', 'ct-observed-number-of-warm-nights', '3'),
('/metadata/figures/3849', 'ct-observed-number-of-very-cold-nights', '4'),
('/metadata/figures/3853', 'ct-projected-change-in-spring-precipitation', '5'),
('/metadata/figures/3876', 'ct-past-and-projected-changes-in-global-sea-level', '7')
]),
('delaware', [
('/metadata/figures/3761', 'de_observed-and-projected-temperature-change', '1'),
('/metadata/figures/3759', 'de_observed-number-of-very-hot-days', '2a'),
('/metadata/figures/3757', 'de_observed-number-of-days-below-freezing', '2b'),
('/metadata/figures/3756', 'de_observed-annual-precipitation', '2c'),
('/metadata/figures/3758', 'de_observed-number-of-extreme-precipitation-events', '2d'),
('/metadata/figures/3760', 'de_observed-number-of-very-warm-nights', '3'),
('/metadata/figures/3830', 'de_past-and-projected-changes-in-global-sea-level', '6')
('/metadata/figures/3761', 'de-observed-and-projected-temperature-change', '1'),
('/metadata/figures/3759', 'de-observed-number-of-very-hot-days', '2a'),
('/metadata/figures/3757', 'de-observed-number-of-days-below-freezing', '2b'),
('/metadata/figures/3756', 'de-observed-annual-precipitation', '2c'),
('/metadata/figures/3758', 'de-observed-number-of-extreme-precipitation-events', '2d'),
('/metadata/figures/3760', 'de-observed-number-of-very-warm-nights', '3'),
('/metadata/figures/3830', 'de-past-and-projected-changes-in-global-sea-level', '6')
]),
('florida', [
('/metadata/figures/3767', 'fl_observed-and-projected-temperature-change', '1'),
('/metadata/figures/3765', 'fl_observed-number-of-very-hot-days', '2a'),
('/metadata/figures/3951', 'fl_observed-number-of-nights-below-freezing', '2b'),
('/metadata/figures/3763', 'fl_observed-annual-precipitation', '2c'),
('/metadata/figures/3766', 'fl_observed-number-of-very-warm-nights', '3'),
('/metadata/figures/3764', 'fl_observed-number-of-extreme-precipitation-events', '5'),
('/metadata/figures/3768', 'fl_projected-change-in-summer-precipitation', '6')
('/metadata/figures/3767', 'fl-observed-and-projected-temperature-change', '1'),
('/metadata/figures/3765', 'fl-observed-number-of-very-hot-days', '2a'),
('/metadata/figures/3951', 'fl-observed-number-of-nights-below-freezing', '2b'),
('/metadata/figures/3763', 'fl-observed-annual-precipitation', '2c'),
('/metadata/figures/3766', 'fl-observed-number-of-very-warm-nights', '3'),
('/metadata/figures/3764', 'fl-observed-number-of-extreme-precipitation-events', '5'),
('/metadata/figures/3768', 'fl-projected-change-in-summer-precipitation', '6')
]),
('georgia', [
('/metadata/figures/3774', 'ga_observed-and-projected-temperature-change', '1'),
('/metadata/figures/3771', 'ga_observed-number-of-extremely-hot-days', '2a'),
('/metadata/figures/3770', 'ga_observed-number-of-days-below-freezing', '2b'),
('/metadata/figures/3775', 'ga_observed-summer-precipitation', '2c'),
('/metadata/figures/3772', 'ga_observed-number-of-extreme-precipitation-events', '2d'),
('/metadata/figures/3773', 'ga_observed-number-of-very-warm-nights', '3'),
('/metadata/figures/3769', 'ga_observed-annual-precipitation', '4'),
('/metadata/figures/3825', 'ga_past-and-projected-changes-in-global-sea-level', '6')
('/metadata/figures/3774', 'ga-observed-and-projected-temperature-change', '1'),
('/metadata/figures/3771', 'ga-observed-number-of-extremely-hot-days', '2a'),
('/metadata/figures/3770', 'ga-observed-number-of-days-below-freezing', '2b'),
('/metadata/figures/3775', 'ga-observed-summer-precipitation', '2c'),
('/metadata/figures/3772', 'ga-observed-number-of-extreme-precipitation-events', '2d'),
('/metadata/figures/3773', 'ga-observed-number-of-very-warm-nights', '3'),
('/metadata/figures/3769', 'ga-observed-annual-precipitation', '4'),
('/metadata/figures/3825', 'ga-past-and-projected-changes-in-global-sea-level', '6')
]),
('hawaii', [
('/metadata/figures/4108', 'hi_past-and-projected-changes-in-global-sea-level', '9')
('/metadata/figures/4108', 'hi-past-and-projected-changes-in-global-sea-level', '9')
]),
('idaho', [
('/metadata/figures/3645', 'id_observed-and-projected-temperature-change', '1'),
('/metadata/figures/3647', 'id_observed-number-of-very-hot-days', '2'),
('/metadata/figures/3649', 'id_observed-number-of-warm-nights', '3'),
('/metadata/figures/3648', 'id_observed-number-of-very-cold-nights', '4'),
('/metadata/figures/3646', 'id_observed-annual-precipitation', '5'),
('/metadata/figures/3650', 'id_observed-number-of-extreme-precipitation-events', '6'),
('/metadata/figures/3651', 'id_projected-change-in-spring-precipitation', '7'),
('/metadata/figures/3645', 'id-observed-and-projected-temperature-change', '1'),
('/metadata/figures/3647', 'id-observed-number-of-very-hot-days', '2'),
('/metadata/figures/3649', 'id-observed-number-of-warm-nights', '3'),
('/metadata/figures/3648', 'id-observed-number-of-very-cold-nights', '4'),
('/metadata/figures/3646', 'id-observed-annual-precipitation', '5'),
('/metadata/figures/3650', 'id-observed-number-of-extreme-precipitation-events', '6'),
('/metadata/figures/3651', 'id-projected-change-in-spring-precipitation', '7'),
('/metadata/figures/3906', 'end-of-season-snow-water-equivalent-depth-at-bear-mountain', '8')
]),
('illinois', [
('/metadata/figures/3663', 'il_observed-and-projected-temperature-change', '1'),
('/metadata/figures/3664', 'il_observed-spring-temperature', '2'),
('/metadata/figures/3666', 'il_observed-summer-temperature', '2'),
('/metadata/figures/3661', 'il_observed-number-of-very-hot-days', '3a'),
('/metadata/figures/3662', 'il_observed-number-of-very-warm-nights', '3b'),
('/metadata/figures/3660', 'il_observed-number-of-very-cold-nights', '3c'),
('/metadata/figures/3832', 'il_observed-annual-precipitation', '3d'),
('/metadata/figures/3665', 'il_observed-summer-precipitation', '4'),
('/metadata/figures/3946', 'il_observed-spring-precipitation', '4'),
('/metadata/figures/3659', 'il_observed-number-of-extreme-precipitation-events', '5'),
('/metadata/figures/3947', 'il_annual-lake-wide-average-water-levels-for-lake-michigan-huron', '6'),
('/metadata/figures/3667', 'il_projected-change-in-spring-precipitation', '8')
('/metadata/figures/3663', 'il-observed-and-projected-temperature-change', '1'),
('/metadata/figures/3664', 'il-observed-spring-temperature', '2a'),
('/metadata/figures/3666', 'il-observed-summer-temperature', '2b'),
('/metadata/figures/3661', 'il-observed-number-of-very-hot-days', '3a'),
('/metadata/figures/3662', 'il-observed-number-of-very-warm-nights', '3b'),
('/metadata/figures/3660', 'il-observed-number-of-very-cold-nights', '3c'),
('/metadata/figures/3832', 'il-observed-annual-precipitation', '3d'),
('/metadata/figures/3665', 'il-observed-summer-precipitation', '4'),
('/metadata/figures/3946', 'il-observed-spring-precipitation', '4'),
('/metadata/figures/3659', 'il-observed-number-of-extreme-precipitation-events', '5'),
('/metadata/figures/3947', 'il-annual-lake-wide-average-water-levels-for-lake-michigan-huron', '6'),
('/metadata/figures/3667', 'il-projected-change-in-spring-precipitation', '8')
]),
('indiana', [
('/metadata/figures/3683', 'in_observed-and-projected-temperature-change', '1'),
('/metadata/figures/3685', 'in_observed-spring-temperature', '2a'),
('/metadata/figures/3687', 'in_observed-summer-temperature', '2a'),
('/metadata/figures/3681', 'in_observed-number-of-very-hot-days', '2b'),
('/metadata/figures/3682', 'in_observed-number-of-very-warm-nights', '2c'),
('/metadata/figures/3684', 'in_observed-spring-precipitation', '2d'),
('/metadata/figures/3686', 'in_observed-summer-precipitation', '2d'),
('/metadata/figures/3680', 'in_observed-number-of-very-cold-nights', '3'),
('/metadata/figures/3678', 'in_observed-annual-precipitation', '4'),
('/metadata/figures/3679', 'in_observed-number-of-extreme-precipitation-events', '5'),
('/metadata/figures/3688', 'in_projected-change-in-spring-precipitation', '7'),
('/metadata/figures/3683', 'in-observed-and-projected-temperature-change', '1'),
('/metadata/figures/3685', 'in-observed-spring-temperature', '2a'),
('/metadata/figures/3687', 'in-observed-summer-temperature', '2a'),
('/metadata/figures/3681', 'in-observed-number-of-very-hot-days', '2b'),
('/metadata/figures/3682', 'in-observed-number-of-very-warm-nights', '2c'),
('/metadata/figures/3684', 'in-observed-spring-precipitation', '2d'),
('/metadata/figures/3686', 'in-observed-summer-precipitation', '2d'),
('/metadata/figures/3680', 'in-observed-number-of-very-cold-nights', '3'),
('/metadata/figures/3678', 'in-observed-annual-precipitation', '4'),
('/metadata/figures/3679', 'in-observed-number-of-extreme-precipitation-events', '5'),
('/metadata/figures/3688', 'in-projected-change-in-spring-precipitation', '7'),
]),
('iowa', [
('/metadata/figures/3700', 'ia_observed-and-projected-temperature-change', '1'),
('/metadata/figures/3706', 'ia_observed-summer-temperature', '2a'),
('/metadata/figures/3703', 'ia_observed-number-of-very-hot-days', '2b'),
('/metadata/figures/3704', 'ia_observed-number-of-very-warm-nights', '2c'),
('/metadata/figures/3702', 'ia_observed-number-of-very-cold-nights', '2d'),
('/metadata/figures/3705', 'ia_observed-spring-precipitation', '3'),
('/metadata/figures/3814', 'ia_observed-summer-precipitation', '3'),
('/metadata/figures/3701', 'ia_observed-number-of-extreme-precipitation-events', '5'),
('/metadata/figures/3708', 'ia_observed-annual-precipitation', '5'),
('/metadata/figures/3707', 'ia_projected-change-in-spring-precipitation', '6')
('/metadata/figures/3700', 'ia-observed-and-projected-temperature-change', '1'),
('/metadata/figures/3706', 'ia-observed-summer-temperature', '2a'),
('/metadata/figures/3703', 'ia-observed-number-of-very-hot-days', '2b'),
('/metadata/figures/3704', 'ia-observed-number-of-very-warm-nights', '2c'),
('/metadata/figures/3702', 'ia-observed-number-of-very-cold-nights', '2d'),
('/metadata/figures/3705', 'ia-observed-spring-precipitation', '3'),
('/metadata/figures/3814', 'ia-observed-summer-precipitation', '3'),
('/metadata/figures/3701', 'ia-observed-number-of-extreme-precipitation-events', '5'),
('/metadata/figures/3708', 'ia-observed-annual-precipitation', '5'),
('/metadata/figures/3707', 'ia-projected-change-in-spring-precipitation', '6')
]),
('kansas', [
('/metadata/figures/3601', 'ks_observed-and-projected-temperature-change', '1'),
('/metadata/figures/3607', 'ks_observed-spring-temperature', '2'),
('/metadata/figures/3609', 'ks_observed-summer-temperature', '2'),
('/metadata/figures/3604', 'ks_observed-number-of-very-warm-nights', '3a'),
('/metadata/figures/3603', 'ks_observed-number-of-extremely-hot-days', '3b'),
('/metadata/figures/3627', 'ks_observed-annual-precipitation', '3c'),
('/metadata/figures/3606', 'ks_observed-spring-precipitation', '3d'),
('/metadata/figures/3608', 'ks_observed-summer-precipitation', '3d'),
('/metadata/figures/3602', 'ks_observed-number-of-very-cold-nights', '4'),
('/metadata/figures/3605', 'ks_observed-number-of-extreme-precipitation-events', '5'),
('/metadata/figures/3601', 'ks-observed-and-projected-temperature-change', '1'),
('/metadata/figures/3607', 'ks-observed-spring-temperature', '2'),
('/metadata/figures/3609', 'ks-observed-summer-temperature', '2'),
('/metadata/figures/3604', 'ks-observed-number-of-very-warm-nights', '3a'),
('/metadata/figures/3603', 'ks-observed-number-of-extremely-hot-days', '3b'),
('/metadata/figures/3627', 'ks-observed-annual-precipitation', '3c'),
('/metadata/figures/3606', 'ks-observed-spring-precipitation', '3d'),
('/metadata/figures/3608', 'ks-observed-summer-precipitation', '3d'),
('/metadata/figures/3602', 'ks-observed-number-of-very-cold-nights', '4'),
('/metadata/figures/3605', 'ks-observed-number-of-extreme-precipitation-events', '5'),
('/metadata/figures/3904', 'kansas-palmer-drought-severity-index', '6'),
('/metadata/figures/3610', 'ks_projected-change-in-winter-precipitation', '7')
('/metadata/figures/3610', 'ks-projected-change-in-winter-precipitation', '7')
]),
('kentucky', [
('/metadata/figures/3782', 'ky_observed-and-projected-temperature-change', '1'),
('/metadata/figures/3778', 'ky_observed-number-of-extremely-hot-days', '2a'),
('/metadata/figures/3784', 'ky_observed-summer-temperature', '2b'),
('/metadata/figures/3785', 'ky_observed-winter-temperature', '2b'),
('/metadata/figures/3777', 'ky_observed-annual-precipitation', '2c'),
('/metadata/figures/3783', 'ky_observed-summer-precipitation', '2d'),
('/metadata/figures/3780', 'ky_observed-number-of-very-cold-nights', '3'),
('/metadata/figures/3781', 'ky_observed-number-of-very-warm-nights', '4'),
('/metadata/figures/3779', 'ky_observed-number-of-extreme-precipitation-events', '5'),
('/metadata/figures/3786', 'ky_projected-change-in-spring-precipitation', '6')
('/metadata/figures/3782', 'ky-observed-and-projected-temperature-change', '1'),
('/metadata/figures/3778', 'ky-observed-number-of-extremely-hot-days', '2a'),
('/metadata/figures/3784', 'ky-observed-summer-temperature', '2b'),
('/metadata/figures/3785', 'ky-observed-winter-temperature', '2b'),
('/metadata/figures/3777', 'ky-observed-annual-precipitation', '2c'),
('/metadata/figures/3783', 'ky-observed-summer-precipitation', '2d'),
('/metadata/figures/3780', 'ky-observed-number-of-very-cold-nights', '3'),
('/metadata/figures/3781', 'ky-observed-number-of-very-warm-nights', '4'),
('/metadata/figures/3779', 'ky-observed-number-of-extreme-precipitation-events', '5'),
('/metadata/figures/3786', 'ky-projected-change-in-spring-precipitation', '6')
]),
('louisiana', [
('/metadata/figures/3793', 'la_observed-and-projected-temperature-change', '1'),
('/metadata/figures/3791', 'la_observed-number-of-very-hot-days', '2a'),
('/metadata/figures/3790', 'la_observed-number-of-days-below-freezing', '2b'),
('/metadata/figures/3788', 'la_observed-fall-precipitation', '2c'),
('/metadata/figures/3794', 'la_observed-spring-precipitation', '2c'),
('/metadata/figures/3789', 'la_observed-number-of-extreme-precipitation-events', '2d'),
('/metadata/figures/3792', 'la_observed-number-of-very-warm-nights', '3'),
('/metadata/figures/3787', 'la_observed-annual-precipitation', '4'),
('/metadata/figures/3795', 'la_projected-change-in-summer-precipitation', '7'),
('/metadata/figures/3833', 'la_past-and-projected-changes-in-global-sea-level', '8')
('/metadata/figures/3793', 'la-observed-and-projected-temperature-change', '1'),
('/metadata/figures/3791', 'la-observed-number-of-very-hot-days', '2a'),
('/metadata/figures/3790', 'la-observed-number-of-days-below-freezing', '2b'),
('/metadata/figures/3788', 'la-observed-fall-precipitation', '2c'),
('/metadata/figures/3794', 'la-observed-spring-precipitation', '2c'),
('/metadata/figures/3789', 'la-observed-number-of-extreme-precipitation-events', '2d'),
('/metadata/figures/3792', 'la-observed-number-of-very-warm-nights', '3'),
('/metadata/figures/3787', 'la-observed-annual-precipitation', '4'),
('/metadata/figures/3795', 'la-projected-change-in-summer-precipitation', '7'),
('/metadata/figures/3833', 'la-past-and-projected-changes-in-global-sea-level', '8')
]),
('maine', [
('/metadata/figures/3961', 'me_observed-and-projected-temperature-change', '1'),
('/metadata/figures/3966', 'me_observed-number-of-hot-days', '2a'),
('/metadata/figures/3968', 'me_observed-summer-temperature', '2b'),
('/metadata/figures/3969', 'me_observed-winter-temperature', '2b'),
('/metadata/figures/3964', 'me_observed-annual-precipitation', '2c'),
('/metadata/figures/3967', 'me_observed-number-of-very-cold-nights', '3'),
('/metadata/figures/3965', 'me_observed-number-of-extreme-precipitation-events', '4'),
('/metadata/figures/3962', 'me_projected-change-in-winter-precipitation', '5'),
('/metadata/figures/4112', 'me_past-and-projected-changes-in-global-sea-level', '6')
('/metadata/figures/3961', 'me-observed-and-projected-temperature-change', '1'),
('/metadata/figures/3966', 'me-observed-number-of-hot-days', '2a'),
('/metadata/figures/3968', 'me-observed-summer-temperature', '2b'),
('/metadata/figures/3969', 'me-observed-winter-temperature', '2b'),
('/metadata/figures/3964', 'me-observed-annual-precipitation', '2c'),
('/metadata/figures/3967', 'me-observed-number-of-very-cold-nights', '3'),
('/metadata/figures/3965', 'me-observed-number-of-extreme-precipitation-events', '4'),
('/metadata/figures/3962', 'me-projected-change-in-winter-precipitation', '5'),
('/metadata/figures/4112', 'me-past-and-projected-changes-in-global-sea-level', '6')
]),
('maryland', [
('/metadata/figures/3801', 'md_observed-and-projected-temperature-change', '1'),
('/metadata/figures/3799', 'md_observed-number-of-very-hot-days', '2'),
('/metadata/figures/3800', 'md_observed-number-of-very-warm-nights', '2b'),
('/metadata/figures/3798', 'md_observed-number-of-very-cold-nights', '2c'),
('/metadata/figures/3796', 'md_observed-annual-precipitation', '2d'),
('/metadata/figures/3797', 'md_observed-number-of-extreme-precipitation-events', '4'),
('/metadata/figures/4059', 'md_past-and-projected-changes-in-global-sea-level', '7')
('/metadata/figures/3801', 'md-observed-and-projected-temperature-change', '1'),
('/metadata/figures/3799', 'md-observed-number-of-very-hot-days', '2'),
('/metadata/figures/3800', 'md-observed-number-of-very-warm-nights', '2b'),
('/metadata/figures/3798', 'md-observed-number-of-very-cold-nights', '2c'),
('/metadata/figures/3796', 'md-observed-annual-precipitation', '2d'),
('/metadata/figures/3797', 'md-observed-number-of-extreme-precipitation-events', '4'),
('/metadata/figures/4059', 'md-past-and-projected-changes-in-global-sea-level', '7')
]),
('massachusetts', [
('/metadata/figures/4010', 'ma_observed-and-projected-temperature-change', '1'),
('/metadata/figures/4051', 'ma_observed-number-of-hot-days', '2'),
('/metadata/figures/4054', 'ma_observed-number-of-extreme-precipitation-events', '2b'),
('/metadata/figures/4056', 'ma_observed-annual-precipitation', '2c'),
('/metadata/figures/4057', 'ma_observed-summer-precipitation', '2d'),
('/metadata/figures/4052', 'ma_observed-number-of-warm-nights', '3'),
('/metadata/figures/4055', 'ma_observed-number-of-very-cold-nights', '4'),
('/metadata/figures/4011', 'ma_projected-change-in-spring-precipitation', '5'),
('/metadata/figures/4058', 'ma_past-and-projected-changes-in-global-sea-level', '7')
('/metadata/figures/4010', 'ma-observed-and-projected-temperature-change', '1'),
('/metadata/figures/4051', 'ma-observed-number-of-hot-days', '2'),
('/metadata/figures/4054', 'ma-observed-number-of-extreme-precipitation-events', '2b'),
('/metadata/figures/4056', 'ma-observed-annual-precipitation', '2c'),
('/metadata/figures/4057', 'ma-observed-summer-precipitation', '2d'),
('/metadata/figures/4052', 'ma-observed-number-of-warm-nights', '3'),
('/metadata/figures/4055', 'ma-observed-number-of-very-cold-nights', '4'),
('/metadata/figures/4011', 'ma-projected-change-in-spring-precipitation', '5'),
('/metadata/figures/4058', 'ma-past-and-projected-changes-in-global-sea-level', '7')
]),
('michigan', [
('/metadata/figures/3709', 'mi_observed-and-projected-temperature-change', '1'),
('/metadata/figures/3712', 'mi_observed-number-of-hot-days', '2a'),
('/metadata/figures/3713', 'mi_observed-number-of-very-cold-nights', '2b'),
('/metadata/figures/3714', 'mi_observed-number-of-warm-nights', '2b'),
('/metadata/figures/3710', 'mi_observed-annual-precipitation', '2d'),
('/metadata/figures/3711', 'mi_observed-number-of-extreme-precipitation-events', '3'),
('/metadata/figures/3955', 'mi_annual-lake-wide-average-water-levels-for-lake-michigan-huron', '4'),
('/metadata/figures/3715', 'mi_projected-change-in-winter-precipitation', '5')
('/metadata/figures/3709', 'mi-observed-and-projected-temperature-change', '1'),
('/metadata/figures/3712', 'mi-observed-number-of-hot-days', '2a'),
('/metadata/figures/3713', 'mi-observed-number-of-very-cold-nights', '2b'),
('/metadata/figures/3714', 'mi-observed-number-of-warm-nights', '2b'),
('/metadata/figures/3710', 'mi-observed-annual-precipitation', '2d'),
('/metadata/figures/3711', 'mi-observed-number-of-extreme-precipitation-events', '3'),
('/metadata/figures/3955', 'mi-annual-lake-wide-average-water-levels-for-lake-michigan-huron', '4'),
('/metadata/figures/3715', 'mi-projected-change-in-winter-precipitation', '5')
]),
('minnesota', [
('/metadata/figures/3611', 'mn_observed-and-projected-temperature-change', '1'),
('/metadata/figures/3613', 'mn_observed-number-of-hot-days', '3'),
('/metadata/figures/3615', 'mn_observed-number-of-very-warm-nights', '3b'),
('/metadata/figures/3952', 'mn_observed-number-of-very-cold-days', '3b'),
('/metadata/figures/3616', 'mn_observed-number-of-extreme-precipitation-events', '3d'),
('/metadata/figures/3612', 'mn_observed-annual-precipitation', '5'),
('/metadata/figures/3614', 'mn_observed-annual-precipitation', '5'),
('/metadata/figures/3617', 'mn_projected-change-in-spring-precipitation', '6'),
('/metadata/figures/3611', 'mn-observed-and-projected-temperature-change', '1'),
('/metadata/figures/3613', 'mn-observed-number-of-hot-days', '3'),
('/metadata/figures/3615', 'mn-observed-number-of-very-warm-nights', '3b'),
('/metadata/figures/3952', 'mn-observed-number-of-very-cold-days', '3b'),
('/metadata/figures/3616', 'mn-observed-number-of-extreme-precipitation-events', '3d'),
('/metadata/figures/3612', 'mn-observed-annual-precipitation', '5a'),
('/metadata/figures/3614', 'mn-observed-annual-precipitation', '5b'),
('/metadata/figures/3617', 'mn-projected-change-in-spring-precipitation', '6'),
]),
('mississippi', [
('/metadata/figures/3948', 'ms_observed-and-projected-temperature-change', '1'),
('/metadata/figures/3859', 'ms_observed-number-of-very-warm-nights', '2'),
('/metadata/figures/3861', 'ms_observed-summer-temperature', '3'),
('/metadata/figures/3857', 'ms_observed-number-of-extreme-precipitation-events', '4'),
('/metadata/figures/3862', 'ms_projected-change-in-summer-precipitation', '6'),
('/metadata/figures/3877', 'ms_past-and-projected-changes-in-global-sea-level', '7'),
('/metadata/figures/3858', 'ms_observed-number-of-days-below-freezing', '7a'),
('/metadata/figures/3855', 'ms_observed-annual-precipitation', '7c'),
('/metadata/figures/3860', 'ms_observed-summer-precipitation', '7d'),
('/metadata/figures/3856', 'ms_observed-number-of-extremely-hot-days', '8a')
('/metadata/figures/3948', 'ms-observed-and-projected-temperature-change', '1'),
('/metadata/figures/3859', 'ms-observed-number-of-very-warm-nights', '2'),
('/metadata/figures/3861', 'ms-observed-summer-temperature', '3'),
('/metadata/figures/3857', 'ms-observed-number-of-extreme-precipitation-events', '4'),
('/metadata/figures/3862', 'ms-projected-change-in-summer-precipitation', '6'),
('/metadata/figures/3877', 'ms-past-and-projected-changes-in-global-sea-level', '7'),
('/metadata/figures/3858', 'ms-observed-number-of-days-below-freezing', '7a'),
('/metadata/figures/3855', 'ms-observed-annual-precipitation', '7c'),
('/metadata/figures/3860', 'ms-observed-summer-precipitation', '7d'),
('/metadata/figures/3856', 'ms-observed-number-of-extremely-hot-days', '8a')
]),
('missouri', [
('/metadata/figures/3810', 'mo_observed-and-projected-temperature-change', '1'),
('/metadata/figures/3804', 'mo_observed-maximum-summer-temperature', '2'),
('/metadata/figures/3805', 'mo_observed-minimum-summer-temperature', '2'),
('/metadata/figures/3812', 'mo_observed-summer-temperature', '2'),
('/metadata/figures/3806', 'mo_observed-number-of-extremely-hot-days', '3a'),