Comments (6)
I haven't written a parser for that particular product yet. The readme now lists what's currently available 506000a. I looked over the definitions for NST and it looks like I can leverage parsers that already exist to write this fairly quickly. Thanks for providing sample data. Follow the nst-58 branch while I develop it.
from nexrad-level-3-data.
2645fa7 Adds the packet. The data is in the tabular.pages section. What I can't make sense of is the two byte string in the radialPackets[0].text. It's (quote) (space) hex codes 0x34, 0x32. Per the specification all of the data lines up on the various byte boundaries, but I don't know what those two bytes mean.
from nexrad-level-3-data.
I think I maybe ended up in the same place at you, when I tried to build my own parser. I got stopped with Error: Unsupported packet code 0x0002
I did confirm that MetPy can parse this file so I guess it's a good file ...
from nexrad-level-3-data.
Can you provide MetPy's output for comparison. I don't do python often enough to get MetPy up and going quickly. Or I could dig into their source. I had to do that to sort out some of the original parsing code.
I'm also a little suspect of the NOAA document I'm working from. https://www.roc.noaa.gov/wsr88d/PublicDocs/ICDs/2620001Y.pdf The bottom of page 3-104 has packet code 2 but the byte-wise table that follows shows packet 1.
from nexrad-level-3-data.
It is pulling out valid data. Here's the tabular data from the provided packet.
'[
[
" STORM POSITION/FORECAST ",
" RADAR ID 383 DATE/TIME 04:11:21/19:35:10 NUMBER OF STORM CELLS 7 ",
" ",
" AVG SPEED 43 KTS AVG DIRECTION 253 DEG ",
" ",
" STORM CURRENT POSITION FORECAST POSITIONS ERROR ",
" ID AZRAN MOVEMENT 15 MIN 30 MIN 45 MIN 60 MIN FCST/MEAN",
" (DEG/NM) (DEG/KTS) (DEG/NM) (DEG/NM) (DEG/NM) (DEG/NM) (NM) ",
" ",
" L9 273/156 NEW NO DATA NO DATA NO DATA NO DATA 0.0/ 0.0",
" J7 140/223 236/ 30 138/224 136/225 NO DATA NO DATA 1.0/ 1.1",
" P7 263/160 NEW NO DATA NO DATA NO DATA NO DATA 0.0/ 0.0",
" H0 188/ 95 NEW NO DATA NO DATA NO DATA NO DATA 0.0/ 0.0",
" B1 181/ 86 NEW NO DATA NO DATA NO DATA NO DATA 0.0/ 0.0",
" I2 96/ 98 NEW NO DATA NO DATA NO DATA NO DATA 0.0/ 0.0",
" M1 182/ 69 262/ 57 NO DATA NO DATA NO DATA NO DATA 3.6/ 2.5"
],
[
" STORM CELL TRACKING/FORECAST ADAPTATION DATA ",
" ",
" 225 (DEG) DEFAULT (DIRECTION) 2.5 (M/S) THRESH (MINIMUM SPEED) ",
" 25.0 (KTS) DEFAULT (SPEED) 20 (KM) ALLOWABLE ERROR ",
" 20 (MIN) TIME (MAXIMUM) 15 (MIN) FORECAST INTERVAL ",
" 10 NUMBER OF PAST VOLUMES 4 NUMBER OF INTERVALS ",
" 30.0 (M/S) CORRELATION SPEED 15 (MIN) ERROR INTERVAL ",
" ",
" ",
" SCIT REFLECTIVITY MEDIAN FILTER ",
" ",
" 7.0 (KM) FILTER KERNEL SIZE 0.5 THRESH (FILTER FRACTION) ",
" Yes REFLECTIVITY FILTERED "
]
]'
from nexrad-level-3-data.
I tracked down the documentation for the two byte string. It is valid and it relates to a table in another document that defines what symbol should be used to show the storms on a graphic display (current position, forecast position, previous position, etc). Thus the parsing implemented with f8c41ca is correct and the interpretation of those special characters would be up to the display mechanism if needed. It sounds like the same information can also be determined from the tabular data.
from nexrad-level-3-data.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nexrad-level-3-data.