import os

CONFIG = {
    'local_data_dir': 'barrel_data/',
    'remote_data_dir': 'https://spdf.gsfc.nasa.gov/pub/data/barrel/',
    'defaults': {
        '1a': {'trange': ['2013-01-28', '2013-02-14']},
        '1b': {'trange': ['2013-01-02', '2013-01-09']},
        '1c': {'trange': ['2013-01-16', '2013-01-26']},
        '1d': {'trange': ['2013-01-04', '2013-01-21']},
        '1g': {'trange': ['2013-01-14', '2013-01-27']},
        '1h': {'trange': ['2013-01-19', '2013-02-11']},
        '1i': {'trange': ['2013-01-09', '2013-02-16']},
        '1j': {'trange': ['2013-01-01', '2013-01-14']},
        '1k': {'trange': ['2013-01-05', '2013-01-21']},
        '1m': {'trange': ['2013-01-06', '2013-01-12']},
        '1n': {'trange': ['2013-01-08', '2013-01-16']},
        '1o': {'trange': ['2013-01-09', '2013-01-17']},
        '1q': {'trange': ['2013-01-20', '2013-02-06']},
        '1r': {'trange': ['2013-01-21', '2013-01-23']},
        '1s': {'trange': ['2013-01-22', '2013-01-27']},
        '1t': {'trange': ['2013-01-24', '2013-02-15']},
        '1u': {'trange': ['2013-01-26', '2013-02-09']},
        '1v': {'trange': ['2013-01-30', '2013-02-06']},
        '2a': {'trange': ['2014-01-16', '2014-02-04']},
        '2b': {'trange': ['2014-01-17', '2014-02-07']},
        '2c': {'trange': ['2014-01-20', '2014-01-25']},
        '2d': {'trange': ['2014-01-01', '2014-01-01']},
        '2e': {'trange': ['2014-01-27', '2014-01-29']},
        '2f': {'trange': ['2014-02-01', '2014-02-03']},
        '2i': {'trange': ['2013-12-31', '2014-01-14']},
        '2k': {'trange': ['2014-01-04', '2014-01-12']},
        '2l': {'trange': ['2014-01-06', '2014-02-03']},
        '2m': {'trange': ['2014-01-11', '2014-01-13']},
        '2n': {'trange': ['2014-01-18', '2014-01-19']},
        '2o': {'trange': ['2014-01-26', '2014-02-09']},
        '2p': {'trange': ['2014-01-30', '2014-02-11']},
        '2q': {'trange': ['2014-02-02', '2014-02-04']},
        '2t': {'trange': ['2013-01-27', '2014-01-17']},
        '2w': {'trange': ['2013-12-31', '2014-01-11']},
        '2x': {'trange': ['2014-01-04', '2014-01-22']},
        '2y': {'trange': ['2014-01-11', '2014-01-19']},
        '3a': {'trange': ['2015-08-10', '2015-08-10']},
        '3b': {'trange': ['2015-08-13', '2015-08-13']},
        '3c': {'trange': ['2015-08-17', '2015-08-18']},
        '3d': {'trange': ['2015-08-19', '2015-08-19']},
        '3e': {'trange': ['2015-08-21', '2015-08-22']},
        '3f': {'trange': ['2015-08-25', '2015-08-26']},
        '3g': {'trange': ['2015-08-25', '2015-08-26']},
        '4a': {'trange': ['2016-08-13', '2016-08-14']},
        '4b': {'trange': ['2016-08-16', '2016-08-17']},
        '4c': {'trange': ['2016-08-21', '2016-08-22']},
        '4d': {'trange': ['2016-08-21', '2016-08-22']},
        '4e': {'trange': ['2016-08-24', '2016-08-25']},
        '4f': {'trange': ['2016-08-28', '2016-08-29']},
        '4g': {'trange': ['2016-08-29', '2016-08-30']},
        '4h': {'trange': ['2016-08-30', '2016-08-31']},
        '5a': {'trange': ['2018-06-25', '2018-06-26']},
        '6a': {'trange': ['2018-02-09', '2019-02-21']},
        '7a': {'trange': ['2019-12-29', '2020-04-01']}
    }
}

# override local data directory with environment variables
if os.environ.get('SPEDAS_DATA_DIR'):
    CONFIG['local_data_dir'] = os.sep.join(
        [os.environ['SPEDAS_DATA_DIR'], 'barrel'])

if os.environ.get('GOES_DATA_DIR'):
    CONFIG['local_data_dir'] = os.environ['BARREL_DATA_DIR']
a23b218bd4d91857416c09c3643de3954986656b
<mask token>

