satpy.tests.test_resample module
Unittests for resamplers.
- class satpy.tests.test_resample.TestBilinearResampler(methodName='runTest')[source]
Bases:
TestCase
Test the bilinear resampler.
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- class satpy.tests.test_resample.TestBucketAvg(methodName='runTest')[source]
Bases:
TestCase
Test the bucket resampler.
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- test_compute_and_not_use_skipna_handling()[source]
Test bucket resampler computation and not use skipna handling.
- class satpy.tests.test_resample.TestBucketCount(methodName='runTest')[source]
Bases:
TestCase
Test the count bucket resampler.
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- class satpy.tests.test_resample.TestBucketFraction(methodName='runTest')[source]
Bases:
TestCase
Test the fraction bucket resampler.
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- class satpy.tests.test_resample.TestBucketSum(methodName='runTest')[source]
Bases:
TestCase
Test the sum bucket resampler.
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- class satpy.tests.test_resample.TestCoordinateHelpers(methodName='runTest')[source]
Bases:
TestCase
Test various utility functions for working with coordinates.
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- class satpy.tests.test_resample.TestEWAResampler(methodName='runTest')[source]
Bases:
TestCase
Test EWA resampler class.
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- class satpy.tests.test_resample.TestHLResample(methodName='runTest')[source]
Bases:
TestCase
Test the higher level resampling functions.
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- class satpy.tests.test_resample.TestKDTreeResampler(methodName='runTest')[source]
Bases:
TestCase
Test the kd-tree resampler.
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- class satpy.tests.test_resample.TestNativeResampler[source]
Bases:
object
Tests for the ‘native’ resampling method.
- test_expand_reduce_agg_rechunk()[source]
Test that an incompatible factor for the chunk size is rechunked.
This can happen when a user chunks their data that makes sense for the overall shape of the array and for their local machine’s performance, but the resulting resampling factor does not divide evenly into that chunk size.
- test_expand_reduce_aggregate_identity()[source]
Test classmethod ‘expand_reduce’ returns the original dask array when factor is 1.
- test_expand_reduce_aggregate_invalid(dim0_factor)[source]
Test classmethod ‘expand_reduce’ fails when factor does not divide evenly.
- satpy.tests.test_resample.get_test_data(input_shape=(100, 50), output_shape=(200, 100), output_proj=None, input_dims=('y', 'x'))[source]
Get common data objects used in testing.
- Returns
input_data_on_area: DataArray with dimensions as if it is a gridded dataset.
input_area_def: AreaDefinition of the above DataArray
input_data_on_swath: DataArray with dimensions as if it is a swath.
input_swath: SwathDefinition of the above DataArray
target_area_def: AreaDefinition to be used as a target for resampling
- Return type