metpy.io.
Level2File
Handle reading the NEXRAD Level 2 data and its various messages.
This class attempts to decode every byte that is in a given data file. It supports both external compression, as well as the internal BZ2 compression that is used.
stid
The ID of the radar station
str
dt
The date and time of the data
Datetime instance
vol_hdr
The unpacked volume header
namedtuple
sweeps
Data for each of the sweeps found in the file
list of tuples
rda_status
Unpacked RDA status information, if found
namedtuple, optional
maintenance_data
Unpacked maintenance data information, if found
maintenance_data_desc
Descriptions of maintenance data fields, if maintenance data present
dict, optional
vcp_info
Unpacked VCP information, if found
clutter_filter_bypass_map
Unpacked clutter filter bypass map, if present
rda
Unpacked RDA adaptation data, if present
rda_adaptation_desc
Descriptions of RDA adaptation data, if adaptation data present
Notes
The internal data structure that things are decoded into is still to be determined.
Create instance of Level2File.
filename (str or file-like object) – If str, the name of the file to be opened. Gzip-ed files are recognized with the extension ‘.gz’, as are bzip2-ed files with the extension bz2 If filename is a file-like object, this will be read from directly.
bz2
Attributes Summary
AR2_BLOCKSIZE
CTM_HEADER_SIZE
MISSING
RANGE_FOLD
data_block_fmt
msg15_code_map
msg1_fmt
msg2_additional_fmt
msg2_fmt
msg31_data_hdr_fmt
msg31_el_const_fmt
msg31_vol_const_fmt
msg_hdr_fmt
rad_const_fmt_v1
rad_const_fmt_v2
vcp_el_fmt
vcp_fmt
vol_hdr_fmt
Methods Summary
__init__(filename, *[, has_volume_header])
__init__
Attributes Documentation
Methods Documentation
metpy.io.Level2File
NEXRAD Level 2 File¶