gbdxtools Documentation
gbdxtools
gbdxtools
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
CHAPTER 3<br />
API <strong>Documentation</strong><br />
3.1 <strong>gbdxtools</strong>.interface module<br />
Authors: Kostas Stamatiou, Dan Getman, Nate Ricklin, Dahl Winters, Donnie Marino<br />
Contact: kostas.stamatiou@digitalglobe.com<br />
Functions to interface with GBDX API.<br />
class <strong>gbdxtools</strong>.interface.Interface(**kwargs)<br />
Task(task_name, **kwargs)<br />
Workflow(tasks, **kwargs)<br />
gbdx_connection = None<br />
3.2 <strong>gbdxtools</strong>.catalog module<br />
Authors: Kostas Stamatiou, Dan Getman, Nate Ricklin, Dahl Winters, Donnie Marino<br />
Contact: kostas.stamatiou@digitalglobe.com<br />
GBDX Catalog Interface.<br />
class <strong>gbdxtools</strong>.catalog.Catalog(interface)<br />
get_address_coords(address)<br />
Use the google geocoder to get latitude and longitude for an address string<br />
Parameters address – any address string<br />
Returns A tuple of (lat,lng)<br />
get_most_recent_images(results, types=[], sensors=[], N=1)<br />
Return the most recent image<br />
Parameters<br />
• results – a catalog resultset, as returned from a search<br />
• types – array of types you want. optional.<br />
• sensors – array of sensornames. optional.<br />
9