How to use the rdtools.aggregation.aggregation_insol function in rdtools

To help you get started, we’ve selected a few rdtools examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NREL / rdtools / rdtools / system_analysis.py View on Github external
def aggregate(normalized, insolation, overall_filter,
              aggregation_frequency):
    norm = normalized[overall_filter]
    insol = insolation[overall_filter]
    aggregated = aggregation.aggregation_insol(norm, insol,
                                               aggregation_frequency)
    aggregated_insolation = insol.resample(aggregation_frequency).sum()

    return aggregated, aggregated_insolation