isofit.utils.algebraic_line

Classes

Worker

Functions

algebraic_line(→ None)

Run pixel-wise algebraic inversions, using provided atmosphere file.

cli(**kwargs)

Execute the algebraic line algorithm

Module Contents

algebraic_line(rdn_file: str, loc_file: str, obs_file: str, isofit_dir: str, isofit_config: str = None, segmentation_file: str = None, num_neighbors: list = None, atm_sigma: list = None, n_cores: int = -1, num_iter: int = 1, output_rfl_file: str = None, atm_file: str = None, logging_level: str = 'INFO', log_file: str = None) None[source]

Run pixel-wise algebraic inversions, using provided atmosphere file. If no atmosphere file is provided, it will be created via interpolation from the state solution.

Parameters:
  • rdn_file – Path to the radiance file

  • loc_file – Path to the location file

  • obs_file – Path to the observation file

  • isofit_dir – Path to the isofit directory

  • isofit_config – Path to the isofit configuration file

  • segmentation_file – Path to the segmentation file (optional)

  • num_neighbors – Number of atmospheric neighbors to use for interpolation

  • atm_sigma – Smoothing sigma for the atmospheric interpolation

  • n_cores – Number of cores to use for parallel processing

  • num_iter – Number of iterations for the inversion

  • output_rfl_file – Path to the output reflectance file

  • atm_file – Path to the atmosphere file

  • logging_level – Logging level (default: INFO)

  • log_file – Path to the log file (default: None)

Returns:

None

class Worker(config: isofit.configs.configs.Config, fm: isofit.core.forward.ForwardModel, RT_state_file: str, algebraic_rfl_file: str, rdn_file: str, loc_file: str, obs_file: str, subs_state_file: str, lbl_file: str, num_iter: int, logging_level: str, log_file: str)[source]

Bases: object

config[source]
fm[source]
iv[source]
rfl_bounds[source]
completed_spectra = 0[source]
hash_table[source]
hash_size = 500[source]
RT_state_file[source]
rdn_file[source]
loc_file[source]
obs_file[source]
algebraic_rfl_file[source]
subs_state_file[source]
lbl_file[source]
atm_bands = [][source]
num_iter[source]
run_lines(startstop: tuple) None[source]

Run the algebraic line algorithm for a set of lines. :param startstop: tuple of (start_line, stop_line) to process

Returns:

None

cli(**kwargs)[source]

Execute the algebraic line algorithm