aidas.util.azimuth_point#
- aidas.util.azimuth_point(instrument_lon, instrument_lat, radar_image: RadarImage, index=None, area_threshold=20, mask='lakebreeze')[source]#
Calculate the azimuth angle from the radar instrument to each pixel in the radar image.
- Parameters:
instrument_lat (float) – Latitude of the radar instrument in degrees.
instrument_lon (float) – Longitude of the radar instrument in degrees.
radar_image (RadarImage) – The RadarImage object containing the radar data and metadata.
index (int, optional) – If the radar image contains multiple time frames, specify the index of the frame to use. If None, use the first frame.
area_threshold (int) – The minimum continuous area in pixels for lake breeze segments. This helps remove false positive speckles that are identified by the model.
mask (str) – Which detection mask to point at: ‘lakebreeze’ for the inferred lake breeze front, or ‘velocity_wave’ for the radial velocity wave mask from
aidas.model.detect_velocity_waves().
- Returns:
deg_angle (float) – Azimuth angle in degrees from the radar instrument to the center of the largest detected region.
lat_center (float) – Latitude of the center of the largest detected region.
lon_center (float) – Longitude of the center of the largest detected region.
dist (float) – Distance in the radar image’s grid units from the instrument to the nearest point in the detected region.