satpy.tests.reader_tests.gms.test_gms5_vissr_l1b module
Unit tests for GMS-5 VISSR reader.
- class satpy.tests.reader_tests.gms.test_gms5_vissr_l1b.TestCorruptFile[source]
Bases:
object
Test reading corrupt files.
- class satpy.tests.reader_tests.gms.test_gms5_vissr_l1b.TestEarthMask[source]
Bases:
object
Test getting the earth mask.
- class satpy.tests.reader_tests.gms.test_gms5_vissr_l1b.TestFileHandler[source]
Bases:
object
Test VISSR file handler.
- _patch_number_of_pixels_per_scanline(monkeypatch)[source]
Patch data types so that each scanline has two pixels.
- cal_params(vis_calibration, ir1_calibration, ir2_calibration, wv_calibration)[source]
Get calibration parameters.
- coord_conv()[source]
Get parameters for coordinate conversions.
Adjust pixel offset so that the first column is at the image center. This has the advantage that we can test with very small 2x2 images. Otherwise, all pixels would be in space.
- coordinate_conversion(coord_conv, simple_coord_conv_table)[source]
Get all coordinate conversion parameters.
- lons_lats_exp(dataset_id)[source]
Get expected lon/lat coordinates.
Computed with JMA’s Msial library for 2 pixels near the central column (6688.5/1672.5 for VIS/IR).
VIS:
pix = [6688, 6688, 6689, 6689] lin = [2744, 8356, 2744, 8356]
IR1:
pix = [1672, 1672, 1673, 1673] lin = [686, 2089, 686, 2089]
Get navigation parameters.
- orbit_prediction(orbit_prediction_1, orbit_prediction_2)[source]
Get predictions of orbital parameters.
- class satpy.tests.reader_tests.gms.test_gms5_vissr_l1b.VissrFileWriter(ch_type, open_function)[source]
Bases:
object
Write data in VISSR archive format.
Initialize the writer.
- Parameters:
ch_type – Channel type (VIS or IR)
open_function – Open function to be used (e.g. open or gzip.open)
- _write(fd, data, offset=None)[source]
Write data to file.
If specified, prepend with ‘offset’ placeholder bytes.
- image_params_order = ['mode', 'coordinate_conversion', 'attitude_prediction', 'orbit_prediction_1', 'orbit_prediction_2', 'vis_calibration', 'ir1_calibration', 'ir2_calibration', 'wv_calibration', 'simple_coordinate_conversion_table']