pisces.commands.mseed2db
Functions that support bulk conversion of miniSEED files to database tables.
-
pisces.commands.mseed2db.main(session, files=None, file_list=None, prefix=None, absolute_paths=False)[source]
session : SQLAlchemy.orm.Session instance
tables : list
Canonical names for desired database tables.
- prefixstr
Target core tables using ‘account.prefix’ naming.
absolute_paths : bool
-
pisces.commands.mseed2db.make_atomic(last, **rows)[source]
Unify related table instances/row, including: ids, dir, and dfile
- Parameters:
- lastobspy.AttributeDict
{‘keyvalue’: lastid instance, …}
- rowsdict
{‘canonical tablename’: [list of row instances], …}
These row instances are related.