adam.io.preprocess_radar_image#
- adam.io.preprocess_radar_image(radar, rad_time=None, lat_range=(41.128, 42.568), lon_range=(-88.7176, -87.2873), bucket_name='unidata-nexrad-level2')[source]#
This module will preprocess the NEXRAD radar data for inference into the lake-breeze prediction model of ADAM.
- Parameters:
radar (str or
pyart.core.radar()object) – The 4-letter code for the radar to obtain the scan from. For Chicago, use KLOT.rad_time (ISO-format datestring) – The date/time string in YYYY-MM-DDTHH:MM:SS format for the radar scan. If None, then ADAM will get the latest scan. This is not used if radar is a
pyart.core.radar()object or string.lat_range (2-tuple of floats) – The minimum and maximum latitude of the domain in degrees. Default is a centered domain around the KLOT Chicago area radar.
lon_range (2-tuple of floats) – The minimum and maximum longitude of the domain in degrees. Default is a centered domain around the KLOT Chicago area radar.
bucket_name (str) – The NEXRAD S3 bucket to use. Default is ‘unidata-nexrad-level2’.
- Returns:
image – The
RadarImage()object containing the radar scan, pre-processed image, and grid.- Return type: