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[source]

Bases: object

Test the SAFE GRD file handler.

test_read_calibrated_dB(measurement_filehandler)[source]

Test the calibration routines.

test_read_calibrated_natural(measurement_filehandler)[source]

Test the calibration routines.

test_read_lon_lats(measurement_filehandler)[source]

Test reading lons and lats.

class satpy.tests.reader_tests.test_sar_c_safe.TestSAFEXMLCalibration[source]

Bases: object

Test the SAFE XML Calibration file handler.

setup_method()[source]

Set up testing.

test_beta_calibration_array(calibration_filehandler)[source]

Test reading the beta calibration array.

test_dn_calibration_array(calibration_filehandler)[source]

Test reading the dn calibration array.

test_gamma_calibration_array(calibration_filehandler)[source]

Test reading the gamma calibration array.

test_get_calibration_constant(calibration_filehandler)[source]

Test getting the calibration constant.

test_get_calibration_dataset(calibration_filehandler)[source]

Test using get_dataset for the calibration.

test_get_calibration_dataset_has_right_chunk_size(calibration_filehandler)[source]

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

test_sigma_calibration_array(calibration_filehandler)[source]

Test reading the sigma calibration array.

class satpy.tests.reader_tests.test_sar_c_safe.TestSAFEXMLNoise[source]

Bases: object

Test the SAFE XML Noise file handler.

setup_method()[source]

Set up the test case.

test_azimuth_noise_array(noise_filehandler)[source]

Test reading the azimuth-noise array.

test_azimuth_noise_array_with_holes(noise_with_holes_filehandler)[source]

Test reading the azimuth-noise array.

test_get_noise_dataset(noise_filehandler)[source]

Test using get_dataset for the noise.

test_get_noise_dataset_has_right_chunk_size(noise_filehandler)[source]

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

test_range_noise_array(noise_filehandler)[source]

Test reading the range-noise array.

satpy.tests.reader_tests.test_sar_c_safe.annotation_file(granule_directory)[source]

Create an annotation file.

satpy.tests.reader_tests.test_sar_c_safe.annotation_filehandler(annotation_file)[source]

Create an annotation filehandler.

satpy.tests.reader_tests.test_sar_c_safe.calibration_file(granule_directory)[source]

Create a calibration file.

satpy.tests.reader_tests.test_sar_c_safe.calibration_filehandler(calibration_file, annotation_filehandler)[source]

Create a calibration filehandler.

satpy.tests.reader_tests.test_sar_c_safe.granule_directory(tmp_path_factory)[source]

Create a granule directory.

satpy.tests.reader_tests.test_sar_c_safe.measurement_file(granule_directory)[source]

Create a tiff measurement file.

satpy.tests.reader_tests.test_sar_c_safe.measurement_filehandler(measurement_file, noise_filehandler, calibration_filehandler)[source]

Create a measurement filehandler.

satpy.tests.reader_tests.test_sar_c_safe.noise_file(granule_directory)[source]

Create a noise file.

satpy.tests.reader_tests.test_sar_c_safe.noise_filehandler(noise_file, annotation_filehandler)[source]

Create a noise filehandler.

satpy.tests.reader_tests.test_sar_c_safe.noise_with_holes_filehandler(annotation_filehandler, tmpdir_factory)[source]

Create a noise filehandler from data with holes.

satpy.tests.reader_tests.test_sar_c_safe.test_filename_filtering_from_reader(measurement_file, calibration_file, noise_file, annotation_file, tmp_path)[source]

Test that filenames get filtered before filehandlers are created.

satpy.tests.reader_tests.test_sar_c_safe.test_incidence_angle(annotation_filehandler)[source]

Test reading the incidence angle in an annotation file.

satpy.tests.reader_tests.test_sar_c_safe.test_reading_from_reader(measurement_file, calibration_file, noise_file, annotation_file)[source]

Test reading using the reader defined in the config.

satpy.tests.reader_tests.test_sar_c_safe.test_swath_def_contains_gcps(measurement_file, calibration_file, noise_file, annotation_file)[source]

Test reading using the reader defined in the config.