Level2File¶
-
class
metpy.io.
Level2File
(filename)[source]¶ 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
¶ str – The ID of the radar station
-
dt
¶ Datetime instance – The date and time of the data
-
vol_hdr
¶ namedtuple – The unpacked volume header
-
sweeps
¶ list of tuples – Data for each of the sweeps found in the file
-
rda_status
¶ namedtuple, optional – Unpacked RDA status information, if found
-
maintenance_data
¶ namedtuple, optional – Unpacked maintenance data information, if found
-
maintenance_data_desc
¶ dict, optional – Descriptions of maintenance data fields, if maintenance data present
-
vcp_info
¶ namedtuple, optional – Unpacked VCP information, if found
-
clutter_filter_bypass_map
¶ dict, optional – Unpacked clutter filter bypass map, if present
-
rda
¶ dict, optional – Unpacked RDA adaptation data, if present
-
rda_adaptation_desc
¶ dict, optional – 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
.Parameters: 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 fname is a file-like object, this will be read from directly.Methods Summary
__init__
(filename)Create instance of Level2File
.Methods Documentation
-
__init__
(filename)[source]¶ Create instance of
Level2File
.Parameters: 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 fname is a file-like object, this will be read from directly.
-