reV.supply_curve.aggregation.AbstractAggFileHandler
- class AbstractAggFileHandler(excl_fpath, excl_dict=None, area_filter_kernel='queen', min_area=None)[source]
Bases:
ABC
Simple framework to handle aggregation file context managers.
- Parameters:
excl_fpath (str | list | tuple) – Filepath to exclusions h5 with techmap dataset (can be one or more filepaths).
excl_dict (dict | None) – Dictionary of exclusion keyword arugments of the format {layer_dset_name: {kwarg: value}} where layer_dset_name is a dataset in the exclusion h5 file and kwarg is a keyword argument to the reV.supply_curve.exclusions.LayerMask class. by default None
area_filter_kernel (str, optional) – Contiguous area filter method to use on final exclusions mask, by default ‘queen’
min_area (float, optional) – Minimum required contiguous area filter in sq-km, by default None
Methods
close
()Close all file handlers.
Attributes
Get the exclusions file handler object.
Placeholder for h5 Resource handler
- property exclusions
Get the exclusions file handler object.
- Returns:
_excl (ExclusionMask) – Exclusions h5 handler object.
- property h5
Placeholder for h5 Resource handler