reVeal.grid#

grid module

Functions

create_grid(res, xmin, ymin, xmax, ymax, crs)

Create a regularly spaced grid at the specified resolution covering the specified bounds.

get_method_from_members(method_name, members)

Helper function to look up a callable from a group of options.

get_neighbors(grid_df, order)

Create new geometry for each cell in the input grid, consisting of a union with neighboring cells of the specified contiguity order.

run_characterization(df, characterization)

Execute a single characterization on an input grid.

run_normalization(df, attribute, ...)

Execute a single characterization on an input grid.

run_weighted_scoring(df, attributes)

Calculated weighted score for the input dataframe based on the specified attributes and corresponding weights.

Classes

BaseGrid([res, bounds, crs, template])

Grid base class

CharacterizeGrid(config)

Subclass of RunnableGrid for running characterizations.

NormalizeGrid(config)

Subclass of RunnableGrid for normalizing attribute values.

RegionalDownscaleGrid(config)

Subclass of RunnableGrid for downscaling regional load projections to sites in grid.

RunnableGrid(config)

Subclass of BaseGrid for running operations.

ScoreWeightedGrid(config)

Subclass of RunnableGrid for calculating weighted composite score.

TotalDownscaleGrid(config)

Subclass of RunnableGrid for downscaling aggregate load projections to sites in grid.