pyart.io

Input/Output routines.

pyart.io.auto_read

Automatic reading of radar files by detecting format.

read(filename[, use_rsl]) Read a radar file and return a radar object.
determine_filetype(filename) Return the filetype of a given file by examining the first few bytes.

pyart.io.common

Input/output routines common to many file formats.

dms_to_d(dms) Degrees, minutes, seconds to degrees
stringarray_to_chararray(arr[, numchars]) Convert an string array to a character array with one extra dimension.
radar_coords_to_cart(rng, az, ele[, debug]) Calculate Cartesian coordinate from radar coordinates
make_time_unit_str(dtobj) Return a time unit string from a datetime object.

pyart.io.cfradial

Utilities for reading CF/Radial files.

read_cfradial(filename[, field_names, ...]) Read a Cfradial netCDF file.
write_cfradial(filename, radar[, format, ...]) Write a Radar object to a CF/Radial compliant netCDF file.
_find_all_meta_group_vars(ncvars, ...) Return a list of all variables which are in a given meta_group.
_ncvar_to_dict(ncvar) Convert a NetCDF Dataset variable to a dictionary.
_stream_ncvar_to_dict(ncvar, sweeps, sweepe, ...) Convert a Stream NetCDF Dataset variable to a dict.
_stream_to_2d(data, sweeps, sweepe, ray_len, ...) Convert a 1D stream to a 2D array.
_create_ncvar(dic, dataset, name, dimensions) Create and fill a Variable in a netCDF Dataset object.

pyart.io.grid

Reading and writing Grid objects.

read_grid(filename) Read a netCDF grid file
write_grid(filename, grid[, format]) Write a Grid object to a CF-1.5 and ARM standard netcdf file
_read_grid_cf(filename) Read a CF compliant netCDF file containing a grid.
_read_grid_wrf(filename) Read a WRF netCDF file containing a grid.
Grid(fields, axes, metadata) An object for holding gridded Radar data.

pyart.io.mdv

Utilities for reading of MDV files.

MdvFile(filename[, debug, read_fields]) A file object for MDV data.
read_mdv(filename[, field_names, ...]) Read a MDV file.

pyart.io.nexrad_archive

Functions for reading NEXRAD Level II Archive files.

read_nexrad_archive(filename[, field_names, ...]) Read a NEXRAD Level 2 Archive file.

pyart.io.nexrad_cdm

Functions for accessing Common Data Model (CDM) NEXRAD Level 2 files.

read_nexrad_cdm(filename[, field_names, ...]) Read a Common Data Model (CDM) NEXRAD Level 2 file.
_scan_info(dvars) Return a list of information on the scans in the volume.
_populate_scan_dic(scan_dic, time_var, ...) Populate a dictionary in the scan_info list.
_get_moment_data(moment_var, index, ngates) Retieve moment data for a given scan.

pyart.io.nexrad_level2

NEXRADLevel2File(filename[, bzip]) Class for accessing data in a NEXRAD (WSR-88D) Level II file.
_decompress_records(file_handler) Decompressed the records from an BZ2 compressed Archive 2 file.
_get_record_from_buf(buf, pos) Retrieve and unpack a NEXRAD record from a buffer.
_get_msg31_data_block(buf, ptr) Unpack a msg_31 data block into a dictionary.
_structure_size(structure) Find the size of a structure in bytes.
_unpack_from_buf(buf, pos, structure) Unpack a structure from a buffer.
_unpack_structure(string, structure) Unpack a structure from a string

pyart.io.radar

A general central radial scanning (or dwelling) instrument class.

Radar(time, _range, fields, metadata, ...[, ...]) A class for storing antenna coordinate radar data.
join_radar(radar1, radar2)

pyart.io.rsl

Python wrapper around the RSL library.

read_rsl(filename[, field_names, ...]) Read a file supported by RSL
VOLUMENUM2RSLNAME
RSLNAME2VOLUMENUM

pyart.io._rsl_interface

Cython wrapper around the NASA TRMM RSL library.

copy_volume(volume) Return a copy of a _RslVolume object.
create_volume(arr) Create a _RslVolume object from a 3D float32 array.
_label_volume(volume, radar) Add labels for dealiasing to a _RslVolume object from a radar object.
RslFile A object for accessing Radar data and parameter using the RSL library.
_RslVolume A object for accessing RSL Volume data and header information.
_RslSweep A object for accessing RSL Sweep data and header information.
_RslRay A object for accessing RSL Ray data and header information

pyart.io.sigmet

Reading and writing of Sigmet (raw format) files

read_sigmet(filename[, field_names, ...]) Read a Sigmet (IRIS) product file.
ymds_time_to_datetime(ymds) Return a datetime object from a Sigmet ymds_time dictionary.
_time_order_data_and_metadata_full(data, ...) Put Sigmet data and metadata in time increasing order by sorting the
_time_order_data_and_metadata_roll(data, ...) Put Sigmet data and metadata in time increasing order using a single

pyart.io._sigmetfile

A class and supporting functions for reading Sigmet (raw format) files.

SigmetFile A class for accessing data from Sigmet (IRIS) product files.
convert_sigmet_data Convert sigmet data.
bin2_to_angle Return an angle from Sigmet bin2 encoded value (or array).
bin4_to_angle Return an angle from Sigmet bin4 encoded value (or array).
_data_types_from_mask Return a list of the data types from the words in the data_type mask.
_is_bit_set Return True if bit is set in number.
_parse_ray_headers Parse the metadata from Sigmet ray headers.
_unpack_structure Unpack a structure
_unpack_key Unpack a key.
_unpack_ingest_data_headers Unpack one or more ingest_data_header from a record.
_unpack_ingest_data_header Unpack a single ingest_data_header from record.
_unpack_raw_prod_bhdr Return a dict with the unpacked raw_prod_bhdr from a record.
_unpack_product_hdr Return a dict with the unpacked product_hdr from the first record.
_unpack_ingest_header Return a dict with the unpacked ingest_header from the second record.