Should pvlib have a get_solaranywhere function for fetching weather data? #1310
Replies: 2 comments 14 replies
-
Also, not sure if you heard, but SolarAnywhere Public just launched. You raise a good question about the proliferation of code. Usually less is more, and the zen of python says there should be one - and only one - way to do things. If CPR already has a client, why should we reproduce it so now there's two? What does ours add? Maybe consistent output? |
Beta Was this translation helpful? Give feedback.
-
I believe the SATGY format is similar to TMY3 format except it only has about 7 columns and the header has some extra info after the last field, so hoping to repurpose or reuse some of the existing |
Beta Was this translation helpful? Give feedback.
-
SolarAnywhere is a commercial weather data provider popular in the industry system modeling community. I only have a little experience with it, but my understanding is that they provide dataset downloads through both a point-and-click website and an API. I am aware of a few industry analysts that have rolled their own python wrappers for the SolarAnywhere weather API for fetching weather data in bulk, so I speculate a function in
pvlib.iotools
would get some use.However the API does require authentication to use. Maybe CPR could give us credentials suitable for testing purposes? Maybe CPR would be interested in contributing the wrapper function itself? cc @cpr-chas
Note that their API docs already provide example python snippets, so you could argue that we're not bringing much value by duplicating it in pvlib: https://developers.cleanpower.com/irradiance-and-weather-data/irradiance-and-weather-requests/
Note also that I'm talking specifically about fetching weather data, not their recent pvlib-based power offering.
Beta Was this translation helpful? Give feedback.
All reactions