reVX.plexos.dpv_plexos.DpvPlexosAggregation
- class DpvPlexosAggregation(node_buildout, cf_fpath)[source]
 Bases:
objectMethods to aggregate DPV profiles to plexos nodes.
- Parameters:
 node_buildout (str | pd.DataFrame) – Plexos node buildout meta data. Must have the following columns: [plexos_id, latitude, longitude, built_capacity]
cf_fpath (str) – Filepath to a reV capacity factor file.
Methods
get_mapped_node_data([dset])Get the CF dataset mapped to plexos nodes via NN results.
Get the generation profiles (cf * capacity) mapped to the node meta.
run(node_buildout, cf_fpath, out_fpath)Aggregate dpv reV gen data to a buildout nodes and save to h5.
Attributes
Get the cf meta data.
Get the KDtree of the reV CF meta data coordinates.
Get the cf time index.
- property cf_meta
 Get the cf meta data.
- Returns:
 _cf_meta (pd.DataFrame) – reV CF Meta data.
- property time_index
 Get the cf time index.
- Returns:
 _time_index (pd.DateTimeindex) – reV timeindex data.
- property kdtree
 Get the KDtree of the reV CF meta data coordinates.
- Returns:
 _kdtree (scipy.spatial.ckdtree) – KDtree build from the reV CF meta data coordinates.
- get_mapped_node_data(dset='cf_profile')[source]
 Get the CF dataset mapped to plexos nodes via NN results.
- Returns:
 node_arr (np.ndarray) – Get a 2D dataset from the reV cf file mapped to the node_buildout table via NN.
- get_node_gen_profiles()[source]
 Get the generation profiles (cf * capacity) mapped to the node meta.
- Returns:
 gen_profiles (np.ndarray) – Timeseries profiles of (t, n) where t is the time index and n is the node buildout. Units are the built_capacity units from the node_buildout table.
- classmethod run(node_buildout, cf_fpath, out_fpath)[source]
 Aggregate dpv reV gen data to a buildout nodes and save to h5.
- Parameters:
 node_buildout (str | pd.DataFrame) – Plexos node buildout meta data. Must have the following columns: [plexos_id, latitude, longitude, built_capacity]
cf_fpath (str) – Filepath to a reV capacity factor file.
out_fpath (str) – Output filepath.