pyradtran.io.InputDataLoader#

class pyradtran.io.InputDataLoader[source]#

Bases: object

Load simulation input coordinates from CSV or NetCDF files.

The file must contain time, latitude, and longitude variables (or datetime as an alias for time). Additional columns are carried through as data variables.

__init__()#

__init__()

load_simulation_input_data(input_file)

Read simulation input coordinates and ancillary data.

static load_simulation_input_data(input_file: str | Path) Dataset[source]#

Read simulation input coordinates and ancillary data.

Parameters:

input_file (str or pathlib.Path) – Path to a .csv or .nc file.

Returns:

Dataset guaranteed to contain time, latitude, and longitude.

Return type:

xarray.Dataset

Raises:

InputGenerationError – If the file is missing, unsupported, or lacks required variables.