Ejemplo n.º 1
0
    def test_add_original_variables(self):
        ha = HIRSAssert()
        ds = xr.Dataset()
        HIRS2.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=(10, 6, 56))
        ha.assert_common_angles(ds, chunking=CHUNKING_2D)
        ha.assert_common_sensor_variables(ds, 102)
        ha.assert_coordinates(ds)
Ejemplo n.º 2
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)
Ejemplo n.º 3
0
    def test_add_easy_fcdr_variables(self):
        delta_x = 14
        delta_y = 15
        ha = HIRSAssert()
        ds = xr.Dataset()

        HIRS2.add_easy_fcdr_variables(ds, 7, lut_size=22, 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, 22)
        Assertions.assert_correlation_coefficients(self, ds, NUM_CHANNELS, delta_x, delta_y)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 6
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)