adam.util.azimuth_point#
- adam.util.azimuth_point(instrument_lon, instrument_lat, radar_image: RadarImage, index=None, area_threshold=20)[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.
- Returns:
deg_angle (float) – Azimuth angle in degrees from the radar instrument to the center of the largest lake breeze region.
lat_center (float) – Latitude of the center of the largest lake breeze region.
lon_center (float) – Longitude of the center of the largest lake breeze region.
dist (float) – Distance in the radar image’s grid units from the instrument to the nearest point in the lake breeze region.