pyradtran.utils.RadiosondeFinder.find_closest#
- RadiosondeFinder.find_closest(target_dt: datetime) Path | None[source]#
Return the radiosonde file closest in time to target_dt.
- Parameters:
target_dt (datetime) – Target time (UTC assumed if timezone-naive).
- Returns:
Absolute path to the best-matching file, or None when no files have been indexed.
- Return type:
pathlib.Path or None