- I have a date as my input
- And LatLng location as a second input
- I want to know
What is the closest station to this point, that has relative humidity data for this particular date. Then get the data
Here is what I attempted so far
# Verify station data availability
def verify_station_data(station_id, target_date):
try:
df, _ = IGRAUpperAir.request_data(target_date, station_id)
if not df.empty:
log(f"Found data for {station_id} on {target_date}")
return target_date
log(f"No data found for {station_id} on {target_date}")
return None
except Exception as e:
log(f"Error verifying data for {station_id}: {e}")
return None```