A file object for MDV data.
A MdvFile object stores metadata and data from a MDV file. Metadata is stored in dictionaries as attributes of the object, field data is stored as NumPy ndarrays as attributes with the field name. By default only metadata is read initially and field data must be read using the read_a_field or read_all_fields methods. This behavior can be changed by setting the read_fields parameter to True.
Parameters : | filename : str
debug : bool
read_fields : bool
|
---|
Methods
close() | Close the MDV file. |
read_a_field(fnum[, debug]) | Read a field from the MDV file. |
read_all_fields() | Read all fields, storing data to field name attributes. |
Private methods
__init__(filename[, debug, read_fields]) | initalize MdvFile from filename (str). |
_calc_geometry() | Calculate geometry, return az_deg, range_km, el_deg. |
_get_calib() | Get the calibration information, return a dict. |
_get_chunk_header() | Get a single chunk header, return a dict. |
_get_chunk_headers(nchunks) | Get nchunk chunk headers, return a list of dicts. |
_get_chunks([debug]) | Get data in chunks, return radar_info, elevations, calib_info. |
_get_compression_info() | Get compression infomation, return a dict. |
_get_elevs(nbytes) | Return an array of elevation read from current file position. |
_get_field_header() | Read a single field header, return a dict. |
_get_field_headers(nfields) | Read nfields field headers, return a list of dicts. |
_get_master_header() | Read the MDV master header, return a dict. |
_get_radar_info() | Get the radar information, return dict. |
_get_sweep_info(nsweeps) | Get sweep information, return a dict. |
_get_vlevel_header() | Read a single vlevel header, return a dict. |
_get_vlevel_headers(nfields) | Read nfields vlevel headers, return a list of dicts. |
_make_carts_dict() | Return a carts dictionary, distances in meters. |
_make_fields_list() | Return a list of fields. |
_make_time_dict() | Return a time dictionary. |