1.5.1.1.9.1.6.1.2. polar2grid.tests.test_writers.test_binary module
Tests for the binary writer.
-
class polar2grid.tests.test_writers.test_binary.TestBinaryWriter[source]
Bases: object
Test the binary writer.
-
static _generate_expected_output(src_data_arr, dst_dtype, enhance)[source]
-
setup_method()[source]
Add P2G configs to the Satpy path.
-
teardown_method()[source]
Reset Satpy config path back to the original value.
-
test_basic_write(tmpdir, src_dtype, dst_dtype, enhance)[source]
Test writing data to disk.
-
polar2grid.tests.test_writers.test_binary._create_fake_data_arr(shape=(100, 50), dims=('y', 'x'), dtype=<class 'numpy.float64'>)[source]
-
polar2grid.tests.test_writers.test_binary._int_min_max(dtype)[source]
-
polar2grid.tests.test_writers.test_binary._min_max_for_two_dtypes(src_dtype, dst_dtype)[source]