satpy.tests.reader_tests.test_sar_c_safe module

Module for testing the satpy.readers.sar-c_safe module.

class satpy.tests.reader_tests.test_sar_c_safe.Calibration(value)[source]

Bases: Enum

Calibration levels.

beta_nought = 3
dn = 4
gamma = 1
sigma_nought = 2
class satpy.tests.reader_tests.test_sar_c_safe.TestSAFEGRD(methodName='runTest')[source]

Bases: TestCase

Test the SAFE GRD file handler.

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.

_classSetupFailed = False
_class_cleanups = []
setUp(mocked_rio_open)[source]

Set up the test case.

test_instantiate()[source]

Test initialization of file handlers.

test_read_calibrated_dB(mocked_xarray_open)[source]

Test the calibration routines.

test_read_calibrated_natural(mocked_xarray_open)[source]

Test the calibration routines.

test_read_lon_lats()[source]

Test reading lons and lats.

class satpy.tests.reader_tests.test_sar_c_safe.TestSAFEXMLAnnotation(methodName='runTest')[source]

Bases: TestCase

Test the SAFE XML Annotation file handler.

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.

_classSetupFailed = False
_class_cleanups = []
setUp()[source]

Set up the test case.

test_incidence_angle()[source]

Test reading the incidence angle.

class satpy.tests.reader_tests.test_sar_c_safe.TestSAFEXMLCalibration(methodName='runTest')[source]

Bases: TestCase

Test the SAFE XML Calibration file handler.

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.

_classSetupFailed = False
_class_cleanups = []
setUp()[source]

Set up the test case.

test_beta_calibration_array()[source]

Test reading the beta calibration array.

test_dn_calibration_array()[source]

Test reading the dn calibration array.

test_gamma_calibration_array()[source]

Test reading the gamma calibration array.

test_get_calibration_constant()[source]

Test getting the calibration constant.

test_get_calibration_dataset()[source]

Test using get_dataset for the calibration.

test_get_calibration_dataset_has_right_chunk_size()[source]

Test using get_dataset for the calibration yields array with right chunksize.

test_sigma_calibration_array()[source]

Test reading the sigma calibration array.

class satpy.tests.reader_tests.test_sar_c_safe.TestSAFEXMLNoise(methodName='runTest')[source]

Bases: TestCase

Test the SAFE XML Noise file handler.

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.

_classSetupFailed = False
_class_cleanups = []
setUp()[source]

Set up the test case.

test_azimuth_noise_array()[source]

Test reading the azimuth-noise array.

test_azimuth_noise_array_with_holes()[source]

Test reading the azimuth-noise array.

test_get_noise_dataset()[source]

Test using get_dataset for the noise.

test_get_noise_dataset_has_right_chunk_size()[source]

Test using get_dataset for the noise has right chunk size in result.

test_range_noise_array()[source]

Test reading the range-noise array.