# clone repo
# git clone git@bitbucket.org:korosov/sadcat.git

import datetime as dt

# import everything from the sadcat package
from sadcat import *

# connect to the database
cic = CommonImagesCatalog()

# find images satisfying criteria
start = dt.date(2012, 1, 1)
polygon = "GeomFromText('LINESTRING(-15 78, 5 78, 5 81, -15 81, -15 78)')"
images = cic.find_image(sensor='asar', start=start, polygon=polygon)
