Mosaic Methods¶
lazycogs.MosaicMethodBase ¶
Bases: ABC
Abstract base class for pixel-selection mosaic methods.
data
property
¶
Return the filled mosaic as a plain numpy array.
Remaining masked pixels are filled with zero.
feed
abstractmethod
¶
Incorporate a new tile into the mosaic.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
arr
|
MaskedArray
|
Masked array with shape |
required |
lazycogs.FirstMethod ¶
Bases: MosaicMethodBase
Use the first valid pixel encountered (first-on-top compositing).
feed ¶
Incorporate arr by filling any still-empty positions.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
arr
|
MaskedArray
|
Masked array with shape |
required |
lazycogs.HighestMethod ¶
Bases: MosaicMethodBase
Use the pixel with the highest value across all tiles.
feed ¶
Incorporate arr by keeping the maximum value at each position.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
arr
|
MaskedArray
|
Masked array with shape |
required |
lazycogs.LowestMethod ¶
Bases: MosaicMethodBase
Use the pixel with the lowest value across all tiles.
feed ¶
Incorporate arr by keeping the minimum value at each position.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
arr
|
MaskedArray
|
Masked array with shape |
required |
lazycogs.MeanMethod ¶
Bases: MosaicMethodBase
Use the mean of all valid pixel values across tiles.
lazycogs.MedianMethod ¶
Bases: MosaicMethodBase
Use the median of all valid pixel values across tiles.
data
property
¶
Return the pixel-wise median of all fed tiles.
Returns:
| Type | Description |
|---|---|
ndarray
|
Numpy array with shape |
feed ¶
Add arr to the stack. Median is computed lazily in data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
arr
|
MaskedArray
|
Masked array with shape |
required |
lazycogs.StdevMethod ¶
Bases: MosaicMethodBase
Use the standard deviation of all valid pixel values across tiles.
lazycogs.CountMethod ¶
Bases: MosaicMethodBase
Count the number of valid observations at each pixel.