Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: test JSON for DAS percentiles #7

Merged
merged 3 commits into from
Feb 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
"product": {
"fcst": ["NBM"]
},
"field": "1 HR SNOWFALL",
"field": "SNOW:1HR",
"units": "INCHES",
"relational": "GREATER THAN OR EQUAL",
"thresh": 0.01,
Expand Down
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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": {
Expand Down
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}
]
}
}
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}
]
}
}
}
Loading
Loading