ost.helpers.db

This script allows for the search of Sentinel-1 data on scihub.

Based on some search parameters the script will create a query on www.scihub.copernicus.eu and return the results either as shapefile, sqlite, or PostGreSQL database.

Functions

pgHandler

This function connects to an existing PostGreSQL database, with the access parameters stored in the dbConnectFile as follows:

Classes

pgConnect

ost.helpers.db.pgHandler(dbConnectFile='/home/docs/.phiSAR/pgdb')[source]

This function connects to an existing PostGreSQL database, with the access parameters stored in the dbConnectFile as follows:

“database name” “database user” “database password” “database host” “database port”

Parameters

dbConnectFile – path to the connect file

Returns

the psycopg2 database connection object