[draft] pvlib prototype - #98
Open
willhonaker wants to merge 41 commits into
Open
Conversation
added 27 commits
December 3, 2024 17:10
… pvlib-prototype
… pvlib-prototype
willhonaker
marked this pull request as ready for review
February 5, 2025 17:05
xiqiangliu
reviewed
Feb 5, 2025
xiqiangliu
reviewed
Feb 5, 2025
xiqiangliu
reviewed
Feb 5, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
pvlibwrapper for pv generation viapvliblibrary.Adds
pvlibmodule - integratespvlib.modelchain.ModelChain()with geodata cutouts, enabling pv simulations across time, x, and y indices of a cutout. Also addsModelChainConfigclass to streamline the configuration ofModelChaininstances.Also updates
era5module to also downloaddewpoint_temperature (d2m)for use in calculation of relative humidity and precipitable water (required input for some pvlib models).Main functions/classes:
pvlib_model()pvlib.modelchain.ModelChain().xarray.Datasetcontaining AC pv output across cutout coordinates.ModelChainConfigModelChainconfigs, allowing for reuse of modeling parameters across different PV systems and cutouts.Helper functions:
_prepare_pvlib_ds(): Processes and format input weather data for use withpvlibmodels._calculate_pvlib_solarposition(): Computes solar position data usingpvlib.solarposition.get_solarposition()._calculate_ghi(): Computes global horizontal irradiance (GHI) from direct and diffuse components._calculate_relative_humidity(): Estimates relative humidity from air temperature and dewpoint. Calculated usingdewpoint_temperaturefromera5module. Calculated using August-Roche-Magnus equation_calculate_precipitable_water(): Calculates precipitable water using pvlib.atmosphere.gueymard94_pw().References: