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(methodName='runTest')[source]
Bases:
TestCase
Tests for the ‘native’ resampling method.
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.
- 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