-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added resource files for risk_processor unit tests...
- Loading branch information
1 parent
8120e86
commit eb930b0
Showing
31 changed files
with
5,137 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Binary file added
BIN
+478 KB
python/idsse_testing/risk_processor/binghamton/2022_12_23_17_00_BINGHAMTON_SNOW.nc
Binary file not shown.
132 changes: 132 additions & 0 deletions
132
python/idsse_testing/risk_processor/binghamton/criteria_binghamton_snow.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
{ | ||
"corrId": { | ||
"originator": "IDSSe", | ||
"uuid": "22222222-beec-467b-a0e6-9d215b715b97", | ||
"issueDt": "2022-12-23T12:00:00.000Z" | ||
}, | ||
"issueDt": "2022-12-23T12:00:00.000Z", | ||
"location": { | ||
"features": [ | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"name": "Location 1" | ||
}, | ||
"geometry": { | ||
"coordinates": [ | ||
[-75.82261820803978, 42.100751285762954], | ||
[-75.8383708354987, 42.10864014806441], | ||
[-75.84165263288575, 42.10883492237019], | ||
[-75.85005403419683, 42.1067897623133], | ||
[-75.85320455968883, 42.10756887868658], | ||
[-75.86081832962735, 42.10990617035307], | ||
[-75.86935100283405, 42.11010094076886], | ||
[-75.87473315054933, 42.11263290171084], | ||
[-75.88549744597924, 42.11535951576835], | ||
[-75.90741985252599, 42.11487262900434], | ||
[-75.91110962823032, 42.112191219739174], | ||
[-75.91482278268002, 42.111617354402284], | ||
[-75.93276969585565, 42.114601397417374], | ||
[-75.93741113891811, 42.11620813161767], | ||
[-75.94359972966832, 42.11919195849035], | ||
[-75.94545630689318, 42.11976575524366], | ||
[-75.9609277837683, 42.119650996309076], | ||
[-75.97392382434361, 42.120569061969576], | ||
[-75.97856530045271, 42.12045478019678], | ||
[-75.99682164316545, 42.11609384198053] | ||
], | ||
"type": "LineString" | ||
} | ||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"name": "Location 2" | ||
}, | ||
"geometry": { | ||
"coordinates": [ | ||
[-75.89888713596261, 42.177520971578645], | ||
[-75.89563812581969, 42.16740193106875], | ||
[-75.89811356211946, 42.15644975745005], | ||
[-75.89803620473538, 42.155016086565354], | ||
[-75.89664377181656, 42.151231039381315], | ||
[-75.89672112920069, 42.14928107825122], | ||
[-75.90174935918506, 42.14073495192076], | ||
[-75.90428874301112, 42.12926503403716], | ||
[-75.90475044884926, 42.125755168409285], | ||
[-75.90994463952903, 42.11873485376785], | ||
[-75.90971378660967, 42.117108084502036], | ||
[-75.90809781617592, 42.116080629764724], | ||
[-75.90498130176806, 42.11513878162259] | ||
], | ||
"type": "LineString" | ||
} | ||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"name": "Location 3" | ||
}, | ||
"geometry": { | ||
"coordinates": [ | ||
[-75.83457119675651, 42.167090721498084], | ||
[-75.8373414317859, 42.166064077510725], | ||
[-75.84357446060109, 42.16127285194375], | ||
[-75.84634469563048, 42.160417237769394], | ||
[-75.85107718047209, 42.16007498886057], | ||
[-75.85881075326135, 42.16127285194375], | ||
[-75.86631347313237, 42.16349739465042], | ||
[-75.87254650194754, 42.164267410442335], | ||
[-75.87473960467915, 42.16392518235833], | ||
[-75.88235775100927, 42.15981830096317], | ||
[-75.88397372144304, 42.15896266712116], | ||
[-75.88605139771495, 42.15673796498447], | ||
[-75.89274613236827, 42.145185369661306], | ||
[-75.8939003969639, 42.14415837025939], | ||
[-75.89563179385732, 42.14338810977449], | ||
[-75.90071055807739, 42.14218990817287] | ||
], | ||
"type": "LineString" | ||
} | ||
} | ||
] | ||
}, | ||
"validDt": [ | ||
{"start": "2022-12-23T12:00:00.000Z", "end": "2022-12-24T00:00:00.000Z"} | ||
], | ||
"conditions": [ | ||
{ | ||
"name": "Binghamton, Snow", | ||
"severity": "MODERATE", | ||
"combined": "A", | ||
"partsUsed": ["A"] | ||
} | ||
], | ||
"parts": [ | ||
{ | ||
"name": "A", | ||
"duration": 0, | ||
"arealPercentage": 0, | ||
"region": "CONUS", | ||
"product": { | ||
"fcst": ["NBM"] | ||
}, | ||
"field": "1 HR SNOWFALL", | ||
"units": "INCHES", | ||
"relational": "GREATER THAN OR EQUAL", | ||
"thresh": 0.01, | ||
"mapping": { | ||
"min": 0, | ||
"max": 3, | ||
"clip": "true" | ||
} | ||
} | ||
], | ||
"tags": { | ||
"values": [], | ||
"keyValues": { | ||
"name": "Binghamton, Snow", | ||
"nwsOffice": "BGM" | ||
} | ||
} | ||
} |
92 changes: 92 additions & 0 deletions
92
python/idsse_testing/risk_processor/binghamton/data_service_response_binghamton.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
{ | ||
"A:Raw": { | ||
"filenames": { | ||
"Deterministic": "/share/2022/12/23/NBM.AWS.GRIB/SNOW1HR/Inches/gridstore-907024368.nc" | ||
}, | ||
"issue_dt": "2022-12-23T12:00:00.000Z", | ||
"valid_dt": "2022-12-23T13:00:00.000Z", | ||
"proj_name": "NBM CONUS", | ||
"proj_spec": "+proj=lcc +lat_0=25.0 +lon_0=-95.0 +lat_1=25.0 +a=6371200", | ||
"grid_spec": "+dx=2539.703 +dy=2539.703 +w=400 +h=300 +lat_ll=39.3883615035761 +lon_ll=-82.17510536773516", | ||
"data_name": "Snowfall: 1hr accum (ASNOW)", | ||
"data_loc": "arn:aws:s3:::noaa-nbm-grib2-pds:", | ||
"units": "Inches", | ||
"region": "CONUS", | ||
"slice": "[1736:2136,762:1062]" | ||
}, | ||
"A:ThreatLevel": { | ||
"filenames": { | ||
"Deterministic": "/share/2022/12/23/NBM.AWS.GRIB/SNOW1HR.Criteria/ThreatLevel/gridstore-401831466.nc" | ||
}, | ||
"issue_dt": "2022-12-23T12:00:00.000Z", | ||
"valid_dt": "2022-12-23T13:00:00.000Z", | ||
"proj_name": "NBM CONUS", | ||
"proj_spec": "+proj=lcc +lat_0=25.0 +lon_0=-95.0 +lat_1=25.0 +a=6371200", | ||
"grid_spec": "+dx=2539.703 +dy=2539.703 +w=400 +h=300 +lat_ll=39.3883615035761 +lon_ll=-82.17510536773516", | ||
"data_name": "Snowfall: 1hr accum (ASNOW)", | ||
"data_loc": "arn:aws:s3:::noaa-nbm-grib2-pds:", | ||
"units": "ThreatLevel", | ||
"region": "CONUS", | ||
"slice": "[1736:2136,762:1062]" | ||
}, | ||
"Binghamton, Snow": { | ||
"filenames": { | ||
"Deterministic": "/share/2022/12/23/NBM.AWS.GRIB/Criteria/ThreatLevel/gridstore2098351630.nc" | ||
}, | ||
"issue_dt": "2022-12-23T12:00:00.000Z", | ||
"valid_dt": "2022-12-23T13:00:00.000Z", | ||
"proj_name": "NBM CONUS", | ||
"proj_spec": "+proj=lcc +lat_0=25.0 +lon_0=-95.0 +lat_1=25.0 +a=6371200", | ||
"grid_spec": "+dx=2539.703 +dy=2539.703 +w=400 +h=300 +lat_ll=39.3883615035761 +lon_ll=-82.17510536773516", | ||
"data_name": "Snowfall: 1hr accum (ASNOW)", | ||
"data_loc": "arn:aws:s3:::noaa-nbm-grib2-pds:", | ||
"units": "ThreatLevel", | ||
"region": "CONUS", | ||
"slice": "[1736:2136,762:1062]" | ||
}, | ||
"request": { | ||
"corrId": { | ||
"originator": "IDSSe", | ||
"uuid": "22222222-beec-467b-a0e6-9d215b715b97", | ||
"issueDt": "2022-12-23T12:00:00.000Z" | ||
}, | ||
"label": "Binghamton, Snow", | ||
"sourceType": "join", | ||
"sourceObj": { | ||
"join": "OR", | ||
"sources": [ | ||
{ | ||
"sourceType": "condition", | ||
"label": "A:ThreatLevel", | ||
"sourceObj": { | ||
"relational": "GREATER THAN OR EQUAL", | ||
"thresh": 0.01, | ||
"mapping": { | ||
"startWeight": [0, 1, 0], | ||
"endWeight": [0, 1, 0], | ||
"controlPoints": ["-Infinity", 0, 3, "Infinity"] | ||
}, | ||
"source": { | ||
"label": "A:Raw", | ||
"sourceType": "data", | ||
"sourceObj": { | ||
"product": "NBM", | ||
"field": "1 HR SNOWFALL", | ||
"region": "CONUS", | ||
"units": "INCHES", | ||
"sliceCoords": [ | ||
[-75.99682164316545, 42.100751285762954], | ||
[-75.82261820803978, 42.177520971578645] | ||
], | ||
"minSize": [400, 300], | ||
"minBuff": 50, | ||
"validDt": "2022-12-23T13:00:00.000Z", | ||
"issueDt": "2022-12-23T12:00:00.000Z" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
Oops, something went wrong.