satpy.tests.reader_tests.test_grib module
Module for testing the satpy.readers.grib module.
- class satpy.tests.reader_tests.test_grib.FakeGRIB(messages=None, proj_params=None, latlons=None)[source]
Bases:
objectFake GRIB file returned by pygrib.open.
Init the grib file.
- class satpy.tests.reader_tests.test_grib.FakeMessage(values, proj_params=None, latlons=None, **attrs)[source]
Bases:
objectFake message returned by pygrib.open().message(x).
Init the message.
- class satpy.tests.reader_tests.test_grib.TestGRIBReader[source]
Bases:
objectTest GRIB Reader.
- test_area_def_crs(proj_params, lon_corners, lat_corners)[source]
Check that the projection is accurate.
- test_jscanspositively(proj_params, lon_corners, lat_corners)[source]
Check that data is flipped if the jScansPositively is present.
- test_missing_attributes(proj_params, lon_corners, lat_corners)[source]
Check that the grib reader handles missing attributes in the grib file.
- yaml_file = 'grib.yaml'