diff --git a/python/idsse/testing/risk_processor/binghamton/criteria_binghamton_snow.json b/python/idsse/testing/risk_processor/binghamton/criteria_binghamton_snow.json index c3ba572..2b0e51a 100644 --- a/python/idsse/testing/risk_processor/binghamton/criteria_binghamton_snow.json +++ b/python/idsse/testing/risk_processor/binghamton/criteria_binghamton_snow.json @@ -111,7 +111,7 @@ "product": { "fcst": ["NBM"] }, - "field": "1 HR SNOWFALL", + "field": "SNOW:1HR", "units": "INCHES", "relational": "GREATER THAN OR EQUAL", "thresh": 0.01, diff --git a/python/idsse/testing/risk_processor/binghamton/data_service_response_binghamton.json b/python/idsse/testing/risk_processor/binghamton/data_service_response_binghamton.json index f95bc0c..26c6ed8 100644 --- a/python/idsse/testing/risk_processor/binghamton/data_service_response_binghamton.json +++ b/python/idsse/testing/risk_processor/binghamton/data_service_response_binghamton.json @@ -1,6 +1,7 @@ { "A:Raw": { "filenames": { + "dtrm": "/share/2022/12/23/NBM.AWS.GRIB/SNOW1HR/Inches/gridstore-907024368.nc", "Deterministic": "/share/2022/12/23/NBM.AWS.GRIB/SNOW1HR/Inches/gridstore-907024368.nc" }, "issue_dt": "2022-12-23T12:00:00.000Z", @@ -16,6 +17,7 @@ }, "A:ThreatLevel": { "filenames": { + "dtrm": "/share/2022/12/23/NBM.AWS.GRIB/SNOW1HR.Criteria/ThreatLevel/gridstore-401831466.nc", "Deterministic": "/share/2022/12/23/NBM.AWS.GRIB/SNOW1HR.Criteria/ThreatLevel/gridstore-401831466.nc" }, "issue_dt": "2022-12-23T12:00:00.000Z", @@ -31,6 +33,7 @@ }, "Binghamton, Snow": { "filenames": { + "dtrm": "/share/2022/12/23/NBM.AWS.GRIB/Criteria/ThreatLevel/gridstore2098351630.nc", "Deterministic": "/share/2022/12/23/NBM.AWS.GRIB/Criteria/ThreatLevel/gridstore2098351630.nc" }, "issue_dt": "2022-12-23T12:00:00.000Z", diff --git a/python/idsse/testing/risk_processor/i87/data_service_condition_response_i87.json b/python/idsse/testing/risk_processor/i87/data_service_condition_response_i87.json index 8ae21fa..f93a99d 100644 --- a/python/idsse/testing/risk_processor/i87/data_service_condition_response_i87.json +++ b/python/idsse/testing/risk_processor/i87/data_service_condition_response_i87.json @@ -1,7 +1,8 @@ { "A:Raw": { "filenames": { - "Deterministic": "/share/2022/12/23/NBM.AWS.GRIB/TEMP/Fahrenheit/gridstore-1492124782.nc" + "dtrm": "/share/2022/12/23/NBM.AWS.GRIB/TEMP/Fahrenheit/gridstore-1492124782.nc", + "Deterministic": "/share/2022/12/23/NBM.AWS.GRIB/TEMP/Fahrenheit/gridstore-1492124782.nc" }, "issue_dt": "2022-12-23T12:00:00.000Z", "valid_dt": "2022-12-23T13:00:00.000Z", @@ -16,7 +17,8 @@ }, "A:ThreatLevel": { "filenames": { - "Deterministic": "/share/2022/12/23/NBM.AWS.GRIB/TEMP.Criteria/ThreatLevel/gridstore1698359448.nc" + "dtrm": "/share/2022/12/23/NBM.AWS.GRIB/TEMP.Criteria/ThreatLevel/gridstore1698359448.nc", + "Deterministic": "/share/2022/12/23/NBM.AWS.GRIB/TEMP.Criteria/ThreatLevel/gridstore1698359448.nc" }, "issue_dt": "2022-12-23T12:00:00.000Z", "valid_dt": "2022-12-23T13:00:00.000Z", @@ -31,7 +33,8 @@ }, "B:Raw": { "filenames": { - "Deterministic": "/share/2022/12/23/NBM.AWS.GRIB/RAIN1HR/Inches/gridstore1563243851.nc" + "dtrm": "/share/2022/12/23/NBM.AWS.GRIB/RAIN1HR/Inches/gridstore1563243851.nc", + "Deterministic": "/share/2022/12/23/NBM.AWS.GRIB/RAIN1HR/Inches/gridstore1563243851.nc" }, "issue_dt": "2022-12-23T12:00:00.000Z", "valid_dt": "2022-12-23T13:00:00.000Z", @@ -46,7 +49,8 @@ }, "B:ThreatLevel": { "filenames": { - "Deterministic": "/share/2022/12/23/NBM.AWS.GRIB/RAIN1HR.Criteria/ThreatLevel/gridstore-85065583.nc" + "dtrm": "/share/2022/12/23/NBM.AWS.GRIB/RAIN1HR.Criteria/ThreatLevel/gridstore-85065583.nc", + "Deterministic": "/share/2022/12/23/NBM.AWS.GRIB/RAIN1HR.Criteria/ThreatLevel/gridstore-85065583.nc" }, "issue_dt": "2022-12-23T12:00:00.000Z", "valid_dt": "2022-12-23T13:00:00.000Z", @@ -60,19 +64,20 @@ "data_loc": "arn:aws:s3:::noaa-nbm-grib2-pds:" }, "I-87, Albany-Nyack, Icy Roads": { - "filenames": { - "Deterministic": "/share/2022/12/23/NBM.AWS.GRIB/Criteria/ThreatLevel/gridstore-2042697837.nc" - }, - "issue_dt": "2022-12-23T12:00:00.000Z", - "valid_dt": "2022-12-23T13:00:00.000Z", - "proj_name": "NBM", - "region": "CONUS", - "slice": "[1801:2201,746:1046]", - "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=38.890989440701716 +lon_ll=-80.37708064973489", - "units": "ThreatLevel", - "data_name": "AND(Temperature: 2m (Ensemble mean), Rainfall: 1hr accum (APCP))", - "data_loc": "arn:aws:s3:::noaa-nbm-grib2-pds:" + "filenames": { + "dtrm": "/share/2022/12/23/NBM.AWS.GRIB/Criteria/ThreatLevel/gridstore-2042697837.nc", + "Deterministic": "/share/2022/12/23/NBM.AWS.GRIB/Criteria/ThreatLevel/gridstore-2042697837.nc" + }, + "issue_dt": "2022-12-23T12:00:00.000Z", + "valid_dt": "2022-12-23T13:00:00.000Z", + "proj_name": "NBM", + "region": "CONUS", + "slice": "[1801:2201,746:1046]", + "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=38.890989440701716 +lon_ll=-80.37708064973489", + "units": "ThreatLevel", + "data_name": "AND(Temperature: 2m (Ensemble mean), Rainfall: 1hr accum (APCP))", + "data_loc": "arn:aws:s3:::noaa-nbm-grib2-pds:" }, "request": { "corrId": { diff --git a/python/idsse/testing/risk_processor/percentiles/criteria_binghamton_snow.json b/python/idsse/testing/risk_processor/percentiles/criteria_binghamton_snow.json new file mode 100644 index 0000000..b6f04b1 --- /dev/null +++ b/python/idsse/testing/risk_processor/percentiles/criteria_binghamton_snow.json @@ -0,0 +1,66 @@ +{ + "corrId": { + "originator": "IDSSe", + "uuid": "22222222-beec-467b-a0e6-9d215b71f93c", + "issueDt": "2025-01-28T12:00:00.000Z" + }, + "issueDt": "2025-01-28T12:00:00.000Z", + "location": { + "features": [ + { + "type": "Feature", + "properties": { + "name": "Location 1" + }, + "geometry": { + "coordinates": [ + [-75.82261820803978, 42.100751285762954], + [-75.8383708354987, 42.10864014806441], + [-75.97392382434361, 42.120569061969576], + [-75.97856530045271, 42.12045478019678], + [-75.99682164316545, 42.11609384198053] + ], + "type": "LineString" + } + } + ] + }, + "validDt": [ + { "start": "2025-01-28T13:00:00.000Z", "end": "2025-01-28T15: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": "SNOW:1HR", + "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" + } + } +} diff --git a/python/idsse/testing/risk_processor/percentiles/data_service_percentiles_request.json b/python/idsse/testing/risk_processor/percentiles/data_service_percentiles_request.json new file mode 100644 index 0000000..7e5920b --- /dev/null +++ b/python/idsse/testing/risk_processor/percentiles/data_service_percentiles_request.json @@ -0,0 +1,45 @@ +{ + "corrId": { + "originator": "IDSSe", + "uuid": "22222222-beec-467b-a0e6-9d215b71f93c", + "issueDt": "2025-01-28T12: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": "SNOW:1HR.[DTRM,p090]", + "region": "CONUS", + "units": "INCHES", + "sliceCoords": [ + [-75.99682164316545, 42.100751285762954], + [-75.82261820803978, 42.120569061969576] + ], + "minSize": [400, 300], + "minBuff": 50, + "validDt": "2025-01-28T13:00:00.000Z", + "issueDt": "2025-01-28T12:00:00.000Z" + } + } + } + } + ] + } +} diff --git a/python/idsse/testing/risk_processor/percentiles/data_service_percentiles_response.json b/python/idsse/testing/risk_processor/percentiles/data_service_percentiles_response.json new file mode 100644 index 0000000..f237132 --- /dev/null +++ b/python/idsse/testing/risk_processor/percentiles/data_service_percentiles_response.json @@ -0,0 +1,99 @@ +{ + "A:Raw": { + "filenames": { + "dtrm": "/share/2025/01/28/NBM.AWS.GRIB/CONUS/SNOW:1HR.DTRM/Inches/gridstore-1703650835.nc", + "prctl_p090": "/share/2025/01/28/NBM.AWS.GRIB/CONUS/SNOW:1HR.PRCTL_p090/Inches/gridstore-1767335105.nc", + "Deterministic": "/share/2025/01/28/NBM.AWS.GRIB/CONUS/SNOW:1HR.DTRM/Inches/gridstore-1703650835.nc" + }, + "issue_dt": "2025-01-28T12:00:00.000Z", + "valid_dt": "2025-01-28T13:00:00.000Z", + "proj_name": "NBM CONUS", + "proj_spec": "+proj=lcc +lat_0=25.0 +lon_0=265.0 +lat_1=25.0 +a=6371200", + "grid_spec": "+dx=2539.703 +dy=2539.703 +w=400 +h=300 +lat_ll=39.34437029433046 +lon_ll=-82.18050311441138", + "product": "NBM.AWS.GRIB", + "data_name": "Snowfall: 1HR accum (ASNOW)", + "data_loc": "arn:aws:s3:::noaa-nbm-grib2-pds:", + "units": "Inches", + "region": "CONUS", + "slice": "[1736:2136,760:1060]" + }, + "A:ThreatLevel": { + "filenames": { + "dtrm": "/share/2025/01/28/NBM.AWS.GRIB/CONUS/SNOW:1HR/ThreatLevel/gridstore1215459922.nc", + "prctl_p090": "/share/2025/01/28/NBM.AWS.GRIB/CONUS/SNOW:1HR/ThreatLevel/gridstore1474886692.nc", + "Deterministic": "/share/2025/01/28/NBM.AWS.GRIB/CONUS/SNOW:1HR/ThreatLevel/gridstore1215459922.nc" + }, + "issue_dt": "2025-01-28T12:00:00.000Z", + "valid_dt": "2025-01-28T13:00:00.000Z", + "proj_name": "NBM CONUS", + "proj_spec": "+proj=lcc +lat_0=25.0 +lon_0=265.0 +lat_1=25.0 +a=6371200", + "grid_spec": "+dx=2539.703 +dy=2539.703 +w=400 +h=300 +lat_ll=39.34437029433046 +lon_ll=-82.18050311441138", + "product": "NBM.AWS.GRIB", + "data_name": "Snowfall: 1HR accum (ASNOW)", + "data_loc": "arn:aws:s3:::noaa-nbm-grib2-pds:", + "units": "ThreatLevel", + "region": "CONUS", + "slice": "[1736:2136,760:1060]" + }, + "Binghamton, Snow": { + "filenames": { + "multi": "/share/2025/01/28/NBM.AWS.GRIB/CONUS/CRITERIA.DTRM/ThreatLevel/gridstore-1728425781.nc" + }, + "issue_dt": "2025-01-28T12:00:00.000Z", + "valid_dt": "2025-01-28T13:00:00.000Z", + "proj_name": "NBM CONUS", + "proj_spec": "+proj=lcc +lat_0=25.0 +lon_0=265.0 +lat_1=25.0 +a=6371200", + "grid_spec": "+dx=2539.703 +dy=2539.703 +w=400 +h=300 +lat_ll=39.34437029433046 +lon_ll=-82.18050311441138", + "product": "NBM.AWS.GRIB", + "data_name": "OR(Snowfall: 1HR accum (ASNOW), Snowfall: 1HR accum (ASNOW), Snowfall: 1HR accum (ASNOW))", + "data_loc": "arn:aws:s3:::noaa-nbm-grib2-pds:", + "units": "ThreatLevel", + "region": "CONUS", + "slice": "[1736:2136,760:1060]" + }, + "request": { + "corrId": { + "originator": "IDSSe", + "uuid": "22222222-beec-467b-a0e6-9d215b71f93c", + "issueDt": "2025-01-28T12: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": "SNOW:1HR.[DTRM,p090]", + "region": "CONUS", + "units": "INCHES", + "sliceCoords": [ + [-75.99682164316545, 42.100751285762954], + [-75.82261820803978, 42.120569061969576] + ], + "minSize": [400, 300], + "minBuff": 50, + "validDt": "2025-01-28T13:00:00.000Z", + "issueDt": "2025-01-28T12:00:00.000Z" + } + } + } + } + ] + } + } +} diff --git a/python/idsse/testing/risk_processor/percentiles/event_portfolio_percentiles.json b/python/idsse/testing/risk_processor/percentiles/event_portfolio_percentiles.json new file mode 100644 index 0000000..bcf6dab --- /dev/null +++ b/python/idsse/testing/risk_processor/percentiles/event_portfolio_percentiles.json @@ -0,0 +1,263 @@ +{ + "corrId": { + "originator": "IDSSe", + "uuid": "22222222-beec-467b-a0e6-9d215b71f93c", + "issueDt": "2025-01-28T12:00:00.000Z" + }, + "issueDt": "2025-01-28T12:00:00.000Z", + "location": { + "features": [ + { + "type": "Feature", + "properties": { "name": "Location 1" }, + "geometry": { + "coordinates": [ + [-75.82261820803978, 42.100751285762954], + [-75.8383708354987, 42.10864014806441], + [-75.97392382434361, 42.120569061969576], + [-75.97856530045271, 42.12045478019678], + [-75.99682164316545, 42.11609384198053] + ], + "type": "LineString" + } + } + ] + }, + "validDt": [ + { "start": "2025-01-28T13:00:00.000Z", "end": "2025-01-28T15: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": "SNOW:1HR", + "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" } + }, + "riskResults": [ + { + "evaluatedAt": "2025-02-07T21:03:03.610Z", + "conditionKey": "Binghamton, Snow", + "productKey": "NBM CONUS", + "region": "CONUS", + "slice": "[1736:2136,760:1060]", + "locationKey": "Location 1", + "dataSummary": [ + { + "validDt": [ + "2025-01-28T13:00:00.000Z", + "2025-01-28T14:00:00.000Z", + "2025-01-28T15:00:00.000Z" + ], + "data": [ + { + "name": "Binghamton, Snow", + "type": "condition", + "validDt": [ + "2025-01-28T13:00:00.000Z", + "2025-01-28T14:00:00.000Z", + "2025-01-28T15:00:00.000Z" + ], + "singleValue": [0.04, -1.0, -1.0], + "geoDist": [ + { "-1.0": 4, "0.04": 3 }, + { "-1.0": 7 }, + { "-1.0": 7 } + ], + "dataType": "multi" + }, + { + "name": "A", + "type": "criteria", + "validDt": [ + "2025-01-28T13:00:00.000Z", + "2025-01-28T14:00:00.000Z", + "2025-01-28T15:00:00.000Z" + ], + "singleValue": [-1.0, -1.0, -1.0], + "geoDist": [{ "-1.0": 7 }, { "-1.0": 7 }, { "-1.0": 7 }], + "dataType": "dtrm" + }, + { + "name": "A", + "type": "criteria", + "validDt": [ + "2025-01-28T13:00:00.000Z", + "2025-01-28T14:00:00.000Z", + "2025-01-28T15:00:00.000Z" + ], + "singleValue": [0.04, -1.0, -1.0], + "geoDist": [ + { "-1.0": 4, "0.04": 3 }, + { "-1.0": 7 }, + { "-1.0": 7 } + ], + "dataType": "prctl_p090" + }, + { + "name": "A", + "type": "raw", + "validDt": [ + "2025-01-28T13:00:00.000Z", + "2025-01-28T14:00:00.000Z", + "2025-01-28T15:00:00.000Z" + ], + "singleValue": [0.0, 0.0, 0.0], + "geoDist": [{ "0.0": 7 }, { "0.0": 7 }, { "0.0": 7 }], + "dataType": "dtrm" + }, + { + "name": "A", + "type": "raw", + "validDt": [ + "2025-01-28T13:00:00.000Z", + "2025-01-28T14:00:00.000Z", + "2025-01-28T15:00:00.000Z" + ], + "singleValue": [0.12, 0.0, 0.0], + "geoDist": [{ "0.0": 4, "0.12": 3 }, { "0.0": 7 }, { "0.0": 7 }], + "dataType": "prctl_p090" + } + ] + } + ], + "dataDescript": [ + { + "partName": "A", + "productName": "NBM CONUS", + "dataName": "Snowfall: 1HR accum (ASNOW)", + "dataLocation": "arn:aws:s3:::noaa-nbm-grib2-pds:", + "issueDt": "2025-01-28T12:00:00.000Z" + } + ], + "metaData": [ + { + "name": "Binghamton, Snow", + "type": "condition", + "dataType": "multi", + "proximalThresh": -0.5, + "states": [ + { + "durationInMin": 2, + "min": 0.0, + "minAt": "2025-01-28T13:02:18.462Z", + "max": 0.04, + "startDt": "2025-01-28T13:00:00.000Z", + "endDt": "2025-01-28T13:02:18.462Z", + "maxAt": "2025-01-28T13:00:00.000Z", + "empirical": "HIT", + "geographical": "HIT", + "temporal": "HIT" + }, + { + "durationInMin": 29, + "min": -0.5, + "minAt": "2025-01-28T13:31:09.231Z", + "max": 0.0, + "startDt": "2025-01-28T13:02:18.462Z", + "endDt": "2025-01-28T13:31:09.231Z", + "maxAt": "2025-01-28T13:02:18.462Z", + "empirical": "PROXIMAL", + "geographical": "HIT", + "temporal": "HIT" + }, + { + "durationInMin": 89, + "min": -1.0, + "minAt": "2025-01-28T14:00:00.000Z", + "max": -0.5, + "startDt": "2025-01-28T13:31:09.231Z", + "endDt": "2025-01-28T15:00:00.000Z", + "maxAt": "2025-01-28T13:31:09.231Z", + "empirical": "MISS", + "geographical": "HIT", + "temporal": "HIT" + } + ] + }, + { + "name": "A", + "type": "criteria", + "dataType": "dtrm", + "proximalThresh": -0.5, + "states": [ + { + "durationInMin": 120, + "min": -1.0, + "minAt": "2025-01-28T13:00:00.000Z", + "max": -1.0, + "startDt": "2025-01-28T13:00:00.000Z", + "endDt": "2025-01-28T15:00:00.000Z", + "maxAt": "2025-01-28T13:00:00.000Z", + "empirical": "MISS", + "geographical": "HIT", + "temporal": "HIT" + } + ] + }, + { + "name": "A", + "type": "criteria", + "dataType": "prctl_p090", + "proximalThresh": -0.5, + "states": [ + { + "durationInMin": 2, + "min": 0.0, + "minAt": "2025-01-28T13:02:18.462Z", + "max": 0.04, + "startDt": "2025-01-28T13:00:00.000Z", + "endDt": "2025-01-28T13:02:18.462Z", + "maxAt": "2025-01-28T13:00:00.000Z", + "empirical": "HIT", + "geographical": "HIT", + "temporal": "HIT" + }, + { + "durationInMin": 29, + "min": -0.5, + "minAt": "2025-01-28T13:31:09.231Z", + "max": 0.0, + "startDt": "2025-01-28T13:02:18.462Z", + "endDt": "2025-01-28T13:31:09.231Z", + "maxAt": "2025-01-28T13:02:18.462Z", + "empirical": "PROXIMAL", + "geographical": "HIT", + "temporal": "HIT" + }, + { + "durationInMin": 89, + "min": -1.0, + "minAt": "2025-01-28T14:00:00.000Z", + "max": -0.5, + "startDt": "2025-01-28T13:31:09.231Z", + "endDt": "2025-01-28T15:00:00.000Z", + "maxAt": "2025-01-28T13:31:09.231Z", + "empirical": "MISS", + "geographical": "HIT", + "temporal": "HIT" + } + ] + } + ] + } + ] +} diff --git a/python/idsse/testing/risk_processor/simple/data_service_condition_response_single_temp.json b/python/idsse/testing/risk_processor/simple/data_service_condition_response_single_temp.json index 7d841fa..9419c22 100644 --- a/python/idsse/testing/risk_processor/simple/data_service_condition_response_single_temp.json +++ b/python/idsse/testing/risk_processor/simple/data_service_condition_response_single_temp.json @@ -1,97 +1,100 @@ { - "Abq TEMP": { - "filenames": { - "Deterministic": "/share/2022/11/11/NBM.AWS.GRIB/TEMP.Criteria/ThreatLevel/gridstore-1825711489.nc" - }, - "grid_spec": "+dx=2539.703 +dy=2539.703 +w=400 +h=300 +lat_ll=31.177375065798472 +lon_ll=-111.5741153608759", - "issue_dt": "2022-11-11T13:00:00.000Z", - "proj_name": "NBM", - "region": "CONUS", - "slice": "[665:1065,413:813]", - "proj_spec": "+proj=lcc +lat_0=25.0 +lon_0=-95.0 +lat_1=25.0 +a=6371200", - "units": "ThreatLevel", - "data_name": "Temperature: 2m", - "data_loc": "arn:aws:s3:::noaa-nbm-grib2-pds", - "valid_dt": "2022-11-12T00:00:00.000Z" + "Abq TEMP": { + "filenames": { + "dtrm": "/share/2022/11/11/NBM.AWS.GRIB/TEMP.Criteria/ThreatLevel/gridstore-1825711489.nc", + "Deterministic": "/share/2022/11/11/NBM.AWS.GRIB/TEMP.Criteria/ThreatLevel/gridstore-1825711489.nc" }, - "A:ThreatLevel": { - "filenames": { - "Deterministic": "/share/2022/11/11/NBM.AWS.GRIB/TEMP.Criteria/ThreatLevel/gridstore-278843281.nc" - }, - "grid_spec": "+dx=2539.703 +dy=2539.703 +w=400 +h=300 +lat_ll=31.177375065798472 +lon_ll=-111.5741153608759", - "issue_dt": "2022-11-11T13:00:00.000Z", - "proj_name": "NBM", - "region": "CONUS", - "slice": "[665:1065,413:813]", - "proj_spec": "+proj=lcc +lat_0=25.0 +lon_0=-95.0 +lat_1=25.0 +a=6371200", - "units": "ThreatLevel", - "data_name": "Temperature: 2m", - "data_loc": "arn:aws:s3:::noaa-nbm-grib2-pds", - "valid_dt": "2022-11-12T00:00:00.000Z" + "grid_spec": "+dx=2539.703 +dy=2539.703 +w=400 +h=300 +lat_ll=31.177375065798472 +lon_ll=-111.5741153608759", + "issue_dt": "2022-11-11T13:00:00.000Z", + "proj_name": "NBM", + "region": "CONUS", + "slice": "[665:1065,413:813]", + "proj_spec": "+proj=lcc +lat_0=25.0 +lon_0=-95.0 +lat_1=25.0 +a=6371200", + "units": "ThreatLevel", + "data_name": "Temperature: 2m", + "data_loc": "arn:aws:s3:::noaa-nbm-grib2-pds", + "valid_dt": "2022-11-12T00:00:00.000Z" + }, + "A:ThreatLevel": { + "filenames": { + "dtrm": "/share/2022/11/11/NBM.AWS.GRIB/TEMP.Criteria/ThreatLevel/gridstore-1825711489.nc", + "Deterministic": "/share/2022/11/11/NBM.AWS.GRIB/TEMP.Criteria/ThreatLevel/gridstore-278843281.nc" }, - "A:Raw": { - "filenames": { - "Deterministic": "/share/2022/11/11/NBM.AWS.GRIB/TEMP/Fahrenheit/gridstore765661987.nc" - }, - "grid_spec": "+dx=2539.703 +dy=2539.703 +w=400 +h=300 +lat_ll=31.177375065798472 +lon_ll=-111.5741153608759", - "issue_dt": "2022-11-11T13:00:00.000Z", - "proj_name": "NBM", - "region": "CONUS", - "slice": "[665:1065,413:813]", - "proj_spec": "+proj=lcc +lat_0=25.0 +lon_0=-95.0 +lat_1=25.0 +a=6371200", - "units": "Fahrenheit", - "data_name": "Temperature: 2m", - "data_loc": "arn:aws:s3:::noaa-nbm-grib2-pds", - "valid_dt": "2022-11-12T00:00:00.000Z" + "grid_spec": "+dx=2539.703 +dy=2539.703 +w=400 +h=300 +lat_ll=31.177375065798472 +lon_ll=-111.5741153608759", + "issue_dt": "2022-11-11T13:00:00.000Z", + "proj_name": "NBM", + "region": "CONUS", + "slice": "[665:1065,413:813]", + "proj_spec": "+proj=lcc +lat_0=25.0 +lon_0=-95.0 +lat_1=25.0 +a=6371200", + "units": "ThreatLevel", + "data_name": "Temperature: 2m", + "data_loc": "arn:aws:s3:::noaa-nbm-grib2-pds", + "valid_dt": "2022-11-12T00:00:00.000Z" + }, + "A:Raw": { + "filenames": { + "dtrm": "/share/2022/11/11/NBM.AWS.GRIB/TEMP.Criteria/ThreatLevel/gridstore-1825711489.nc", + "Deterministic": "/share/2022/11/11/NBM.AWS.GRIB/TEMP/Fahrenheit/gridstore765661987.nc" }, - "request": { - "corrId": { - "originator": "IDSSe", - "uuid": "4899d220-beec-467b-a0e6-9d215b715b97", - "issueDt": "2022-11-11T13:00:00.000Z" - }, - "label": "Abq TEMP", - "sourceType": "join", - "sourceObj": { - "join": "OR", - "sources": [ - { - "sourceType": "condition", - "label": "A:ThreatLevel", - "sourceObj": { - "relational": "GREATER THAN", - "thresh": 30, - "mapping": { - "startWeight": [0, 1, 0], - "endWeight": [0, 1, 0], - "controlPoints": ["-Infinity", 0.0, 75.0, "Infinity"] - }, - "source": { - "sourceType": "units", - "label": "A:Raw", - "sourceObj": { - "units": "DEG F", - "source": { - "sourceType": "slice", - "sourceObj": { - "slice": "[665:1065,413:713]", - "source": { - "sourceType": "data", - "sourceObj": { - "product": "NBM", - "field": "TEMPERATURE", - "region": "CONUS", - "validDt": "2022-11-12T00:00:00.000Z", - "issueDt": "2022-11-11T13:00:00.000Z" - } - } - } - } - } - } + "grid_spec": "+dx=2539.703 +dy=2539.703 +w=400 +h=300 +lat_ll=31.177375065798472 +lon_ll=-111.5741153608759", + "issue_dt": "2022-11-11T13:00:00.000Z", + "proj_name": "NBM", + "region": "CONUS", + "slice": "[665:1065,413:813]", + "proj_spec": "+proj=lcc +lat_0=25.0 +lon_0=-95.0 +lat_1=25.0 +a=6371200", + "units": "Fahrenheit", + "data_name": "Temperature: 2m", + "data_loc": "arn:aws:s3:::noaa-nbm-grib2-pds", + "valid_dt": "2022-11-12T00:00:00.000Z" + }, + "request": { + "corrId": { + "originator": "IDSSe", + "uuid": "4899d220-beec-467b-a0e6-9d215b715b97", + "issueDt": "2022-11-11T13:00:00.000Z" + }, + "label": "Abq TEMP", + "sourceType": "join", + "sourceObj": { + "join": "OR", + "sources": [ + { + "sourceType": "condition", + "label": "A:ThreatLevel", + "sourceObj": { + "relational": "GREATER THAN", + "thresh": 30, + "mapping": { + "startWeight": [0, 1, 0], + "endWeight": [0, 1, 0], + "controlPoints": ["-Infinity", 0.0, 75.0, "Infinity"] + }, + "source": { + "sourceType": "units", + "label": "A:Raw", + "sourceObj": { + "units": "DEG F", + "source": { + "sourceType": "slice", + "sourceObj": { + "slice": "[665:1065,413:713]", + "source": { + "sourceType": "data", + "sourceObj": { + "product": "NBM", + "field": "TEMPERATURE", + "region": "CONUS", + "validDt": "2022-11-12T00:00:00.000Z", + "issueDt": "2022-11-11T13:00:00.000Z" + } } + } } - ] + } + } + } } + ] } + } } \ No newline at end of file diff --git a/python/idsse/testing/risk_processor/syracuse/data_service_response_syracuse.json b/python/idsse/testing/risk_processor/syracuse/data_service_response_syracuse.json index 33a4e53..a9f7e29 100644 --- a/python/idsse/testing/risk_processor/syracuse/data_service_response_syracuse.json +++ b/python/idsse/testing/risk_processor/syracuse/data_service_response_syracuse.json @@ -1,6 +1,7 @@ { "A:Raw": { "filenames": { + "dtrm": "/share/2022/12/23/NBM.AWS.GRIB/TEMP/Fahrenheit/gridstore2064195902.nc", "Deterministic": "/share/2022/12/23/NBM.AWS.GRIB/TEMP/Fahrenheit/gridstore2064195902.nc" }, "issue_dt": "2022-12-23T12:00:00.000Z", @@ -16,6 +17,7 @@ }, "A:ThreatLevel": { "filenames": { + "dtrm": "/share/2022/12/23/NBM.AWS.GRIB/TEMP.Criteria/ThreatLevel/gridstore-811715560.nc", "Deterministic": "/share/2022/12/23/NBM.AWS.GRIB/TEMP.Criteria/ThreatLevel/gridstore-811715560.nc" }, "issue_dt": "2022-12-23T12:00:00.000Z", @@ -31,6 +33,7 @@ }, "B:Raw": { "filenames": { + "dtrm": "/share/2022/12/23/NBM.AWS.GRIB/WINDGUST/MilesPerHour/gridstore696460526.nc", "Deterministic": "/share/2022/12/23/NBM.AWS.GRIB/WINDGUST/MilesPerHour/gridstore696460526.nc" }, "issue_dt": "2022-12-23T12:00:00.000Z", @@ -46,6 +49,7 @@ }, "B:ThreatLevel": { "filenames": { + "dtrm": "/share/2022/12/23/NBM.AWS.GRIB/WINDGUST.Criteria/ThreatLevel/gridstore43167307.nc", "Deterministic": "/share/2022/12/23/NBM.AWS.GRIB/WINDGUST.Criteria/ThreatLevel/gridstore43167307.nc" }, "issue_dt": "2022-12-23T12:00:00.000Z", @@ -61,6 +65,7 @@ }, "Syracuse, Cold and Windy": { "filenames": { + "dtrm": "/share/2022/12/23/NBM.AWS.GRIB/Criteria/ThreatLevel/gridstore1303753817.nc", "Deterministic": "/share/2022/12/23/NBM.AWS.GRIB/Criteria/ThreatLevel/gridstore1303753817.nc" }, "issue_dt": "2022-12-23T12:00:00.000Z",