satpy.resample.native module
Native resampler.
- class satpy.resample.native.NativeResampler(source_geo_def, target_geo_def)[source]
Bases:
BaseResamplerExpand or reduce input datasets to be the same shape.
If data is higher resolution (more pixels) than the destination area then data is averaged to match the destination resolution.
If data is lower resolution (less pixels) than the destination area then data is repeated to match the destination resolution.
This resampler does not perform any caching or masking due to the simplicity of the operations.
Initialize resampler with geolocation information.
- Parameters:
source_geo_def (
Union[SwathDefinition,AreaDefinition]) – Geolocation definition for the data to be resampledtarget_geo_def (
Union[CoordinateDefinition,AreaDefinition]) – Geolocation definition for the area to resample data to.
- satpy.resample.native._aggregate(d, y_size, x_size)[source]
Average every 4 elements (2x2) in a 2D array.