tathu.io package
Submodules
tathu.io.dataframe module
- class tathu.io.dataframe.Outputter
Bases:
objectThis class can be used to export tracking results to GeoPandas Dataframe.
- output(systems)
- tathu.io.dataframe.systems2geopandas(systems)
tathu.io.forecast module
tathu.io.icsv module
tathu.io.pgis module
- class tathu.io.pgis.Loader(host, database, user, pwd, table)
Bases:
objectThis 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:
objectThis 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:
objectThis 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:
objectThis 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:
OutputterAuxiliary class that can be used to export tracking results to GeoJSON files.
- output(systems)
- class tathu.io.vector.KML(path, options=[])
Bases:
OutputterAuxiliary class that can be used to export tracking results to Google Keyhole Markup Language file (KML).