satpy.tests.reader_tests.test_goes_imager_nc_noaa module

Tests for the goes imager nc reader (NOAA CLASS variant).

class satpy.tests.reader_tests.test_goes_imager_nc_noaa.GOESNCBaseFileHandlerTest(methodName='runTest')[source]

Bases: TestCase

Testing the 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 = []
longMessage = True
setUp(xr_)[source]

Set up the tests.

test_calibrate_ir()[source]

Test IR calibration.

test_calibrate_vis()[source]

Test VIS calibration.

test_end_time()[source]

Test dataset end time stamp.

test_get_nadir_pixel()[source]

Test identification of the nadir pixel.

test_init()[source]

Tests reader initialization.

test_ircounts2radiance()[source]

Test conversion from IR counts to radiance.

test_start_time()[source]

Test dataset start time stamp.

test_viscounts2radiance()[source]

Test conversion from VIS counts to radiance.

class satpy.tests.reader_tests.test_goes_imager_nc_noaa.GOESNCFileHandlerTest(methodName='runTest')[source]

Bases: TestCase

Test the 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 = []
longMessage = True
setUp(xr_)[source]

Set up the tests.

test_calibrate()[source]

Test whether the correct calibration methods are called.

test_get_dataset_coords()[source]

Test whether coordinates returned by get_dataset() are correct.

test_get_dataset_counts()[source]

Test whether counts returned by get_dataset() are correct.

test_get_dataset_invalid()[source]

Test handling of invalid calibrations.

test_get_dataset_masks()[source]

Test whether data and coordinates are masked consistently.

test_get_sector()[source]

Test sector identification.

class satpy.tests.reader_tests.test_goes_imager_nc_noaa.TestChannelIdentification[source]

Bases: object

Test identification of channel type.

test_invalid_channel()[source]

Test handling of invalid channel type.

test_is_vis_channel(channel_name, expected)[source]

Test vis channel identification.

class satpy.tests.reader_tests.test_goes_imager_nc_noaa.TestMetadata[source]

Bases: object

Testcase for dataset metadata.

_apply_yaw_flip(data_array, yaw_flip)[source]
_assert_earth_mask_equal(metadata, expected)[source]
channel_id(request)[source]

Set channel ID.

dataset(lons_lats, channel_id)[source]

Create a fake dataset.

earth_mask(yaw_flip)[source]

Get expected earth mask.

expected(geometry, earth_mask, yaw_flip)[source]

Define expected metadata.

geometry(channel_id, yaw_flip)[source]

Get expected geometry.

lons_lats(yaw_flip)[source]

Get longitudes and latitudes.

mocked_file_handler(dataset)[source]

Mock file handler to load the given fake dataset.

test_metadata(mocked_file_handler, expected)[source]

Test dataset metadata.

yaw_flip(request)[source]

Set yaw-flip flag.