How to use the rdtools.filtering 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
'pvlib_location': (
                    pvlib.location.Location, 'latitude', 'longitude'
            ),
            'times': (
                lambda series: series.index, 'pv'
            ),
            'pv_energy': (
                power_to_energy, 'pv', 'max_timedelta'
            ),
            'solar_position': (
                lambda loc, times: loc.get_solarposition(times),
                'pvlib_location',
                'times'
            ),
            'clip_filter': (
                filtering.clip_filter, 'pv', 'clip_quantile'
            )
        }

        # Clear-sky deg+soiling workflow
        clearsky_graph = {
            'clearsky_irradiance': (
                lambda loc, times, solpos:
                    loc.get_clearsky(times, solar_position=solpos),
                'pvlib_location',
                'times',
                'solar_position'
            ),
            'clearsky_poa_unscaled': (
                transpose,
                'pv_tilt',
                'pv_azimuth',
github NREL / rdtools / rdtools / system_analysis.py View on Github external
lambda tup: tup[1], 'clearsky_normalized-clearsky_insolation'
            ),
            'clearsky_normalized_filter': (
                filtering.normalized_filter,
                'clearsky_normalized',
                'normalized_low_cutoff',
                'normalized_high_cutoff'
            ),
            'clearsky_poa_filter': (
                filtering.poa_filter,
                'clearsky_poa',
                'poa_low_cutoff',
                'poa_high_cutoff'
            ),
            'clearsky_cell_temperature_filter': (
                filtering.tcell_filter,
                'clearsky_cell_temperature',
                'cell_temperature_low_cutoff',
                'cell_temperature_high_cutoff'
            ),
            'clearsky_csi_filter': (
                filtering.csi_filter,
                'poa',
                'clearsky_poa',
                'clearsky_index_threshold'
            ),
            'clearsky_overall_filter': (
                np.bitwise_and.reduce,
                [
                    'clearsky_normalized_filter',
                    'clearsky_poa_filter',
                    'clip_filter',