isofit.utils.empirical_line
Functions
|
|
|
Perform an empirical line interpolation for reflectance and uncertainty extrapolation |
|
Run empirical line |
Module Contents
- _run_chunk(start_line: int, stop_line: int, reference_radiance_file: str, reference_reflectance_file: str, reference_uncertainty_file: str, reference_locations_file: str, input_radiance_file: str, input_locations_file: str, segmentation_file: str, isofit_config: str, output_reflectance_file: str, output_uncertainty_file: str, radiance_factors: numpy.array, nneighbors: int, nodata_value: float, loglevel: str, logfile: str, reference_class_file) None[source]
- Parameters:
start_line – line to start empirical line run at
stop_line – line to stop empirical line run at
reference_radiance_file – source file for radiance (interpolation built from this)
reference_reflectance_file – source file for reflectance (interpolation built from this)
reference_uncertainty_file – source file for uncertainty (interpolation built from this)
reference_locations_file – source file for file locations (lon, lat, elev), (interpolation built from this)
input_radiance_file – input radiance file (interpolate over this)
input_locations_file – input location file (interpolate over this)
segmentation_file – input file noting the per-pixel segmentation used
isofit_config – path to isofit configuration JSON file
output_reflectance_file – location to write output reflectance to
output_uncertainty_file – location to write output uncertainty to
radiance_factors – radiance adjustment factors
nneighbors – number of neighbors to use for interpolation
nodata_value – nodata value of input and output
loglevel – logging level
logfile – logging file
- Returns:
None
- empirical_line(reference_radiance_file: str, reference_reflectance_file: str, reference_uncertainty_file: str, reference_locations_file: str, segmentation_file: str, input_radiance_file: str, input_locations_file: str, output_reflectance_file: str, output_uncertainty_file: str, nneighbors: int = 400, nodata_value: float = -9999.0, level: str = 'INFO', logfile: str = None, radiance_factors: numpy.array = None, isofit_config: str = None, n_cores: int = -1, reference_class_file: str = None, segmentation_size: int = 40) None[source]
Perform an empirical line interpolation for reflectance and uncertainty extrapolation :param reference_radiance_file: source file for radiance (interpolation built from this) :param reference_reflectance_file: source file for reflectance (interpolation built from this) :param reference_uncertainty_file: source file for uncertainty (interpolation built from this) :param reference_locations_file: source file for file locations (lon, lat, elev), (interpolation built from this) :param segmentation_file: input file noting the per-pixel segmentation used :param input_radiance_file: input radiance file (interpolate over this) :param input_locations_file: input location file (interpolate over this) :param output_reflectance_file: location to write output reflectance to :param output_uncertainty_file: location to write output uncertainty to :param nneighbors: number of neighbors to use for interpolation :param nodata_value: nodata value of input and output :param level: logging level :param logfile: logging file :param radiance_factors: radiance adjustment factors :param isofit_config: path to isofit configuration JSON file :param n_cores: number of cores to run on :param reference_class_file: optional source file for sub-type-classifications, in order: [base, cloud, water] :param segmentation_size: Number of super pixels
- Returns:
None