Skip to content

Instantly share code, notes, and snippets.

@ra-tolson
Created May 10, 2017 17:13
Show Gist options
  • Save ra-tolson/ec26cfe56425be36e51a3a11c1e7e5d2 to your computer and use it in GitHub Desktop.
Save ra-tolson/ec26cfe56425be36e51a3a11c1e7e5d2 to your computer and use it in GitHub Desktop.
# This is to demonstrate https://github.com/Applied-GeoSolutions/gips/issues/147
import os
import datetime
import gippy
from gips.inventory import dbinv, orm
from gips.datahandler import worker
# manual setup before running this: load standard modis assets into inventory, but set
# status='scheduled' for MOD10A1.A2012336.h12v04.005.2012339213007.hdf
# setup:
os.environ['GIPS_ORM'] = 'true'
gippy.Options.SetVerbose(6) # substantial verbosity for testing purposes
orm.setup()
worker.fetch(2) # <-- pk of Asset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment