tathu.io package

Submodules

tathu.io.dataframe module

class tathu.io.dataframe.Outputter

Bases: object

This class can be used to export tracking results to GeoPandas Dataframe.

output(systems)
tathu.io.dataframe.systems2geopandas(systems)

tathu.io.forecast module

class tathu.io.forecast.Outputter(systems, forecasts, extent, grid)

Bases: object

This class can be used to show forecast results.

show()

tathu.io.icsv module

class tathu.io.icsv.Outputter(path, writeHeader=True, delimiter=',', outputGeom=False, outputCentroid=False, outputRelationships=True, precision=4)

Bases: object

This class can be used to export tracking results to CSV files.

output(systems)

tathu.io.pgis module

class tathu.io.pgis.Loader(host, database, user, pwd, table)

Bases: object

This class can be used to load tracking results from Postgres/PostGIS Database.

load(name, attrs)
loadDates()
loadNames()
loadSystem(name, attrs, date=None)
loadSystemsByDate(date)
query(query)
class tathu.io.pgis.Outputter(host, database, user, pwd, table, attrs, outputRaster=True, raster2int=True)

Bases: object

This class can be used to export tracking results to Postgres/PostGIS Database.

output(systems)
tathu.io.pgis.bytea2nparray(bytea)

Converts Numpy Array from Postgres to python.

tathu.io.spatialite module

class tathu.io.spatialite.Loader(database, table)

Bases: object

This class can be used to load tracking results from SQLite/SpatiaLite Database.

execute(cmd)
getDates(format='%Y%m%d%H%M')
getLastDate(format='%Y%m%d')
load(name, attrs)
loadByDate(format, date, attrs)
loadByDay(day, attrs)
loadByDuration(hours, operator='>=')
loadByInterval(start, end)
loadLastSystems(attrs)
loadNames()
query(query)
class tathu.io.spatialite.Outputter(database, table, attrs, outputRaster=True, raster2int=True)

Bases: object

This class can be used to export tracking results to SQLite/SpatiaLite Database.

output(systems)
tathu.io.spatialite.adapt_array(arr)

http://stackoverflow.com/a/31312102/190597 (SoulNibbler)

tathu.io.spatialite.adapt_list(list)
tathu.io.spatialite.adapt_tuple(tuple)
tathu.io.spatialite.convert_array(text)

tathu.io.vector module

class tathu.io.vector.GeoJSON(path, options=[], compact=True)

Bases: Outputter

Auxiliary class that can be used to export tracking results to GeoJSON files.

output(systems)
class tathu.io.vector.KML(path, options=[])

Bases: Outputter

Auxiliary class that can be used to export tracking results to Google Keyhole Markup Language file (KML).

class tathu.io.vector.Outputter(path, format, options=[])

Bases: object

This class can be used to export tracking results to a vector geo-file (e.g. ESRI Shapefile, KML, etc.)

output(systems)
class tathu.io.vector.Shapefile(path, options=[])

Bases: Outputter

Auxiliary class that can be used to export tracking results to ESRI Shapefile.

Module contents