pyradtran.io.RadiosondeAtmosphereGenerator.create_radiosonde_atmosphere_file

pyradtran.io.RadiosondeAtmosphereGenerator.create_radiosonde_atmosphere_file#

static RadiosondeAtmosphereGenerator.create_radiosonde_atmosphere_file(time: datetime, latitude: float, longitude: float, output_filepath: str | Path) Path[source]#

Fetch a sounding and write it as a libRadtran atmosphere file.

Parameters:
  • time (datetime) – Target time.

  • latitude (float) – Target location.

  • longitude (float) – Target location.

  • output_filepath (str or pathlib.Path) – Destination .dat file.

Return type:

pathlib.Path

Raises:

InputGenerationError – If no data can be found or the file cannot be written.