Esempio n. 1
0
def ingest_from_vers_1_lsasaf_et(input_file, dry_run=False):

    in_date = os.path.basename(input_file).split('_')[0]

    product_def = {
        'productcode': 'lsasaf-et',
        'subproductcode': 'et',
        'version': 'undefined',
        'type': 'Ingest'
    }

    product_in_info = {
        'scale_factor': 0.0001,
        'scale_offset': 0.0,
        'no_data': -1,
        'mask_min': None,
        'mask_max': None,
        'data_type_id': 'Ingest'
    }

    target_mapset = 'MSG-satellite-3km'
    ingestion.ingest_file_vers_1_0(input_file,
                                   in_date,
                                   product_def,
                                   target_mapset,
                                   logger,
                                   product_in_info,
                                   echo_query=False)
    return 0
Esempio n. 2
0
def ingest_from_vers_1_modis_firms(input_file, dry_run=False):

    in_date = os.path.basename(input_file).split('_')[0]

    product_def = {
        'productcode': 'modis-firms',
        'subproductcode': '10dcount',
        'version': 'v5.0',
        'type': 'Derived'
    }

    product_in_info = {
        'scale_factor': 1.0,
        'scale_offset': 0.0,
        'no_data': 0,
        'mask_min': None,
        'mask_max': None,
        'data_type_id': 'Derived'
    }

    target_mapset = 'SPOTV-Africa-1km'
    ingestion.ingest_file_vers_1_0(input_file,
                                   in_date,
                                   product_def,
                                   target_mapset,
                                   logger,
                                   product_in_info,
                                   echo_query=False)
    return 0
Esempio n. 3
0
def ingest_from_vers_1_vgt_dmp(input_file, dry_run=False):

    in_date = os.path.basename(input_file).split('_')[0]

    product_def = {
        'productcode': 'vgt-dmp',
        'subproductcode': 'dmp',
        'version': 'sv-v1',
        'type': 'Ingest'
    }

    product_in_info = {
        'scale_factor': 0.01,
        'scale_offset': 0.0,
        'no_data': -32768,
        'mask_min': None,
        'mask_max': None,
        'data_type_id': 'Ingest'
    }

    target_mapset = 'SPOTV-Africa-1km'
    ingestion.ingest_file_vers_1_0(input_file,
                                   in_date,
                                   product_def,
                                   target_mapset,
                                   logger,
                                   product_in_info,
                                   echo_query=False)
    return 0