Exemple #1
0
def test_read_hdf4():
    filename = valid_hdf_sd_file
    sds, vds = __read_hdf4(filename, ['Solution_Ocean', 'Path_Radiance_Land', 'Mean_Reflectance_Land'])

    # VD variable are listed in the VD part of the tuple, but not in the SD part
    eq_(True, 'Solution_Ocean' in vds)
    eq_(False, 'Solution_Ocean' in sds)

    # SD variable are listed in the SD part of the tuple, but not in the VD part
    eq_(True, 'Path_Radiance_Land' in sds)
    eq_(False, 'Path_Radiance_Land' in vds)
    eq_(True, 'Mean_Reflectance_Land' in sds)
    eq_(False, 'Mean_Reflectance_Land' in vds)
Exemple #2
0
def should_raise_io_error_with_non_hdf_file():
    __read_hdf4(valid_cloud_cci_filename, valid_cloud_cci_variable)
Exemple #3
0
def test_that_cannot_read_unknown_variables_and_valid_variables():
    filename = valid_hdf_sd_file
    sds, vds = __read_hdf4(filename, ['someBizarreVariableNobodyKnowsAbout', 'Solution_Ocean', 'Path_Radiance_Land',
                                      'Mean_Reflectance_Land'])
Exemple #4
0
def test_that_cannot_read_unknown_variables():
    filename = valid_hdf_sd_file
    sds, vds = __read_hdf4(filename, ['athing', 'unechose', 'einding'])