<mask token>
if os.environ.get('SPEDAS_DATA_DIR'):
    CONFIG['local_data_dir'] = os.sep.join([os.environ['SPEDAS_DATA_DIR'],
        'barrel'])
if os.environ.get('GOES_DATA_DIR'):
    CONFIG['local_data_dir'] = os.environ['BARREL_DATA_DIR']

<mask token>
CONFIG = {'local_data_dir': 'barrel_data/', 'remote_data_dir':
    'https://spdf.gsfc.nasa.gov/pub/data/barrel/', 'defaults': {'1a': {
    'trange': ['2013-01-28', '2013-02-14']}, '1b': {'trange': ['2013-01-02',
    '2013-01-09']}, '1c': {'trange': ['2013-01-16', '2013-01-26']}, '1d': {
    'trange': ['2013-01-04', '2013-01-21']}, '1g': {'trange': ['2013-01-14',
    '2013-01-27']}, '1h': {'trange': ['2013-01-19', '2013-02-11']}, '1i': {
    'trange': ['2013-01-09', '2013-02-16']}, '1j': {'trange': ['2013-01-01',
    '2013-01-14']}, '1k': {'trange': ['2013-01-05', '2013-01-21']}, '1m': {
    'trange': ['2013-01-06', '2013-01-12']}, '1n': {'trange': ['2013-01-08',
    '2013-01-16']}, '1o': {'trange': ['2013-01-09', '2013-01-17']}, '1q': {
    'trange': ['2013-01-20', '2013-02-06']}, '1r': {'trange': ['2013-01-21',
    '2013-01-23']}, '1s': {'trange': ['2013-01-22', '2013-01-27']}, '1t': {
    'trange': ['2013-01-24', '2013-02-15']}, '1u': {'trange': ['2013-01-26',
    '2013-02-09']}, '1v': {'trange': ['2013-01-30', '2013-02-06']}, '2a': {
    'trange': ['2014-01-16', '2014-02-04']}, '2b': {'trange': ['2014-01-17',
    '2014-02-07']}, '2c': {'trange': ['2014-01-20', '2014-01-25']}, '2d': {
    'trange': ['2014-01-01', '2014-01-01']}, '2e': {'trange': ['2014-01-27',
    '2014-01-29']}, '2f': {'trange': ['2014-02-01', '2014-02-03']}, '2i': {
    'trange': ['2013-12-31', '2014-01-14']}, '2k': {'trange': ['2014-01-04',
    '2014-01-12']}, '2l': {'trange': ['2014-01-06', '2014-02-03']}, '2m': {
    'trange': ['2014-01-11', '2014-01-13']}, '2n': {'trange': ['2014-01-18',
    '2014-01-19']}, '2o': {'trange': ['2014-01-26', '2014-02-09']}, '2p': {
    'trange': ['2014-01-30', '2014-02-11']}, '2q': {'trange': ['2014-02-02',
    '2014-02-04']}, '2t': {'trange': ['2013-01-27', '2014-01-17']}, '2w': {
    'trange': ['2013-12-31', '2014-01-11']}, '2x': {'trange': ['2014-01-04',
    '2014-01-22']}, '2y': {'trange': ['2014-01-11', '2014-01-19']}, '3a': {
    'trange': ['2015-08-10', '2015-08-10']}, '3b': {'trange': ['2015-08-13',
    '2015-08-13']}, '3c': {'trange': ['2015-08-17', '2015-08-18']}, '3d': {
    'trange': ['2015-08-19', '2015-08-19']}, '3e': {'trange': ['2015-08-21',
    '2015-08-22']}, '3f': {'trange': ['2015-08-25', '2015-08-26']}, '3g': {
    'trange': ['2015-08-25', '2015-08-26']}, '4a': {'trange': ['2016-08-13',
    '2016-08-14']}, '4b': {'trange': ['2016-08-16', '2016-08-17']}, '4c': {
    'trange': ['2016-08-21', '2016-08-22']}, '4d': {'trange': ['2016-08-21',
    '2016-08-22']}, '4e': {'trange': ['2016-08-24', '2016-08-25']}, '4f': {
    'trange': ['2016-08-28', '2016-08-29']}, '4g': {'trange': ['2016-08-29',
    '2016-08-30']}, '4h': {'trange': ['2016-08-30', '2016-08-31']}, '5a': {
    'trange': ['2018-06-25', '2018-06-26']}, '6a': {'trange': ['2018-02-09',
    '2019-02-21']}, '7a': {'trange': ['2019-12-29', '2020-04-01']}}}
if os.environ.get('SPEDAS_DATA_DIR'):
    CONFIG['local_data_dir'] = os.sep.join([os.environ['SPEDAS_DATA_DIR'],
        'barrel'])
