pyart.util#

Description

Miscellaneous utility functions.

The location and names of these functions within Py-ART may change between versions without depreciation, use with caution.

Functions

angular_mean(angles)

Compute the mean of a distribution of angles in radians.

angular_mean_deg(angles)

Compute the mean of a distribution of angles in degrees.

angular_std(angles)

Compute the standard deviation of a distribution of angles in radians.

angular_std_deg(angles)

Compute the standard deviation of a distribution of angles in degrees.

angular_texture_2d(image, N, interval)

Compute the angular texture of an image.

column_vertical_profile(radar, latitude, ...)

Given the location (in latitude, longitude) of a target, return the rays that correspond to radar column above the target, allowing for user defined range of azimuths and range gates to be included within this extraction.

compute_directional_stats(field[, avg_type, ...])

Computes the mean or the median along one of the axis (ray or range)

cross_section_ppi(radar, target_azimuths[, ...])

Extract cross sections from a PPI volume along one or more azimuth angles.

cross_section_rhi(radar, target_elevations)

Extract cross sections from an RHI volume along one or more elevation angles.

datetime_from_dataset(dataset[, epoch])

Return a datetime for the first time in a netCDF Dataset.

datetime_from_grid(grid[, epoch])

Return a datetime for the volume start in a Grid.

datetime_from_radar(radar[, epoch])

Return a datetime for the first ray in a Radar.

datetimes_from_dataset(dataset[, epoch])

Return an array of datetimes for the times in a netCDF Dataset.

datetimes_from_radar(radar[, epoch])

Return an array of datetimes for the rays in a Radar.

determine_sweeps(radar[, max_offset, ...])

Determine the number of sweeps using elevation data (PPI scans) or azimuth data (RHI scans) and update the input radar object

estimate_noise_hs74(spectrum[, navg, nnoise_min])

Estimate noise parameters of a Doppler spectrum.

for_azimuth(radar_latitude, target_latitude, ...)

Calculation of inital bearing alongitudeg a great-circle arc Known as Forward Azimuth Angle.

get_column_rays(radar, azimuth)

Given the location (in latitude,longitude) of a target, return the rays that correspond to radar column above the target.

get_field_location(radar, latitude, longitude)

Given the location (in latitude, longitude) of a target, extract the radar column above that point for further analysis.

image_mute_radar(radar, field, mute_field, ...)

This function will split a field based on thresholds from another field.

interval_mean(dist, interval_min, interval_max)

Compute the mean of a distribution within an interval.

interval_std(dist, interval_min, interval_max)

Compute the standard deviation of a distribution within an interval.

is_vpt(radar[, offset])

Determine if a Radar appears to be a vertical pointing scan.

join_radar(radar1, radar2)

Combine two radar instances into one.

ma_broadcast_to(array, tup)

Is used to guarantee that a masked array can be broadcasted without loosing the mask

mean_of_two_angles(angles1, angles2)

Compute the element by element mean of two sets of angles.

mean_of_two_angles_deg(angle1, angle2)

Compute the element by element mean of two sets of angles in degrees.

rolling_window(a, window)

Create a rolling window object for application of functions eg: result=np.ma.std(array, 11), 1).

simulated_vel_from_profile(radar, profile[, ...])

Create simulated radial velocities from a profile of horizontal winds.

sphere_distance(radar_latitude, ...)

Calculated of the great circle distance between radar and target

subset_radar(radar, field_names[, rng_min, ...])

Creates a subset of the radar object along new dimensions.

texture(radar, var)

Determine a texture field using an 11pt stdev texarray=texture(pyradarobj, field).

texture_along_ray(radar, var[, wind_size])

Compute field texture along ray using a user specified window size.

to_vpt(radar[, single_scan])

Convert an existing Radar object to represent a vertical pointing scan.