isofit.utils.interpolate_atmosphere
- interpolate_atmosphere(reference_radiance_file, reference_atm_file, reference_locations_file, segmentation_file, input_radiance_file, input_locations_file, output_reflectance_file, output_uncertainty_file, nneighbors=15, nodata_value=-9999.0, level='INFO', radiance_factors=None, isofit_config=None, n_cores=-1)[source]
Perform a Gaussian process interpolation of atmospheric parameters. It relies on precalculated atmospheric coefficients at a subset of spatial locations stored in a file. The file has each coefficient defined for every radiance channel, appearing in the order: (1) atmospheric path reflectance; (2) spherical sky albedo; (3) total diffuse and direct transmittance of the two-part downwelling and upwelling path; (4) extraterrestrial solar irradiance; (5) cosine of solar zenith angle. :type reference_radiance_file:
str
:param reference_radiance_file: source file for radiance (interpolation built from this) :type reference_atm_file:str
:param reference_atm_file: source file for atmospheric coefficients (interpolation from this) :type reference_locations_file:str
:param reference_locations_file: source file for file locations (lon, lat, elev), (interpolation from this) :type segmentation_file:str
:param segmentation_file: input file noting the per-pixel segmentation used :type input_radiance_file:str
:param input_radiance_file: input radiance file (interpolate over this) :type input_locations_file:str
:param input_locations_file: input location file (interpolate over this) :type output_reflectance_file:str
:param output_reflectance_file: location to write output reflectance :type output_uncertainty_file:str
:param output_uncertainty_file: location to write output uncertainty :type nneighbors:int
:param nneighbors: number of neighbors to use for interpolation :type nodata_value:float
:param nodata_value: nodata value of input and output :type level:str
:param level: logging level :type radiance_factors:Optional
[array
] :param radiance_factors: radiance adjustment factors :type isofit_config:Optional
[dict
] :param isofit_config: dictionary-stype isofit configuration :type n_cores:int
:param n_cores: number of cores to run on- Return type:
- Returns:
None