#!/usr/bin/env python

# headless matplotlib (for johansen)
import matplotlib
matplotlib.use('Agg')

from sadcat import *

# add downloaded ASAR images to catalog
#cic = CommonImagesCatalog()
#cic.fill_database('asar', '/Data/sat/downloads/ASAR/greece/', 'ASA_WSM*.N1', AsarImage)
#cic.fill_database('asar', '/Data/sat/downloads/ASAR/malta/', 'ASA_WSM*.N1', AsarImage)
#cic.fill_database('asar', '/Data/sat/downloads/ASAR/adriatic/', 'ASA_WSM*.N1', AsarImage)
#cic.fill_database('asar', '/Data/sat/downloads/ASAR/ligurian/', 'ASA_WSM*.N1', AsarImage)
#cic.fill_database('asar', '/Data/sat/downloads/ASAR/blacksea/', 'ASA_WSM*.N1', AsarImage)
#cic = None

# L2-processing of ASAR (WEB)
#asarCatalog = L2Catalog('asar')
#asarCatalog.process(AsarImage)
#asarCatalog = None

# L2-processing of ASAR_WIND
asar2windCatalog = L2Catalog('asar_wind_barents')
asar2windCatalog.process(AsarImage)
asar2windCatalog = None

# L2-processing of ASAR_WIND
#asar2windCatalog = L2Catalog('asar_wind_thredds')
#asar2windCatalog.process(AsarImage)
#asar2windCatalog = None

# L3 processing: temporal and spatial binning, visualisation
#l3pModisStd = L3PROC('asar_std_BlackSea', 'asar_wind', AsarWindImage, 20)
#l3pModisStd.l3('hourly')



