enpt.model package
Subpackages
- enpt.model.images package
- Submodules
- enpt.model.images.image_baseclasses module
_EnMAP_Image
_EnMAP_Image._get_geoarray_with_datalike_geometry()
_EnMAP_Image.data
_EnMAP_Image.deadpixelmap
_EnMAP_Image.dem
_EnMAP_Image.generate_quicklook()
_EnMAP_Image.mask_cirrus
_EnMAP_Image.mask_clouds
_EnMAP_Image.mask_cloudshadow
_EnMAP_Image.mask_haze
_EnMAP_Image.mask_landwater
_EnMAP_Image.mask_snow
_EnMAP_Image.polymer_bitmask
_EnMAP_Image.polymer_logchl
_EnMAP_Image.polymer_logfb
_EnMAP_Image.polymer_rgli
_EnMAP_Image.polymer_rnir
- enpt.model.images.images_mapgeo module
- enpt.model.images.images_sensorgeo module
EnMAPL1Product_SensorGeo
EnMAPL1Product_SensorGeo.DN2TOARadiance()
EnMAPL1Product_SensorGeo.append_new_image()
EnMAPL1Product_SensorGeo.calc_snr_from_radiance()
EnMAPL1Product_SensorGeo.correct_dead_pixels()
EnMAPL1Product_SensorGeo.get_paths()
EnMAPL1Product_SensorGeo.get_preprocessed_dem()
EnMAPL1Product_SensorGeo.log
EnMAPL1Product_SensorGeo.logger
EnMAPL1Product_SensorGeo.run_AC()
EnMAPL1Product_SensorGeo.save()
EnMAPL1Product_SensorGeo.set_SWIRattr_with_transformedVNIRattr()
EnMAPL1Product_SensorGeo.transform_swir_to_vnir_raster()
EnMAPL1Product_SensorGeo.transform_vnir_to_swir_raster()
EnMAP_Detector_SensorGeo
EnMAP_Detector_SensorGeo.DN2TOARadiance()
EnMAP_Detector_SensorGeo._transform_raster_geometry_from_other_detector()
EnMAP_Detector_SensorGeo.append_new_image()
EnMAP_Detector_SensorGeo.correct_dead_pixels()
EnMAP_Detector_SensorGeo.get_paths()
EnMAP_Detector_SensorGeo.get_preprocessed_dem()
EnMAP_Detector_SensorGeo.save_raster_attributes()
EnMAP_SWIR_SensorGeo
EnMAP_VNIR_SensorGeo
- Module contents
- enpt.model.metadata package
- Submodules
- enpt.model.metadata.metadata_mapgeo module
- enpt.model.metadata.metadata_sensorgeo module
EnMAP_Metadata_L1B_Detector_SensorGeo
EnMAP_Metadata_L1B_Detector_SensorGeo._get_snr_model()
EnMAP_Metadata_L1B_Detector_SensorGeo.calc_smile()
EnMAP_Metadata_L1B_Detector_SensorGeo.calc_snr_from_radiance()
EnMAP_Metadata_L1B_Detector_SensorGeo.calc_solar_irradiance_CWL_FWHM_per_band()
EnMAP_Metadata_L1B_Detector_SensorGeo.compute_geolayer_for_cube()
EnMAP_Metadata_L1B_Detector_SensorGeo.interpolate_corners()
EnMAP_Metadata_L1B_Detector_SensorGeo.read_metadata()
EnMAP_Metadata_L1B_SensorGeo
- Module contents
Submodules
enpt.model.srf module
EnPT module for handling spectral response functions.
- class enpt.model.srf.SRF(wvl_unit: str = 'nanometers', wvl_min: float = 400, wvl_max: float = 2500, specres_nm: float = 1, format_bandnames: bool = False, v: bool = False)[source]
Bases:
object
SRF instance provides SRF functions, wavelength positions, etc..
- Parameters:
wvl_unit – the wavelengths unit to be used within SRF instance (‘nanometers’ or ‘micrometers)
wvl_min –
wvl_max –
specres_nm – output spectral resolution of SRFs in nanometers
format_bandnames – whether to format default strings from LayerBandsAssignment as ‘B01’, ‘B02’ etc..
v – verbose mode
- static compute_gaussian_srf(cwl: float, fwhm: float, wvl_min: float, wvl_max: float, wvl_res: float, normalize: bool = True) ndarray [source]
Compute a spectral response function based on center wavelength and bandwidth using on a gaussian curve.
- Parameters:
cwl – target center wavelength position
fwhm – target bandwidth (full width half maximum)
wvl_min – minimum wavelength to compute spectral response for
wvl_max – maximum wavelength to compute spectral response for
wvl_res – spectral resolution at which spectral response is to be computed
normalize – whether to normalize the output spectral response to values between 0 and 1
- Returns:
2D numpy.ndarray: rows: response per wavelength; columns: wavelength/response
- convert_wvl_unit()[source]
Convert the wavelength unit to nanometers if they are in micrometers or vice versa.
- classmethod from_cwl_fwhm(cwls: list | ndarray, fwhms: list | ndarray, **kwargs: dict) SRF [source]
Create an instance of SRF based on center wavelength positions and bandwidths (using gaussian responses).
- Parameters:
cwls – center wavelength positions
fwhms – bandwidths
kwargs – Keyword arguments to be passed to SRF.__init__().
- Returns:
SRF instance
- plot_srfs(figsize: tuple = (15, 5), band: str | List[str] = None, normalize: bool = True)[source]
Show a plot of all spectral response functions.
- Parameters:
figsize – figure size of the plot
band – band key to plot a single band instead of all bands
normalize – normalize SRFs to 0-1 (default: True)
Module contents
EnPT module ‘model’, containing all kinds of data models.