Skip to content

Commit

Permalink
add fixtures
Browse files Browse the repository at this point in the history
rshewitt committed Apr 23, 2024
1 parent 9b36bec commit af5343c
Showing 3 changed files with 1,669 additions and 0 deletions.
1,021 changes: 1,021 additions & 0 deletions test/fixtures/files/fgdc.xml

Large diffs are not rendered by default.

643 changes: 643 additions & 0 deletions test/fixtures/files/sbJson.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,643 @@
{
"link": {
"rel": "self",
"url": "https://www.sciencebase.gov/catalog/item/57d97341e4b090824ffb0e6f"
},
"relatedItems": {
"link": {
"url": "https://www.sciencebase.gov/catalog/itemLinks?itemId=57d97341e4b090824ffb0e6f",
"rel": "related"
}
},
"id": "57d97341e4b090824ffb0e6f",
"title": "Spatial data: A large-scale database of modeled contemporary and future water temperature data for 10,774 Michigan, Minnesota and Wisconsin Lakes",
"summary": "Climate change has been shown to influence lake temperatures globally. To better understand the diversity of lake responses to climate change and give managers tools to manage individual lakes, we modelled daily water temperature profiles for 10,774 lakes in Michigan, Minnesota and Wisconsin for contemporary (1979-2015) and future (2020-2040 and 2080-2100) time periods with climate models based on the Representative Concentration Pathway 8.5, the worst-case emission scenario. From simulated temperatures, we derived commonly used, ecologically relevant annual metrics of thermal conditions for each lake. We included all available supporting metadata including satellite and in-situ observations of water clarity, maximum observed lake [...]",
"body": "Climate change has been shown to influence lake temperatures globally. To better understand the diversity of lake responses to climate change and give managers tools to manage individual lakes, we modelled daily water temperature profiles for 10,774 lakes in Michigan, Minnesota and Wisconsin for contemporary (1979-2015) and future (2020-2040 and 2080-2100) time periods with climate models based on the Representative Concentration Pathway 8.5, the worst-case emission scenario. From simulated temperatures, we derived commonly used, ecologically relevant annual metrics of thermal conditions for each lake. We included all available supporting metadata including satellite and in-situ observations of water clarity, maximum observed lake depth, land-cover based estimates of surrounding canopy height and observed water temperature profiles (used here for validation). This unique dataset offers landscape-level insight into the future impact of climate change on lakes. This data set contains the following parameters: site_id, Prmnn_I, GNIS_ID, GNIS_Nm, ReachCd, FType, FCode, which are defined below.",
"citation": "Winslow, L.A., Hansen, G.J.A., and Read, J.S., 2017, Data release: A large-scale database of modeled contemporary and future water temperature data for 10,774 Michigan, Minnesota and Wisconsin Lakes: U.S. Geological Survey, http://dx.doi.org/10.5066/F7DV1H10.",
"purpose": "Fisheries biology, limnological research, and climate science.",
"provenance": {
"dataSource": "Input directly",
"dateCreated": "2016-09-14T15:56:49Z",
"lastUpdated": "2017-04-06T20:04:58Z"
},
"maintenanceUpdateFrequency": "none planned",
"hasChildren": false,
"parentId": "57c5c793e4b0f2f0cebdaa4d",
"contacts": [
{
"name": "Jordan S Read",
"oldPartyId": 60525,
"type": "Point of Contact",
"contactType": "person",
"email": "jread@usgs.gov",
"active": true,
"jobTitle": "Civil Engineer",
"firstName": "Jordan",
"middleName": "S",
"lastName": "Read",
"organization": {
"displayText": "Office of Water Information"
},
"primaryLocation": {
"name": "Jordan S Read/WRD/USGS/DOI - Primary Location",
"building": "8505 Research Way",
"buildingCode": "ARM",
"officePhone": "6088213922",
"faxPhone": "6088213817",
"streetAddress": {
"line1": "8505 Research Way",
"city": "Middleton",
"state": "WI",
"zip": "53562"
},
"mailAddress": {
"line1": "8505 Research Way",
"city": "Middleton",
"state": "WI",
"zip": "53562-3581",
"country": "USA"
}
}
},
{
"name": "Luke A. Winslow",
"type": "Originator",
"contactType": "person",
"organization": {},
"primaryLocation": {
"streetAddress": {},
"mailAddress": {}
}
},
{
"name": "Gretchen J.A. Hansen",
"type": "Originator",
"contactType": "person",
"organization": {},
"primaryLocation": {
"streetAddress": {},
"mailAddress": {}
}
},
{
"name": "Jordan S Read",
"oldPartyId": 60525,
"type": "Originator",
"contactType": "person",
"email": "jread@usgs.gov",
"active": true,
"jobTitle": "Civil Engineer",
"firstName": "Jordan",
"middleName": "S",
"lastName": "Read",
"organization": {
"displayText": "Office of Water Information"
},
"primaryLocation": {
"name": "Jordan S Read/WRD/USGS/DOI - Primary Location",
"building": "8505 Research Way",
"buildingCode": "ARM",
"officePhone": "6088213922",
"faxPhone": "6088213817",
"streetAddress": {
"line1": "8505 Research Way",
"city": "Middleton",
"state": "WI",
"zip": "53562"
},
"mailAddress": {
"line1": "8505 Research Way",
"city": "Middleton",
"state": "WI",
"zip": "53562-3581",
"country": "USA"
}
}
},
{
"name": "Jordan S Read",
"oldPartyId": 60525,
"type": "Metadata Contact",
"contactType": "person",
"email": "jread@usgs.gov",
"active": true,
"jobTitle": "Civil Engineer",
"firstName": "Jordan",
"middleName": "S",
"lastName": "Read",
"organization": {
"displayText": "Office of Water Information"
},
"primaryLocation": {
"name": "Jordan S Read/WRD/USGS/DOI - Primary Location",
"building": "8505 Research Way",
"buildingCode": "ARM",
"officePhone": "6088213922",
"faxPhone": "6088213817",
"streetAddress": {
"line1": "8505 Research Way",
"city": "Middleton",
"state": "WI",
"zip": "53562"
},
"mailAddress": {
"line1": "8505 Research Way",
"city": "Middleton",
"state": "WI",
"zip": "53562-3581",
"country": "USA"
}
}
},
{
"name": "Jordan S Read",
"oldPartyId": 60525,
"type": "Distributor",
"contactType": "person",
"email": "jread@usgs.gov",
"active": true,
"jobTitle": "Civil Engineer",
"firstName": "Jordan",
"middleName": "S",
"lastName": "Read",
"organization": {
"displayText": "Office of Water Information"
},
"primaryLocation": {
"name": "Jordan S Read/WRD/USGS/DOI - Primary Location",
"building": "8505 Research Way",
"buildingCode": "ARM",
"officePhone": "6088213922",
"faxPhone": "6088213817",
"streetAddress": {
"line1": "8505 Research Way",
"city": "Middleton",
"state": "WI",
"zip": "53562"
},
"mailAddress": {
"line1": "8505 Research Way",
"city": "Middleton",
"state": "WI",
"zip": "53562-3581",
"country": "USA"
}
}
},
{
"name": "U.S. Geological Survey - ScienceBase",
"oldPartyId": 70157,
"type": "Distributor",
"contactType": "organization",
"onlineResource": "https://www.sciencebase.gov",
"email": "sciencebase@usgs.gov",
"organization": {},
"primaryLocation": {
"name": "U.S. Geological Survey - ScienceBase - Location",
"officePhone": "18882758747",
"streetAddress": {},
"mailAddress": {
"line1": "Denver Federal Center",
"line2": "Building 810",
"mailStopCode": "302",
"city": "Denver",
"state": "CO",
"zip": "80225",
"country": "United States"
}
}
}
],
"webLinks": [
{
"type": "webLink",
"typeLabel": "Web Link",
"uri": "http://dx.doi.org/10.5066/F7DV1H10",
"rel": "related",
"hidden": false
}
],
"browseCategories": [
"Data"
],
"browseTypes": [
"Citation",
"Shapefile",
"Downloadable",
"Map Service",
"OGC WMS Layer",
"OGC WFS Layer"
],
"systemTypes": [
"Downloadable",
"Mappable"
],
"tags": [
{
"type": "Theme",
"scheme": "none",
"name": "water"
},
{
"type": "Theme",
"scheme": "none",
"name": "temperate lakes"
},
{
"type": "Theme",
"scheme": "none",
"name": "reservoirs"
},
{
"type": "Theme",
"scheme": "none",
"name": "modeling"
},
{
"type": "Theme",
"scheme": "none",
"name": "climate change"
},
{
"type": "Theme",
"scheme": "none",
"name": "thermal profiles"
},
{
"type": "Theme",
"scheme": "ISO 19115 Topic Category",
"name": "environment"
},
{
"type": "Theme",
"scheme": "ISO 19115 Topic Category",
"name": "inlandWaters"
},
{
"type": "Theme",
"scheme": "ISO 19115 Topic Category",
"name": "007"
},
{
"type": "Theme",
"scheme": "ISO 19115 Topic Category",
"name": "012"
},
{
"type": "Place",
"scheme": "Department of Commerce, 1995, Countries, Dependencies, Areas of Special Sovereignty, and Their Principal Administrative Divisions, Federal Information Processing Standard (FIPS) 10-4, Washington, D.C., National Institute of Standards and Technology",
"name": "United States"
},
{
"type": "Place",
"scheme": "Department of Commerce, 1995, Countries, Dependencies, Areas of Special Sovereignty, and Their Principal Administrative Divisions, Federal Information Processing Standard (FIPS) 10-4, Washington, D.C., National Institute of Standards and Technology",
"name": "US"
},
{
"type": "Place",
"scheme": "U.S. Department of Commerce, 1987, Codes for the identification of the States, the District of Columbia and the outlying areas of the United States, and associated areas (Federal Information Processing Standard 5-2): Washington, D. C., NIST",
"name": "Illinois"
},
{
"type": "Place",
"scheme": "U.S. Department of Commerce, 1987, Codes for the identification of the States, the District of Columbia and the outlying areas of the United States, and associated areas (Federal Information Processing Standard 5-2): Washington, D. C., NIST",
"name": "IL"
},
{
"type": "Place",
"scheme": "U.S. Department of Commerce, 1987, Codes for the identification of the States, the District of Columbia and the outlying areas of the United States, and associated areas (Federal Information Processing Standard 5-2): Washington, D. C., NIST",
"name": "Indiana"
},
{
"type": "Place",
"scheme": "U.S. Department of Commerce, 1987, Codes for the identification of the States, the District of Columbia and the outlying areas of the United States, and associated areas (Federal Information Processing Standard 5-2): Washington, D. C., NIST",
"name": "IN"
},
{
"type": "Place",
"scheme": "U.S. Department of Commerce, 1987, Codes for the identification of the States, the District of Columbia and the outlying areas of the United States, and associated areas (Federal Information Processing Standard 5-2): Washington, D. C., NIST",
"name": "Iowa"
},
{
"type": "Place",
"scheme": "U.S. Department of Commerce, 1987, Codes for the identification of the States, the District of Columbia and the outlying areas of the United States, and associated areas (Federal Information Processing Standard 5-2): Washington, D. C., NIST",
"name": "IA"
},
{
"type": "Place",
"scheme": "U.S. Department of Commerce, 1987, Codes for the identification of the States, the District of Columbia and the outlying areas of the United States, and associated areas (Federal Information Processing Standard 5-2): Washington, D. C., NIST",
"name": "Michigan"
},
{
"type": "Place",
"scheme": "U.S. Department of Commerce, 1987, Codes for the identification of the States, the District of Columbia and the outlying areas of the United States, and associated areas (Federal Information Processing Standard 5-2): Washington, D. C., NIST",
"name": "MI"
},
{
"type": "Place",
"scheme": "U.S. Department of Commerce, 1987, Codes for the identification of the States, the District of Columbia and the outlying areas of the United States, and associated areas (Federal Information Processing Standard 5-2): Washington, D. C., NIST",
"name": "Minnesota"
},
{
"type": "Place",
"scheme": "U.S. Department of Commerce, 1987, Codes for the identification of the States, the District of Columbia and the outlying areas of the United States, and associated areas (Federal Information Processing Standard 5-2): Washington, D. C., NIST",
"name": "MN"
},
{
"type": "Place",
"scheme": "U.S. Department of Commerce, 1987, Codes for the identification of the States, the District of Columbia and the outlying areas of the United States, and associated areas (Federal Information Processing Standard 5-2): Washington, D. C., NIST",
"name": "South Dakota"
},
{
"type": "Place",
"scheme": "U.S. Department of Commerce, 1987, Codes for the identification of the States, the District of Columbia and the outlying areas of the United States, and associated areas (Federal Information Processing Standard 5-2): Washington, D. C., NIST",
"name": "SD"
},
{
"type": "Place",
"scheme": "U.S. Department of Commerce, 1987, Codes for the identification of the States, the District of Columbia and the outlying areas of the United States, and associated areas (Federal Information Processing Standard 5-2): Washington, D. C., NIST",
"name": "Wisconsin"
},
{
"type": "Place",
"scheme": "U.S. Department of Commerce, 1987, Codes for the identification of the States, the District of Columbia and the outlying areas of the United States, and associated areas (Federal Information Processing Standard 5-2): Washington, D. C., NIST",
"name": "WI"
},
{
"type": "Place",
"scheme": "none",
"name": "Illinois"
},
{
"type": "Place",
"scheme": "none",
"name": "Indiana"
},
{
"type": "Place",
"scheme": "none",
"name": "Iowa"
},
{
"type": "Place",
"scheme": "none",
"name": "Michigan"
},
{
"type": "Place",
"scheme": "none",
"name": "Minnesota"
},
{
"type": "Place",
"scheme": "none",
"name": "South Dakota"
},
{
"type": "Place",
"scheme": "none",
"name": "Wisconsin"
},
{
"type": "Organization",
"scheme": "https://www.sciencebase.gov/vocab/category/NCCWSC/Project/OrganizationName",
"name": "Northeast CSC"
},
{
"type": "Water and Ice",
"scheme": "https://www.sciencebase.gov/vocab/category/NCCWSC/WaterandIce",
"name": "Rivers, Streams and Lakes"
},
{
"type": "Wildlife and Plants",
"scheme": "https://www.sciencebase.gov/vocab/category/NCCWSC/WildlifeandPlants",
"name": "Fish"
},
{
"type": "Education, Modeling and Tools",
"scheme": "https://www.sciencebase.gov/vocab/category/NCCWSC/EducationModelingandTools",
"name": "Climate and Ecosystem Modeling"
}
],
"dates": [
{
"type": "Publication",
"dateString": "2017",
"label": "Publication Date"
}
],
"extents": [
2005798
],
"spatial": {
"boundingBox": {
"minX": -96.8589114267623,
"maxX": -83.0573307815185,
"minY": 41.7553570685206,
"maxY": 48.7289513243629
}
},
"facets": [
{
"boundingBox": {
"minY": 41.75535706852064,
"minX": -96.8589114267623,
"maxY": 48.7289513243629,
"maxX": -83.05733078151846
},
"name": "model_lakes",
"files": [
{
"name": "model_lakes.dbf",
"title": "",
"contentType": "text/plain",
"contentEncoding": null,
"pathOnDisk": "__disk__98/59/78/985978b6ad99cf3aa7c64ae8672ef206596c7932",
"processed": false,
"processToken": null,
"imageWidth": null,
"imageHeight": null,
"size": 4514563,
"dateUploaded": "2016-09-21T17:33:14Z",
"originalMetadata": false,
"useForPreview": false,
"s3Object": null,
"checksum": {
"value": "68e69f7acdf8863c24c41e170439c6bd",
"type": "MD5"
},
"url": "https://www.sciencebase.gov/catalog/file/get/57d97341e4b090824ffb0e6f?f=__disk__98%2F59%2F78%2F985978b6ad99cf3aa7c64ae8672ef206596c7932"
},
{
"name": "model_lakes.prj",
"title": "",
"contentType": "text/plain",
"contentEncoding": null,
"pathOnDisk": "__disk__1e/b6/60/1eb66069032d913f5cb4e11981df915aaac30ee9",
"processed": false,
"processToken": null,
"imageWidth": null,
"imageHeight": null,
"size": 143,
"dateUploaded": "2016-09-21T17:33:00Z",
"originalMetadata": false,
"useForPreview": false,
"s3Object": null,
"checksum": {
"value": "e729936bf5360b37a15365fc295a1901",
"type": "MD5"
},
"url": "https://www.sciencebase.gov/catalog/file/get/57d97341e4b090824ffb0e6f?f=__disk__1e%2Fb6%2F60%2F1eb66069032d913f5cb4e11981df915aaac30ee9"
},
{
"name": "model_lakes.shp",
"title": "",
"contentType": "x-gis/x-shapefile",
"contentEncoding": null,
"pathOnDisk": "__disk__98/b6/d0/98b6d0c9d23acedcff1e100d2c000f0eeb1989da",
"processed": false,
"processToken": null,
"imageWidth": null,
"imageHeight": null,
"size": 14672824,
"dateUploaded": "2016-09-21T17:33:52Z",
"originalMetadata": false,
"useForPreview": false,
"s3Object": null,
"checksum": {
"value": "62e28a413faf5a462e56a00e399e62ce",
"type": "MD5"
},
"url": "https://www.sciencebase.gov/catalog/file/get/57d97341e4b090824ffb0e6f?f=__disk__98%2Fb6%2Fd0%2F98b6d0c9d23acedcff1e100d2c000f0eeb1989da"
},
{
"name": "model_lakes.shx",
"title": "",
"contentType": "x-gis/x-shapefile",
"contentEncoding": null,
"pathOnDisk": "__disk__b8/cc/a4/b8cca4e0eb80d7e29c015c4c70f92ee713b4e7f5",
"processed": false,
"processToken": null,
"imageWidth": null,
"imageHeight": null,
"size": 86292,
"dateUploaded": "2016-09-21T17:33:00Z",
"originalMetadata": false,
"useForPreview": false,
"s3Object": null,
"checksum": {
"value": "5fcc0a715c528bc406a5113b2e19f88a",
"type": "MD5"
},
"url": "https://www.sciencebase.gov/catalog/file/get/57d97341e4b090824ffb0e6f?f=__disk__b8%2Fcc%2Fa4%2Fb8cca4e0eb80d7e29c015c4c70f92ee713b4e7f5"
}
],
"nativeCrs": "EPSG:4326",
"geometryType": "MultiPolygon",
"className": "gov.sciencebase.catalog.item.facet.ShapefileFacet"
}
],
"files": [
{
"name": "lakes.xml",
"title": "",
"contentType": "application/fgdc+xml",
"contentEncoding": null,
"pathOnDisk": "__disk__39/d3/47/39d34798e98207b20ef2048d36045523e31fdde8",
"processed": false,
"processToken": null,
"imageWidth": null,
"imageHeight": null,
"size": 16697,
"dateUploaded": "2017-03-13T16:09:22Z",
"originalMetadata": true,
"useForPreview": false,
"s3Object": null,
"checksum": {
"value": "146dcfb91fdaa9ef0a41099c457119be",
"type": "MD5"
},
"url": "https://www.sciencebase.gov/catalog/file/get/57d97341e4b090824ffb0e6f?f=__disk__39%2Fd3%2F47%2F39d34798e98207b20ef2048d36045523e31fdde8"
}
],
"distributionLinks": [
{
"uri": "https://www.sciencebase.gov/catalogMaps/mapping/ows/57d97341e4b090824ffb0e6f?mode=download&request=kml&service=wms&layers=model_lakes",
"title": "KML Service",
"type": "kml",
"typeLabel": "KML Download",
"rel": "alternate",
"name": "",
"files": ""
},
{
"uri": "https://www.sciencebase.gov/catalogMaps/mapping/ows/57d97341e4b090824ffb0e6f?service=wms&request=getcapabilities&version=1.3.0",
"title": "ScienceBase WMS Service",
"type": "serviceCapabilitiesUrl",
"typeLabel": "OGC Service Capabilities URL",
"rel": "alternate",
"name": "",
"files": ""
},
{
"uri": "https://www.sciencebase.gov/catalogMaps/mapping/ows/57d97341e4b090824ffb0e6f?service=wfs&request=getcapabilities&version=1.0.0",
"title": "ScienceBase WFS Service",
"type": "serviceCapabilitiesUrl",
"typeLabel": "OGC Service Capabilities URL",
"rel": "alternate",
"name": "",
"files": ""
},
{
"uri": "https://www.sciencebase.gov/catalog/file/get/57d97341e4b090824ffb0e6f",
"title": "Download Attached Files",
"type": "downloadLink",
"typeLabel": "Download Link",
"rel": "alternate",
"name": "Spatialdata_Ala.zip",
"files": [
{
"name": "model_lakes.dbf",
"title": "",
"contentType": "text/plain"
},
{
"name": "model_lakes.prj",
"title": "",
"contentType": "text/plain"
},
{
"name": "model_lakes.shp",
"title": "",
"contentType": "x-gis/x-shapefile"
},
{
"name": "model_lakes.shx",
"title": "",
"contentType": "x-gis/x-shapefile"
},
{
"name": "lakes.xml",
"title": "",
"contentType": "application/fgdc+xml"
}
]
}
],
"previewImage": {
"from": "mapPreview",
"original": {
"uri": "https://www.sciencebase.gov/catalog/file/get/57d97341e4b090824ffb0e6f?f=__disk__34%2F43%2Fb4%2F3443b407c0be70132992bdebda1903c0a2dd10c6",
"viewUri": "https://www.sciencebase.gov/catalog/file/get/57d97341e4b090824ffb0e6f?f=__disk__34%2F43%2Fb4%2F3443b407c0be70132992bdebda1903c0a2dd10c6&width=360&height=240",
"viewUrl": "https://www.sciencebase.gov/catalog/file/get/57d97341e4b090824ffb0e6f?f=__disk__34%2F43%2Fb4%2F3443b407c0be70132992bdebda1903c0a2dd10c6&width=360&height=240",
"width": 360,
"height": 240,
"size": 175608
},
"thumbnail": {
"uri": "https://www.sciencebase.gov/catalog/file/get/57d97341e4b090824ffb0e6f?f=__disk__34%2F43%2Fb4%2F3443b407c0be70132992bdebda1903c0a2dd10c6&width=150&height=100",
"width": 150,
"height": 100
}
}
}
5 changes: 5 additions & 0 deletions test/fixtures/translates.yml
Original file line number Diff line number Diff line change
@@ -4,3 +4,8 @@ fgdc_to_iso:
file: files/USGSHydroCached.xml
reader: fgdc
writer: iso19115_3

sbjson_to_mdjson:
file: files/sbJson.json
reader: sbJson
writer: mdJson

0 comments on commit af5343c

Please sign in to comment.