[LDM #QZC-966326]: LMD bzip2 nexrad
- Subject: [LDM #QZC-966326]: LMD bzip2 nexrad
- Date: Thu, 15 Jun 2017 16:44:07 -0600
You need to skip 12 bytes before every message header to account for the legacy
"CTM Header"; this information is hidden in section 7.6 of this document:
In general though, I'd recommend looking at the NEXRAD Level 2 implementation
in the MetPy package:
MetPy's NEXRAD level 2 (and level 3) support exhaustively covers the entire
gamut of various message types. I'd be happy to help you install and use MetPy
if that's of interest.
> I am trying to write a decode for the nexrad2 level 2 with the new LDM BZIP2
> Attached is the python code to decompress the file and it seems to be working
> - according
> to the byte counting. However, the contents seem incorrect...that is the
> first 16 bytes
> after the 24 byte header is strange as if the decompressed output is not of
> the type byte
> or I have to do something to it to make it correct. I have seen the output
> of my decode
> for good (old) and bad (new) decodes. I expected to see a 16 byte header
> with msg size and
> msg type information and I get something in non-interpretable format (at
> least to me).
> Your advice is appreciated.
Ticket ID: QZC-966326
Department: Support Python
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata
inquiry tracking system and then made publicly available through the web. If
you do not want to have your interactions made available in this way, you must
let us know in each email you send to us.