cumulative_density_function_per_country.py
def create_status_database(database_path):
    """Create a runtime status database if it doesn't exist.

    Parameters:
        database_path (str): path to database to create.
        raster_id_list (list): list of raster id strings that will be monitored
            for completion.
        country_id_list (list): list of country ids to pair with the rasters.

    Returns:
        None.

    """
    LOGGER.debug('launching create_status_database')
    create_database_sql = (
        """
        CREATE TABLE job_status (
            raster_id TEXT NOT NULL,
            aggregate_vector_id TEXT NOT NULL,
            fieldname_id TEXT NOT NULL,
            feature_id TEXT NOT NULL,
            percentile_list BLOB,
            percentile0_list BLOB,
            cdf BLOB,
            cdfnodata0 BLOB,
            stitched_bin INT NOT NULL,
            stitched_bin_nodata0 INT NOT NULL,
            bin_raster_path TEXT,
            bin_nodata0_raster_path TEXT
            );

        CREATE UNIQUE INDEX unique_job_status ON
        job_status (raster_id, aggregate_vector_id, fieldname_id, feature_id);
        """)
    if os.path.exists(database_path):
        os.remove(database_path)
    connection = sqlite3.connect(database_path)
    connection.executescript(create_database_sql)
    connection.commit()
    connection.close()
Create a runtime status database if it doesn't exist.

    Parameters:
        database_path (str): path to database to create.
        raster_id_list (list): list of raster id strings that will be monitored
            for completion.
        country_id_list (list): list of country ids to pair with the rasters.

    Returns:
        None.

    
Create a runtime status database if it doesn't exist.
Create a runtime status database if it doesn ' t exist .
def create_status_database(database_path):
    LOGGER.debug('launching create_status_database')
    create_database_sql = (
        """
        CREATE TABLE job_status (
            raster_id TEXT NOT NULL,
            aggregate_vector_id TEXT NOT NULL,
            fieldname_id TEXT NOT NULL,
            feature_id TEXT NOT NULL,
            percentile_list BLOB,
            percentile0_list BLOB,
            cdf BLOB,
            cdfnodata0 BLOB,
            stitched_bin INT NOT NULL,
            stitched_bin_nodata0 INT NOT NULL,
            bin_raster_path TEXT,
            bin_nodata0_raster_path TEXT
            );
        CREATE UNIQUE INDEX unique_job_status ON
        job_status (raster_id, aggregate_vector_id, fieldname_id, feature_id);
        """)
    if os.path.exists(database_path):
        os.remove(database_path)
    connection = sqlite3.connect(database_path)
    connection.executescript(create_database_sql)
    connection.commit()
    connection.close()
def create_status_database ( database_path ) : LOGGER . debug ( 'launching create_status_database' ) create_database_sql = ( """
        CREATE TABLE job_status (
            raster_id TEXT NOT NULL,
            aggregate_vector_id TEXT NOT NULL,
            fieldname_id TEXT NOT NULL,
            feature_id TEXT NOT NULL,
            percentile_list BLOB,
            percentile0_list BLOB,
            cdf BLOB,
            cdfnodata0 BLOB,
            stitched_bin INT NOT NULL,
            stitched_bin_nodata0 INT NOT NULL,
            bin_raster_path TEXT,
            bin_nodata0_raster_path TEXT
            );

        CREATE UNIQUE INDEX unique_job_status ON
        job_status (raster_id, aggregate_vector_id, fieldname_id, feature_id);
        """ ) if os . path . exists ( database_path ) : os . remove ( database_path ) connection = sqlite3 . connect ( database_path ) connection . executescript ( create_database_sql ) connection . commit ( ) connection . close ( )
Create a runtime status database if it doesn't exist.
Create a runtime status database if it doesn ' t exist .
"""Create a runtime status database if it doesn't exist.

    Parameters:
        database_path (str): path to database to create.
        raster_id_list (list): list of raster id strings that will be monitored
            for completion.
        country_id_list (list): list of country ids to pair with the rasters.

    Returns:
        None.

    """
None
database_path
path to database to create.
path to database to create .
raster_id_list
list of raster id strings that will be monitored
for completion.
list of raster id strings that will be monitored for completion .
country_id_list
list of country ids to pair with the rasters.
list of country ids to pair with the rasters .