satpy.tests.reader_tests.test_mws_l1b_nc module

The mws_l1b_nc reader tests.

This module tests the reading of the MWS l1b netCDF format data as per version v4B issued 22 November 2021.

class satpy.tests.reader_tests.test_mws_l1b_nc.MWSL1BFakeFileWriter(file_path)[source]

Bases: object

Writer class of fake mws level-1b data.

Init.

static _create_scan_dimensions(dataset)[source]

Create the scan/fovs dimensions.

static _write_attributes(dataset)[source]

Write attributes.

static _write_calibration_data_group(dataset)[source]

Write the calibration data group.

static _write_measurement_data_group(dataset)[source]

Write the measurement data group.

static _write_navigation_data_group(dataset)[source]

Write the navigation data group.

static _write_quality_group(dataset)[source]

Write the quality group.

static _write_status_group(dataset)[source]

Write the status group.

write()[source]

Write fake data to file.

class satpy.tests.reader_tests.test_mws_l1b_nc.TestMwsL1bNCFileHandler[source]

Bases: object

Test the MWSL1BFile reader.

static test_drop_coords(reader)[source]

Test drop coordinates.

test_end_time(reader)[source]

Test acquiring the end time.

test_get_dataset_aux_data_expected_data_missing(caplog, reader)[source]

Test get auxillary dataset which is not present but supposed to be in file.

test_get_dataset_aux_data_not_supported(reader)[source]

Test get auxillary dataset not supported.

test_get_dataset_get_channeldata_bts(reader)[source]

Test getting channel data.

test_get_dataset_get_channeldata_counts(reader)[source]

Test getting channel data.

test_get_dataset_logs_debug_message(caplog, fake_file, reader)[source]

Test get dataset return none if data does not exist.

test_get_dataset_return_none_if_data_not_exist(reader)[source]

Test get dataset return none if data does not exist.

test_get_global_attributes(reader)[source]

Test get global attributes.

test_get_navigation_longitudes(caplog, fake_file, reader)[source]

Test get the longitudes.

test_manage_attributes(mock, reader)[source]

Test manage attributes.

test_platform_name(reader)[source]

Test getting the platform name.

test_sensor(reader)[source]

Test sensor.

test_standardize_dims(reader, dims)[source]

Test standardize dims.

test_start_time(reader)[source]

Test acquiring the start time.

test_sub_satellite_latitude_end(reader)[source]

Test getting the latitude of sub-satellite point at end of the product.

test_sub_satellite_latitude_start(reader)[source]

Test getting the latitude of sub-satellite point at start of the product.

test_sub_satellite_longitude_end(reader)[source]

Test getting the longitude of sub-satellite point at end of the product.

test_sub_satellite_longitude_start(reader)[source]

Test getting the longitude of sub-satellite point at start of the product.

satpy.tests.reader_tests.test_mws_l1b_nc.fake_file(tmp_path)[source]

Return file path to level-1b file.

satpy.tests.reader_tests.test_mws_l1b_nc.reader(fake_file)[source]

Return reader of mws level-1b data.

satpy.tests.reader_tests.test_mws_l1b_nc.test_get_channel_index_from_name(name, index)[source]

Test getting the MWS channel index from the channel name.

satpy.tests.reader_tests.test_mws_l1b_nc.test_get_channel_index_from_name_throw_exception()[source]

Test that an excpetion is thrown when getting the MWS channel index from an unsupported name.