Пример #1
0
    def test_add_easy_fcdr_variables(self):
        delta_x = 16
        delta_y = 17
        ha = HIRSAssert()
        ds = xr.Dataset()
        HIRS4.add_easy_fcdr_variables(ds, 7, lut_size=24, corr_dx=delta_x, corr_dy=delta_y)

        ha.assert_easy_fcdr_uncertainties(ds, chunking=CHUNKING_3D)

        Assertions.assert_correlation_matrices(self, ds, NUM_CHANNELS)
        Assertions.assert_lookup_tables(self, ds, NUM_CHANNELS, 24)
        Assertions.assert_correlation_coefficients(self, ds, NUM_CHANNELS, delta_x, delta_y)
Пример #2
0
    def test_add_original_variables(self):
        ha = HIRSAssert()
        ds = xr.Dataset()
        HIRS4.add_original_variables(ds, 6)

        Assertions.assert_geolocation_variables(self, ds, 56, 6, chunking=CHUNKING_2D)
        Assertions.assert_quality_flags(self, ds, 56, 6, chunking=CHUNKING_2D)

        ha.assert_bt_variable(ds, chunking=CHUNKING_3D)
        ha.assert_common_angles(ds, chunking=CHUNKING_2D)
        ha.assert_common_sensor_variables(ds, 2751)
        ha.assert_extended_quality_flags(ds)
        ha.assert_coordinates(ds)
Пример #3
0
    def test_add_template_key(self):
        ds = xr.Dataset()

        HIRS4.add_template_key(ds)

        self.assertEqual("HIRS4", ds.attrs["template_key"])
Пример #4
0
 def test_add_full_fcdr_variables(self):
     ha = HIRSAssert()
     ds = xr.Dataset()
     HIRS4.add_full_fcdr_variables(ds, 6)
     ha.assert_minor_frame_flags(ds)
Пример #5
0
 def test_add_specific_global_metadata(self):
     ha = HIRSAssert()
     ds = xr.Dataset()
     HIRS4.add_specific_global_metadata(ds)
     ha.assert_specific_global_metadata(ds)
Пример #6
0
 def test_get_swath_width(self):
     self.assertEqual(56, HIRS4.get_swath_width())