satpy.tests.reader_tests.test_oli_tirs_l1_tif module

Unittests for generic image reader.

class satpy.tests.reader_tests.test_oli_tirs_l1_tif.TestOLITIRSL1[source]

Bases: object

Test generic image reader.

setup_method(tmp_path)[source]

Set up the filename and filetype info dicts..

test_angles(all_files, sza_data)[source]

Test calibration modes for the reader.

test_area_def(mda_file)[source]

Check we can get the area defs properly.

test_badfiles(mda_file, b4_file)[source]

Test loading a Landsat Scene with bad data.

test_basicload(l1_area, b4_file, b11_file, mda_file)[source]

Test loading a Landsat Scene.

test_calibration_counts(all_files, b4_data, b11_data)[source]

Test counts calibration mode for the reader.

test_calibration_highlevel(all_files, b4_data, b11_data)[source]

Test high level calibration modes for the reader.

test_calibration_radiance(all_files, b4_data, b11_data)[source]

Test radiance calibration mode for the reader.

test_ch_startend(b4_file, sza_file, mda_file)[source]

Test correct retrieval of start/end times.

test_loading_badchan(mda_file, b11_file)[source]

Test loading a Landsat Scene with bad channel requests.

test_loading_badfil(mda_file, b4_file)[source]

Test loading a Landsat Scene with bad channel requests.

test_loading_gd(mda_file, b4_file)[source]

Test loading a Landsat Scene with good channel requests.

test_metadata(mda_file)[source]

Check that metadata values loaded correctly.

satpy.tests.reader_tests.test_oli_tirs_l1_tif.all_files(b4_file, b11_file, mda_file, sza_file)[source]

Return all the files.

satpy.tests.reader_tests.test_oli_tirs_l1_tif.b11_data()[source]

Get the data for the b11 channel.

satpy.tests.reader_tests.test_oli_tirs_l1_tif.b11_file(l1_files_path, b11_data, l1_area)[source]

Create the file for the b11 channel.

satpy.tests.reader_tests.test_oli_tirs_l1_tif.b4_data()[source]

Get the data for the b4 channel.

satpy.tests.reader_tests.test_oli_tirs_l1_tif.b4_file(l1_files_path, b4_data, l1_area)[source]

Create the file for the b4 channel.

satpy.tests.reader_tests.test_oli_tirs_l1_tif.create_tif_file(data, name, area, filename)[source]

Create a tif file.

satpy.tests.reader_tests.test_oli_tirs_l1_tif.l1_area()[source]

Get the landsat 1 area def.

satpy.tests.reader_tests.test_oli_tirs_l1_tif.l1_files_path(tmp_path_factory)[source]

Create the path for l1 files.

satpy.tests.reader_tests.test_oli_tirs_l1_tif.mda_file(l1_files_path)[source]

Create the metadata xml file.

satpy.tests.reader_tests.test_oli_tirs_l1_tif.sza_data()[source]

Get the data for the sza.

satpy.tests.reader_tests.test_oli_tirs_l1_tif.sza_file(l1_files_path, sza_data, l1_area)[source]

Create the file for the sza.