Esempio n. 1
0
    def setUp(self):
        path = os.path.dirname(__file__)

        cdr_path = os.path.join(path, 'ascat_test_data', 'tuw', 'ascat', 'ssm',
                                '55R21')

        grid_path = os.path.join(path, 'ascat_test_data', 'hsaf', 'grid')

        static_layer_path = os.path.join(path, 'ascat_test_data', 'hsaf',
                                         'static_layer')

        self.ascat_reader = ascat.AscatSsmCdr(
            cdr_path, grid_path, static_layer_path=static_layer_path)
Esempio n. 2
0
    def setUp(self):

        path = os.path.dirname(__file__)

        cdr_path = os.path.join(path, 'ascat_test_data', 'tuw', 'ascat', 'ssm',
                                '55R12')

        grid_path = os.path.join(path, 'ascat_test_data', 'hsaf', 'grid')

        ioclass_kws = {'loc_dim_name': 'gp', 'loc_ids_name': 'gpi'}

        self.ascat_reader = ascat.AscatSsmCdr(cdr_path,
                                              grid_path,
                                              ioclass_kws=ioclass_kws)
Esempio n. 3
0
import os
import matplotlib.pyplot as plt

testdata_folder = '/pytesmo/testdata'

ascat_data_folder = os.path.join(testdata_folder,
                                 'sat/ascat/netcdf/55R22')
ascat_grid_folder = os.path.join(testdata_folder,
                                 'sat/ascat/netcdf/grid')
static_layers_folder = os.path.join(testdata_folder,
                                    'sat/h_saf/static_layer')

# init the ASCAT SSM reader with the paths
ascat_SSM_reader = ascat.AscatSsmCdr(ascat_data_folder, ascat_grid_folder,
                                     grid_filename='TUW_WARP5_grid_info_2_1.nc',
                                     static_layer_path=static_layers_folder)
ascat_SSM_reader.read_bulk = True


# set path to ISMN data
ismn_data_folder = os.path.join(testdata_folder,
                                 'ismn/multinetwork/header_values')

# Initialize reader
ISMN_reader = ismn.ISMN_Interface(ismn_data_folder)


i = 0

label_ascat = 'sm'