Module rio_tiler.mosaic.methods.defaults¶
rio_tiler.mosaic.methods.defaults: default mosaic filling methods.
Classes¶
CountMethod¶
class CountMethod(
)
Stack the arrays and return the valid pixel count.
Ancestors (in MRO)¶
- rio_tiler.mosaic.methods.base.MosaicMethodBase
- abc.ABC
Class variables¶
cutline_mask
exit_when_filled
mosaic
Instance variables¶
data
Return valid data count of the data stack.
is_done
Check if the mosaic filling is done.
Methods¶
feed¶
def feed(
self,
array: Union[numpy.ma.core.MaskedArray, NoneType]
)
Add array to the stack.
FirstMethod¶
class FirstMethod(
)
Feed the mosaic array with the first pixel available.
Ancestors (in MRO)¶
- rio_tiler.mosaic.methods.base.MosaicMethodBase
- abc.ABC
Class variables¶
cutline_mask
exit_when_filled
mosaic
Instance variables¶
data
Return data.
is_done
Check if the mosaic filling is done.
Methods¶
feed¶
def feed(
self,
array: Union[numpy.ma.core.MaskedArray, NoneType]
)
Add data to the mosaic array.
HighestMethod¶
class HighestMethod(
)
Feed the mosaic array with the highest pixel values.
Ancestors (in MRO)¶
- rio_tiler.mosaic.methods.base.MosaicMethodBase
- abc.ABC
Class variables¶
cutline_mask
exit_when_filled
mosaic
Instance variables¶
data
Return data.
is_done
Check if the mosaic filling is done.
Methods¶
feed¶
def feed(
self,
array: Union[numpy.ma.core.MaskedArray, NoneType]
)
Add data to the mosaic array.
LastBandHighMethod¶
class LastBandHighMethod(
)
Feed the mosaic array using the last band as decision factor (highest value).
Ancestors (in MRO)¶
- rio_tiler.mosaic.methods.base.MosaicMethodBase
- abc.ABC
Class variables¶
cutline_mask
exit_when_filled
mosaic
Instance variables¶
data
Return data.
is_done
Check if the mosaic filling is done.
Methods¶
feed¶
def feed(
self,
array: Union[numpy.ma.core.MaskedArray, NoneType]
)
Add data to the mosaic array.
LastBandLowMethod¶
class LastBandLowMethod(
)
Feed the mosaic array using the last band as decision factor (lowest value).
Ancestors (in MRO)¶
- rio_tiler.mosaic.methods.base.MosaicMethodBase
- abc.ABC
Class variables¶
cutline_mask
exit_when_filled
mosaic
Instance variables¶
data
Return data.
is_done
Check if the mosaic filling is done.
Methods¶
feed¶
def feed(
self,
array: Union[numpy.ma.core.MaskedArray, NoneType]
)
Add data to the mosaic array.
LowestMethod¶
class LowestMethod(
)
Feed the mosaic array with the lowest pixel values.
Ancestors (in MRO)¶
- rio_tiler.mosaic.methods.base.MosaicMethodBase
- abc.ABC
Class variables¶
cutline_mask
exit_when_filled
mosaic
Instance variables¶
data
Return data.
is_done
Check if the mosaic filling is done.
Methods¶
feed¶
def feed(
self,
array: Union[numpy.ma.core.MaskedArray, NoneType]
)
Add data to the mosaic array.
MeanMethod¶
class MeanMethod(
enforce_data_type: bool = True
)
Stack the arrays and return the Mean pixel value.
Ancestors (in MRO)¶
- rio_tiler.mosaic.methods.base.MosaicMethodBase
- abc.ABC
Class variables¶
cutline_mask
enforce_data_type
exit_when_filled
mosaic
Instance variables¶
data
Return Mean of the data stack.
is_done
Check if the mosaic filling is done.
Methods¶
feed¶
def feed(
self,
array: numpy.ma.core.MaskedArray
)
Add array to the stack.
MedianMethod¶
class MedianMethod(
enforce_data_type: bool = True
)
Stack the arrays and return the Median pixel value.
Ancestors (in MRO)¶
- rio_tiler.mosaic.methods.base.MosaicMethodBase
- abc.ABC
Class variables¶
cutline_mask
enforce_data_type
exit_when_filled
mosaic
Instance variables¶
data
Return Median of the data stack.
is_done
Check if the mosaic filling is done.
Methods¶
feed¶
def feed(
self,
array: Union[numpy.ma.core.MaskedArray, NoneType]
)
Add array to the stack.
StdevMethod¶
class StdevMethod(
)
Stack the arrays and return the Standard Deviation value.
Ancestors (in MRO)¶
- rio_tiler.mosaic.methods.base.MosaicMethodBase
- abc.ABC
Class variables¶
cutline_mask
exit_when_filled
mosaic
Instance variables¶
data
Return STDDEV of the data stack.
is_done
Check if the mosaic filling is done.
Methods¶
feed¶
def feed(
self,
array: Union[numpy.ma.core.MaskedArray, NoneType]
)
Add array to the stack.