7.7. dkit-writedb
: Read raw data to create formatted datakit files¶
Any database can be processed by this script when given its module name. The revision argument can be something like c008.f3d.db001 or a full module name like sls10afa.c008.f3d.db001.
Folder names, e.g. sls10afa/c008/f3d/db001
, are also allowed.
- Usage:
$ dkit-writedb [MODNAMES] [OPTIONS]
- Arguments:
MODNAME1: name of first module to process
MODNAMEN: name of nth module to process
- Options:
- -h, --help
Display this help message and quit
- -f, --force
Overwrite any existing database files (only for MODNAMES)
- -F, --force-all
Overwrite all database files including added dependencies
- --no-reqs, --no-dependencies
Don’t read requirements; just process MODNAMES
- --prefix PREFIX
Specify prefix which may be left off of MODNAMES
- --no-write
Don’t actually write databases (just print dependencies)
- --write_func FUNC
Function name in modules to process datakits {“write_db”}
- Versions:
2017-07-13
@ddalle
: Version 1.02020-07-06
@ddalle
: Version 1.1; update docstring2021-07-17
@ddalle
: Version 2.0; process dependencies2021-07-19
@ddalle
: Version 2.1; add--no-write
2021-08-20
@ddalle
: Version 3.0; generalize forcape
2021-09-15
@ddalle
: Version 3.1; more DVC support