pygmi.rsense.dataprep#

Data preparation for satellite data.

Classes#

TopoCorrect

GUI to calculate topographic correction.

Sen2Cor

GUI to calculate atmospheric correction using Sen2Cor.

Functions#

c_correction(data, dem, azimuth, zenith, *[, showlog, ...])

Calculate C correction.

Module Contents#

class pygmi.rsense.dataprep.TopoCorrect(parent=None)#

Bases: pygmi.misc.BasicModule

GUI to calculate topographic correction.

Parameters:

parent (parent, optional) – Reference to the parent routine. The default is None.

setupui()#

Set up UI.

Return type:

None.

settings(nodialog=False)#

Entry point into item.

Parameters:

nodialog (bool, optional) – Run settings without a dialog. The default is False.

Returns:

True if successful, False otherwise.

Return type:

bool

saveproj()#

Save project data from class.

Return type:

None.

acceptall()#

Accept option.

Updates self.outdata, which is used as input to other modules.

Return type:

None.

class pygmi.rsense.dataprep.Sen2Cor(parent=None)#

Bases: pygmi.misc.BasicModule

GUI to calculate atmospheric correction using Sen2Cor.

Parameters:

parent (parent, optional) – Reference to the parent routine. The default is None.

setupui()#

Set up UI.

Return type:

None.

settings(nodialog=False)#

Entry point into item.

Parameters:

nodialog (bool, optional) – Run settings without a dialog. The default is False.

Returns:

True if successful, False otherwise.

Return type:

bool

get_sdir(nodialog=False)#

Get the satellite directory.

get_sen2cor(nodialog=False)#

Get the sen2cor directory.

saveproj()#

Save project data from class.

Return type:

None.

acceptall()#

Accept option.

Updates self.outdata, which is used as input to other modules.

Return type:

None.

pygmi.rsense.dataprep.c_correction(data, dem, azimuth, zenith, *, showlog=print, piter=iter)#

Calculate C correction.

Parameters:
  • data (pygmi.raster.datatypes.Data) – Data to be corrected.

  • dem (pygmi.raster.datatypes.Data) – DEM data used in correction.

  • azimuth (float) – Solar azimuth in degrees.

  • zenith (float) – Solar zenith in degrees.

  • showlog (function, optional) – Display information. The default is print.

  • piter (function, optional) – Progress bar iterator. The default is iter.

Returns:

data2 – List of c-corrected data arrays.

Return type:

list