This repository contains implementations of photovoltaic models to calculate electricity generation from a pv installation based on given solar radiation. Furthermore it contains all necessary pre-calculations.
MIT License
102
stars
44
forks
source link
ERA5 data formatting fails with data downloaded from CDS #78
format_windpowerlib and format_pvpowerlib from the era5.py module fail with the error AttributeError: 'DataFrame' object has no attribute 'time' after trying to format data retrieved from the CDS. The CDS data returned by get_era5_data_from_datespan_and_position uses the attribute name valid_time instead of time. Presumably this was changed with the recent CDS API update?
format_windpowerlib
andformat_pvpowerlib
from theera5.py
module fail with the errorAttributeError: 'DataFrame' object has no attribute 'time'
after trying to format data retrieved from the CDS. The CDS data returned byget_era5_data_from_datespan_and_position
uses the attribute namevalid_time
instead oftime
. Presumably this was changed with the recent CDS API update?