isofit.utils.interpolate_spectra ================================ .. py:module:: isofit.utils.interpolate_spectra Classes ------- .. autoapisummary:: isofit.utils.interpolate_spectra.Worker Functions --------- .. autoapisummary:: isofit.utils.interpolate_spectra.interpolate_spectra isofit.utils.interpolate_spectra.cli Module Contents --------------- .. py:class:: Worker(infile, outfile, inplace, nodata_value, logfile, loglevel) Bases: :py:obj:`object` .. py:attribute:: infile .. py:attribute:: inplace .. py:attribute:: nodata_value .. py:attribute:: in_img .. py:attribute:: wl .. py:method:: interpolate_values(meas, replace_nan=False) .. py:method:: interpolate_chunk(startstop) .. py:function:: interpolate_spectra(infile: str, outfile: str = '', inplace: bool = False, nodata_value: float = -9999.0, n_cores: int = -1, ray_address: str = None, ray_redis_password: str = None, ray_temp_dir: str = None, ray_ip_head=None, task_inflation_factor: int = 1, logfile: str = None, loglevel: str = 'INFO') Interpolate wavelength bands that are either no data or Nan. The interpolation will only be applied to pixel-vectors that include partial NaNs. This is meant to be used if the number of wavelengths missing is minor, and has not been widely tested if a large number of wavelength vlues are missing. The interpolation will do two checks. One for "nodata values," the other for NaN values. Motivated by some sensor products which have rdn data with both no data, and NaN values.  :param infile: Input file that contains the wavelengths to be interpolated. :type infile: str :param inplace: Flag to tell algorithm to write to new file (False) or write to input file (True) :type inplace: bool :param outfile: Output lcoation for the interpolated wavelengths :type outfile: str :param nodata_value: No data value to check against, and interpolate across Flexible typing in numpy boolean operations means this could be float or int :type nodata_value: float :param n_cores: Number of cores to run. Substantial parallelism is available Defaults to maxing this out on the available system (-1) :type n_cores: int :param logfile: File path to write logs to :type logfile: str :param loglevel: Logging level with which to run ISOFIT :type loglevel: str .. py:function:: cli(**kwargs)