pvlib / pvlib-python

A set of documented functions for simulating the performance of photovoltaic energy systems.
https://pvlib-python.readthedocs.io
BSD 3-Clause "New" or "Revised" License
1.13k stars 953 forks source link

Aeorosol data from Google Earth Engine - CAMS Global Near Real Time #1205

Closed kurt-rhee closed 3 years ago

kurt-rhee commented 3 years ago

Is your feature request related to a problem? Please describe. In order to use the simplified solis clearsky model aerosol optical depth data is necessary. There are no functions within pvlib that grab aerosol data. I've developed a quick function for obtaining aerosol optical depth data from data stored in google earth engine's CAMS dataset. https://developers.google.com/earth-engine/datasets/catalog/ECMWF_CAMS_NRT. If wanted, I could create a pull request for this function for pvlib to save other developers some time obtaining AOD data.

Describe the solution you'd like Pull request for pvlib containing the above function.

Describe alternatives you've considered I've had some trouble using other API's for aerosol data including the ECMWF.

Additional context N/A

mikofski commented 3 years ago

also check out get_ecmwf_macc() which lets you pull AOD at several wavelengths and the Angstrom turbidity model that lets you convert between AOD at a given wavelength if the Angstrom alpha is known. Currently ECMWF MACC download is very slow and the data sets as netCDF4 are very large, so to have a faster alternative would be very useful. thanks!

kurt-rhee commented 3 years ago

Angstrom turbidity model has been very useful for us and yes we wanted something that responds immediately so nothing needs to queue. I'll create a pull request in the near future.

wholmgren commented 3 years ago

does https://github.com/pvlib/pvlib-python/pull/1175 solve this issue?

kurt-rhee commented 3 years ago

Hey @wholmgren yes that would definitely solve the same problem, especially if it exposes the aod550 data and if response is quick.

Sounds like nothing more is needed from me, if for some reason you decide the earth engine implementation is worth looking into feel free to ping.

AdamRJensen commented 3 years ago

@kurt-rhee The solution being implemented in #1175 is certainly quite fast. You can see what variables are available here. There are a lot of different AOD 550 values e.g., for black carbon and dust, but I'm unsure if there is a combined one. Would the available parameters be sufficient for you?

kurt-rhee commented 3 years ago

Hey @AdamRJensen I'll definitely give it a look next time I'm working with some clearsky data thank you for pointing me!