# MODIS product configuration

products = {
    'MCD43A4.006': {
        'day_offset': 8,
        'bandnames':
            ['B%sqa' % str(i).zfill(2) for i in range(1, 8)] +
            ['B%s' % str(i).zfill(2) for i in range(1, 8)],
        'overviews': ([False] * 7) + ([True] * 7)
    },
    'MOD09GA.006': {
        'day_offset': 0,
        'bandnames': [],
        'overviews': []
    },
    'MYD09GA.006': {
        'day_offset': 0,
        'bandnames': [],
        'overviews': []
    },
    'MOD09GQ.006': {
        'day_offset': 0,
        'bandnames': [],
        'overviews': []
    },
    'MYD09GQ.006': {
        'day_offset': 0,
        'bandnames': [],
        'overviews': []
    }
}

# MODIS product configuration

products = {
    'MCD43A4.006': {
        'day_offset': 8,
        'bandnames':
            ['B%sqa' % str(i).zfill(2) for i in range(1, 8)] +
            ['B%s' % str(i).zfill(2) for i in range(1, 8)],
        'overviews': ([False] * 7) + ([True] * 7)
    },
    'MOD09GA.006': {
        'day_offset': 0,
        'bandnames':
            ['numobs1km', 'state', 'senzen', 'senaz', 'geoflags', 'orbit', 'granule', 'numobs500m'] +
            ['B%s' % str(i).zfill(2) for i in range(1, 8)] +
            ['QC500m', 'coverage', 'obsnum', 'qscan'],
        'overviews': ([False] * 8) + ([True] * 7) + ([False] * 4)
    },
    'MYD09GA.006': {
        'day_offset': 0,
        'bandnames':
            ['numobs1km', 'state', 'senzen', 'senaz', 'geoflags', 'orbit', 'granule', 'numobs500m'] +
            ['B%s' % str(i).zfill(2) for i in range(1, 8)] +
            ['QC500m', 'coverage', 'obsnum', 'qscan'],
        'overviews': ([False] * 8) + ([True] * 7) + ([False] * 4)
    },
    'MOD09GQ.006': {
        'day_offset': 0,
        'bandnames': ['numobs', 'B01', 'B02', 'QC', 'coverage', 'obsnum', 'orbit', 'granule'],
        'overviews': [False, True, True, False, False, False, False, False]
    },
    'MYD09GQ.006': {
        'day_offset': 0,
        'bandnames': ['numobs', 'B01', 'B02', 'QC', 'coverage', 'obsnum', 'orbit', 'granule'],
        'overviews': [False, True, True, False, False, False, False, False]
    }
}

update products