if os.environ.get('GOES_DATA_DIR'):
    CONFIG['local_data_dir'] = os.environ['BARREL_DATA_DIR']

import os
CONFIG = {'local_data_dir': 'barrel_data/', 'remote_data_dir':
    'https://spdf.gsfc.nasa.gov/pub/data/barrel/', 'defaults': {'1a': {
    'trange': ['2013-01-28', '2013-02-14']}, '1b': {'trange': ['2013-01-02',
    '2013-01-09']}, '1c': {'trange': ['2013-01-16', '2013-01-26']}, '1d': {
    'trange': ['2013-01-04', '2013-01-21']}, '1g': {'trange': ['2013-01-14',
    '2013-01-27']}, '1h': {'trange': ['2013-01-19', '2013-02-11']}, '1i': {
    'trange': ['2013-01-09', '2013-02-16']}, '1j': {'trange': ['2013-01-01',
    '2013-01-14']}, '1k': {'trange': ['2013-01-05', '2013-01-21']}, '1m': {
    'trange': ['2013-01-06', '2013-01-12']}, '1n': {'trange': ['2013-01-08',
    '2013-01-16']}, '1o': {'trange': ['2013-01-09', '2013-01-17']}, '1q': {
    'trange': ['2013-01-20', '2013-02-06']}, '1r': {'trange': ['2013-01-21',
    '2013-01-23']}, '1s': {'trange': ['2013-01-22', '2013-01-27']}, '1t': {
    'trange': ['2013-01-24', '2013-02-15']}, '1u': {'trange': ['2013-01-26',
    '2013-02-09']}, '1v': {'trange': ['2013-01-30', '2013-02-06']}, '2a': {
    'trange': ['2014-01-16', '2014-02-04']}, '2b': {'trange': ['2014-01-17',
    '2014-02-07']}, '2c': {'trange': ['2014-01-20', '2014-01-25']}, '2d': {
    'trange': ['2014-01-01', '2014-01-01']}, '2e': {'trange': ['2014-01-27',
    '2014-01-29']}, '2f': {'trange': ['2014-02-01', '2014-02-03']}, '2i': {
    'trange': ['2013-12-31', '2014-01-14']}, '2k': {'trange': ['2014-01-04',
    '2014-01-12']}, '2l': {'trange': ['2014-01-06', '2014-02-03']}, '2m': {
    'trange': ['2014-01-11', '2014-01-13']}, '2n': {'trange': ['2014-01-18',
    '2014-01-19']}, '2o': {'trange': ['2014-01-26', '2014-02-09']}, '2p': {
    'trange': ['2014-01-30', '2014-02-11']}, '2q': {'trange': ['2014-02-02',
    '2014-02-04']}, '2t': {'trange': ['2013-01-27', '2014-01-17']}, '2w': {
    'trange': ['2013-12-31', '2014-01-11']}, '2x': {'trange': ['2014-01-04',
    '2014-01-22']}, '2y': {'trange': ['2014-01-11', '2014-01-19']}, '3a': {
    'trange': ['2015-08-10', '2015-08-10']}, '3b': {'trange': ['2015-08-13',
    '2015-08-13']}, '3c': {'trange': ['2015-08-17', '2015-08-18']}, '3d': {
    'trange': ['2015-08-19', '2015-08-19']}, '3e': {'trange': ['2015-08-21',
    '2015-08-22']}, '3f': {'trange': ['2015-08-25', '2015-08-26']}, '3g': {
    'trange': ['2015-08-25', '2015-08-26']}, '4a': {'trange': ['2016-08-13',
    '2016-08-14']}, '4b': {'trange': ['2016-08-16', '2016-08-17']}, '4c': {
    'trange': ['2016-08-21', '2016-08-22']}, '4d': {'trange': ['2016-08-21',
    '2016-08-22']}, '4e': {'trange': ['2016-08-24', '2016-08-25']}, '4f': {
    'trange': ['2016-08-28', '2016-08-29']}, '4g': {'trange': ['2016-08-29',
    '2016-08-30']}, '4h': {'trange': ['2016-08-30', '2016-08-31']}, '5a': {
    'trange': ['2018-06-25', '2018-06-26']}, '6a': {'trange': ['2018-02-09',
    '2019-02-21']}, '7a': {'trange': ['2019-12-29', '2020-04-01']}}}
if os.environ.get('SPEDAS_DATA_DIR'):
    CONFIG['local_data_dir'] = os.sep.join([os.environ['SPEDAS_DATA_DIR'],
        'barrel'])
