Exemple #1
0
    def test_add_easy_fcdr_variables(self):
        delta_x = 15
        delta_y = 16
        ha = HIRSAssert()
        ds = xr.Dataset()
        HIRS3.add_easy_fcdr_variables(ds, 7, lut_size=23, corr_dx=delta_x, corr_dy=delta_y)

        ha.assert_easy_fcdr_uncertainties(ds, chunking=(10, 7, 56))

        Assertions.assert_correlation_matrices(self, ds, NUM_CHANNELS)
        Assertions.assert_lookup_tables(self, ds, NUM_CHANNELS, 23)
        Assertions.assert_correlation_coefficients(self, ds, NUM_CHANNELS, delta_x, delta_y)
Exemple #2
0
    def test_add_original_variables(self):
        ha = HIRSAssert()
        ds = xr.Dataset()
        HIRS3.add_original_variables(ds, 6, srf_size=SRF_SIZE)

        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=(10, 6, 56))
        ha.assert_common_angles(ds, chunking=CHUNKING_2D)
        ha.assert_common_sensor_variables(ds, SRF_SIZE)
        ha.assert_extended_quality_flags(ds)
        ha.assert_coordinates(ds)
Exemple #3
0
    def test_add_template_key(self):
        ds = xr.Dataset()

        HIRS3.add_template_key(ds)

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