Skip to content

Commit

Permalink
IMS request unit test data
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhamer-noaa committed Jun 24, 2024
1 parent eb930b0 commit 9bfb045
Show file tree
Hide file tree
Showing 7 changed files with 607 additions and 0 deletions.
80 changes: 80 additions & 0 deletions python/idsse_testing/ims_request/ims_test_1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"profiles": [
{
"id": "fd35adec-d2a0-49a9-a320-df20a7b6d681",
"name": "GSL Test 1",
"associatedOfficeId": "GSL",
"profileType": "LIMITED_EPISODIC",
"lifecycleStatus": "UNDEF",
"submissionStatus": "APPROVED",
"setting": {
"id": "09acfa26-c2b4-4b8f-8dc8-8c9afc7c66e0",
"name": "Missoula",
"driverType": "EVENT",
"locations": [
{
"createdAt": "2024-01-26T19:07:33.559672Z",
"creationMethod": "DRAWPOINT",
"editable": true,
"original": null,
"address": null,
"geometryType": "POINT",
"minElevation": 4124,
"maxElevation": 4124,
"lastModified": "2024-01-26T19:07:33.559675Z",
"name": "Missoula",
"notes": "",
"userData": null,
"validTime": null,
"geoShapeCreationMethod": "DRAWPOINT",
"geomAsString": "POINT (-113.9595 46.8571)"
}
],
"timing": {
"start": null,
"duration": 0,
"rrule": ""
},
"nationalSecurity": false,
"website": "",
"numberOfPeople": 1
},
"impacts": [],
"nonImpactThresholds": {
"phrasesForAllSeverities": {
"MINOR": {
"severity": "MINOR",
"encodedRepresentation": "A",
"map": {
"A": {
"type": "TYPE_AND_THRESH",
"phraseId": "A",
"probability": 0,
"environmentalConditionType": "COLD",
"wwaProduct": "UNDEF",
"condition": "LESS_THAN",
"value": "32",
"timeFrame": "PT0S",
"minDuration": "PT0S",
"units": "DEG_F",
"dataSource": "",
"dataParameter": ""
}
}
}
},
"allTypesAsStrings": [
"COLD"
]
},
"maxLeadTime": 168,
"isLive": true,
"requestedServices": [],
"timeBuffer": 0,
"geoBuffer": 5.0,
"profileLevelActionPlans": [],
"maxLeadTimeAsString": "7 d"
}
],
"errors": []
}
1 change: 1 addition & 0 deletions python/idsse_testing/ims_request/ims_test_1_criteria.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"corrId": {"originator": "IMS", "uuid": "fd35adec-d2a0-49a9-a320-df20a7b6d681", "issueDt": "2024-01-02T03:00:00.000Z"}, "location": {"features": [{"geometry": {"coordinates": [-113.9595, 46.8571], "type": "Point"}, "properties": {"name": "Missoula"}, "type": "Feature"}]}, "validDt": ["2024-01-02T15:00:00.000Z", "2024-01-02T16:00:00.000Z"], "conditions": [{"name": "Minor", "severity": "MINOR", "combined": "A", "partsUsed": ["A"]}], "parts": [{"name": "A", "duration": 0, "arealPercentage": 0, "region": "CONUS", "product": {"fcst": ["NBM"]}, "field": "TEMP", "units": "DEG_F", "relational": "LESS_THAN", "thresh": 32, "mapping": {"min": 17, "max": 47, "clip": "true"}}], "tags": {"values": [], "keyValues": {"name": "GSL Test 1", "nwsOffice": "GSL"}}}
97 changes: 97 additions & 0 deletions python/idsse_testing/ims_request/ims_test_2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
{
"profiles": [
{
"id": "a08370c6-ab87-4808-bd51-a8597e58410d",
"name": "GSL Test 2",
"associatedOfficeId": "GSL",
"profileType": "LIMITED_EPISODIC",
"lifecycleStatus": "UNDEF",
"submissionStatus": "APPROVED",
"setting": {
"id": "26a6700e-f745-40f1-8a71-53784ba6d1fb",
"name": "Helena",
"driverType": "EVENT",
"locations": [
{
"createdAt": "2024-01-26T19:42:09.602830Z",
"creationMethod": "DRAWPOLY",
"editable": true,
"original": null,
"address": null,
"geometryType": "POLYGON",
"minElevation": 3768,
"maxElevation": 7159,
"lastModified": "2024-01-26T19:42:09.602836Z",
"name": "Helena",
"notes": "",
"userData": null,
"validTime": null,
"geoShapeCreationMethod": "DRAWPOLY",
"geomAsString": "POLYGON ((-112.3037 46.6939, -112.116 46.8181, -111.7694 46.8181, -111.6377 46.6686, -111.6768 46.4775, -111.9862 46.3613, -112.2837 46.5134, -112.3037 46.6939))"
}
],
"timing": {
"start": null,
"duration": 0,
"rrule": ""
},
"nationalSecurity": false,
"website": "",
"numberOfPeople": 2
},
"impacts": [],
"nonImpactThresholds": {
"phrasesForAllSeverities": {
"MODERATE": {
"severity": "MODERATE",
"encodedRepresentation": "A AND B",
"map": {
"A": {
"type": "TYPE_AND_THRESH",
"phraseId": "A",
"probability": null,
"environmentalConditionType": "COLD",
"wwaProduct": "UNDEF",
"condition": "LESS_THAN_OR_EQUAL_TO",
"value": "40",
"timeFrame": "PT0S",
"minDuration": "PT0S",
"units": "DEG_F",
"dataSource": "",
"dataParameter": ""
},
"B": {
"type": "TYPE_AND_THRESH",
"phraseId": "B",
"probability": null,
"environmentalConditionType": "WINDSPD",
"wwaProduct": "UNDEF",
"condition": "GREATER_THAN",
"value": "10",
"timeFrame": "PT0S",
"minDuration": "PT0S",
"units": "MPH",
"dataSource": "",
"dataParameter": ""
}
}
}
},
"allTypesAsStrings": [
"WINDSPD",
"COLD"
]
},
"maxLeadTime": 168,
"isLive": true,
"requestedServices": [
"AUTO_STATUS_SPECIFIC"
],
"timeBuffer": 0,
"geoBuffer": 10.0,
"profileLevelActionPlans": [],
"maxLeadTimeAsString": "7 d"
}
],
"errors": []
}
142 changes: 142 additions & 0 deletions python/idsse_testing/ims_request/ims_test_3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
{
"profiles": [
{
"id": "e1033860-f198-4c6a-a91b-beaec905132f",
"name": "GSL Test 3",
"associatedOfficeId": "GSL",
"profileType": "LIMITED_EPISODIC",
"lifecycleStatus": "UNDEF",
"submissionStatus": "APPROVED",
"setting": {
"id": "989d35f8-3991-4438-adb0-c24d8bf1f449",
"name": "I-80 WY",
"driverType": "EVENT",
"locations": [
{
"createdAt": "2024-01-26T20:33:08.274198Z",
"creationMethod": "DRAWLINE",
"editable": true,
"original": null,
"address": null,
"geometryType": "POLYLINE",
"minElevation": 5393,
"maxElevation": 7759,
"lastModified": "2024-01-26T20:33:08.274202Z",
"name": "I-80 WY",
"notes": "",
"userData": null,
"validTime": null,
"geoShapeCreationMethod": "DRAWLINE",
"geomAsString": "LINESTRING (-111.0202 41.1361, -109.7672 41.557, -108.0818 41.662, -106.8992 41.7286, -105.2465 41.1077, -104.0862 41.1633)"
}
],
"timing": {
"start": null,
"duration": 0,
"rrule": ""
},
"nationalSecurity": false,
"website": "",
"numberOfPeople": 3
},
"impacts": [],
"nonImpactThresholds": {
"phrasesForAllSeverities": {
"MINOR": {
"severity": "MINOR",
"encodedRepresentation": "A",
"map": {
"A": {
"type": "TYPE_AND_THRESH",
"phraseId": "A",
"probability": 0,
"environmentalConditionType": "WINDGST",
"wwaProduct": "UNDEF",
"condition": "GREATER_THAN_OR_EQUAL_TO",
"value": "10",
"timeFrame": "PT0S",
"minDuration": "PT0S",
"units": "MPH",
"dataSource": "",
"dataParameter": ""
}
}
},
"SEVERE": {
"severity": "SEVERE",
"encodedRepresentation": "A",
"map": {
"A": {
"type": "TYPE_AND_THRESH",
"phraseId": "A",
"probability": 0,
"environmentalConditionType": "WINDGST",
"wwaProduct": "UNDEF",
"condition": "GREATER_THAN_OR_EQUAL_TO",
"value": "50",
"timeFrame": "PT0S",
"minDuration": "PT0S",
"units": "MPH",
"dataSource": "",
"dataParameter": ""
}
}
},
"EXTREME": {
"severity": "EXTREME",
"encodedRepresentation": "A",
"map": {
"A": {
"type": "TYPE_AND_THRESH",
"phraseId": "A",
"probability": 0,
"environmentalConditionType": "WINDGST",
"wwaProduct": "UNDEF",
"condition": "GREATER_THAN_OR_EQUAL_TO",
"value": "70",
"timeFrame": "PT0S",
"minDuration": "PT0S",
"units": "MPH",
"dataSource": "",
"dataParameter": ""
}
}
},
"MODERATE": {
"severity": "MODERATE",
"encodedRepresentation": "A",
"map": {
"A": {
"type": "TYPE_AND_THRESH",
"phraseId": "A",
"probability": 0,
"environmentalConditionType": "WINDGST",
"wwaProduct": "UNDEF",
"condition": "GREATER_THAN_OR_EQUAL_TO",
"value": "30",
"timeFrame": "PT0S",
"minDuration": "PT0S",
"units": "MPH",
"dataSource": "",
"dataParameter": ""
}
}
}
},
"allTypesAsStrings": [
"WINDGST"
]
},
"maxLeadTime": 168,
"isLive": true,
"requestedServices": [
"AUTO_COMPREHENSIVE_SPECIFIC"
],
"timeBuffer": 0,
"geoBuffer": 3.0,
"profileLevelActionPlans": [],
"maxLeadTimeAsString": "7 d"
}
],
"errors": []
}
Loading

0 comments on commit 9bfb045

Please sign in to comment.