if os.environ.get('GOES_DATA_DIR'):
    CONFIG['local_data_dir'] = os.environ['BARREL_DATA_DIR']

import os

CONFIG = {
    'local_data_dir': 'barrel_data/',
    'remote_data_dir': 'https://spdf.gsfc.nasa.gov/pub/data/barrel/',
    'defaults': {
        '1a': {'trange': ['2013-01-28', '2013-02-14']},
        '1b': {'trange': ['2013-01-02', '2013-01-09']},
        '1c': {'trange': ['2013-01-16', '2013-01-26']},
        '1d': {'trange': ['2013-01-04', '2013-01-21']},
        '1g': {'trange': ['2013-01-14', '2013-01-27']},
        '1h': {'trange': ['2013-01-19', '2013-02-11']},
        '1i': {'trange': ['2013-01-09', '2013-02-16']},
        '1j': {'trange': ['2013-01-01', '2013-01-14']},
        '1k': {'trange': ['2013-01-05', '2013-01-21']},
        '1m': {'trange': ['2013-01-06', '2013-01-12']},
        '1n': {'trange': ['2013-01-08', '2013-01-16']},
        '1o': {'trange': ['2013-01-09', '2013-01-17']},
        '1q': {'trange': ['2013-01-20', '2013-02-06']},
        '1r': {'trange': ['2013-01-21', '2013-01-23']},
        '1s': {'trange': ['2013-01-22', '2013-01-27']},
        '1t': {'trange': ['2013-01-24', '2013-02-15']},
        '1u': {'trange': ['2013-01-26', '2013-02-09']},
        '1v': {'trange': ['2013-01-30', '2013-02-06']},
        '2a': {'trange': ['2014-01-16', '2014-02-04']},
        '2b': {'trange': ['2014-01-17', '2014-02-07']},
        '2c': {'trange': ['2014-01-20', '2014-01-25']},
        '2d': {'trange': ['2014-01-01', '2014-01-01']},
        '2e': {'trange': ['2014-01-27', '2014-01-29']},
        '2f': {'trange': ['2014-02-01', '2014-02-03']},
        '2i': {'trange': ['2013-12-31', '2014-01-14']},
        '2k': {'trange': ['2014-01-04', '2014-01-12']},
        '2l': {'trange': ['2014-01-06', '2014-02-03']},
        '2m': {'trange': ['2014-01-11', '2014-01-13']},
        '2n': {'trange': ['2014-01-18', '2014-01-19']},
        '2o': {'trange': ['2014-01-26', '2014-02-09']},
        '2p': {'trange': ['2014-01-30', '2014-02-11']},
        '2q': {'trange': ['2014-02-02', '2014-02-04']},
        '2t': {'trange': ['2013-01-27', '2014-01-17']},
        '2w': {'trange': ['2013-12-31', '2014-01-11']},
        '2x': {'trange': ['2014-01-04', '2014-01-22']},
        '2y': {'trange': ['2014-01-11', '2014-01-19']},
        '3a': {'trange': ['2015-08-10', '2015-08-10']},
        '3b': {'trange': ['2015-08-13', '2015-08-13']},
        '3c': {'trange': ['2015-08-17', '2015-08-18']},
        '3d': {'trange': ['2015-08-19', '2015-08-19']},
        '3e': {'trange': ['2015-08-21', '2015-08-22']},
        '3f': {'trange': ['2015-08-25', '2015-08-26']},
        '3g': {'trange': ['2015-08-25', '2015-08-26']},
        '4a': {'trange': ['2016-08-13', '2016-08-14']},
        '4b': {'trange': ['2016-08-16', '2016-08-17']},
        '4c': {'trange': ['2016-08-21', '2016-08-22']},
        '4d': {'trange': ['2016-08-21', '2016-08-22']},
        '4e': {'trange': ['2016-08-24', '2016-08-25']},
        '4f': {'trange': ['2016-08-28', '2016-08-29']},
        '4g': {'trange': ['2016-08-29', '2016-08-30']},
        '4h': {'trange': ['2016-08-30', '2016-08-31']},
        '5a': {'trange': ['2018-06-25', '2018-06-26']},
        '6a': {'trange': ['2018-02-09', '2019-02-21']},
        '7a': {'trange': ['2019-12-29', '2020-04-01']}
    }
}

# override local data directory with environment variables
if os.environ.get('SPEDAS_DATA_DIR'):
    CONFIG['local_data_dir'] = os.sep.join(
        [os.environ['SPEDAS_DATA_DIR'], 'barrel'])

if os.environ.get('GOES_DATA_DIR'):
    CONFIG['local_data_dir'] = os.environ['BARREL_DATA_DIR']