#!/usr/bin/env python

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

from sadcat import *

# add downloaded MODIS images to catalog
cic = CommonImagesCatalog()
cic.fill_database('amsr2', '/Data/sat/downloads/AMSR2/L3B/', 'GW1AM2*L3SGT06HA1110110.h5', AMSR2Image)
cic = None

# L2-processing of ASAR (WEB)
amsr2Catalog = L2Catalog('amsr2')
amsr2Catalog.process(AMSR2Image)
amsr2Catalog = None

