caf.ntem.build#
Build an NTEM database to be used by the query module for extracting data.
Module Attributes
Name of the metadata ID column in the database. |
|
Name of the zone system ID column in the database. |
|
Name of the zone ID column in the database. |
Functions
|
Typed version of namedtuple. |
|
Process the NTEM data from the access files and outputs a SQLite database. |
Check if the dependencies are installed. |
|
|
Create and insert geo lookup tables using the access data. |
|
Insert lookup tables into the database. |
|
Process data for a scenario and version and insert in into the database. |
|
Set the foreign key pragma for SQLite. |
Classes
|
Defines the names of the access data tables. |
|
Input arguments for the build command. |
|
A named tuple for storing the scenario and version of a file. |
Attributes Documentation
- caf.ntem.build.METADATA_ID_COLUMN = 'metadata_id'#
Name of the metadata ID column in the database.
- caf.ntem.build.ZONE_SYSTEM_ID_COLUMN = 'zone_type_id'#
Name of the zone system ID column in the database.
- caf.ntem.build.ZONE_ID_COLUMN = 'zone_id'#
Name of the zone ID column in the database.