pyart.io.mdv.MdvFile

class pyart.io.mdv.MdvFile(filename, debug=False, read_fields=False)[source]

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

Name of MDV file.

debug : bool

True to print out debugging information, False to supress

read_fields : bool

True to read all field during initalization, False (default) only reads metadata.

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.

Previous topic

pyart.io.grid.Grid.__init__

Next topic

pyart.io.mdv.MdvFile.close

This Page