pyart.testing

Description

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

Classes

InTemporaryDirectory([suffix, prefix, dir])

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

Functions

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_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.