pyart.testing#

Description

Utilities helpful when writing and running unit tests such as sample files and sample objects.

Classes

Grid(time, fields, metadata, ...[, ...])

A class for storing rectilinear gridded radar data in Cartesian coordinate.

InTemporaryDirectory([suffix, prefix, dir])

Create, return, and change directory to a temporary directory.

Radar(time, _range, fields, metadata, ...[, ...])

A class for storing antenna coordinate radar data.

RadarSpectra(time, _range, fields, metadata, ...)

A class for storing antenna coordinate radar spectra data.

Functions

get_metadata(p)

Return a dictionary of metadata for a given parameter, p.

get_test_data(file)

Accesses the desired test data storage :Parameters: file = str -- The name of the desired file

make_empty_grid(grid_shape, grid_limits)

Make an empty grid object without any fields or metadata.

make_empty_ppi_radar(ngates, rays_per_sweep, ...)

Return an Radar object, representing a PPI scan.

make_empty_rhi_radar(ngates, rays_per_sweep, ...)

Return an Radar object, representing a RHI scan.

make_empty_spectra_radar(nrays, ngates, ...)

Return a Spectra Radar object.

make_gaussian_storm_grid([min_value, ...])

Make a 1 km resolution grid with a Gaussian storm pattern at the center, with two layers having the same data and masked boundaries.

make_normal_storm(sigma, mu)

Make a sample Grid with a gaussian storm target.

make_single_ray_radar()

Return a PPI radar with a single ray taken from a ARM C-SAPR Radar.

make_storm_grid()

Make a sample Grid with a rectangular storm target.

make_target_grid()

Make a sample Grid with a rectangular target.

make_target_radar()

Return a PPI radar with a target like reflectivity field.

make_target_spectra_radar()

Return a spectra radar with a target like spectra field.

make_velocity_aliased_radar([alias])

Return a PPI radar with a target like reflectivity field.

make_velocity_aliased_rhi_radar([alias])

Return a RHI radar with a target like reflectivity field.