oemof / feedinlib

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

Open paulapreuss opened 1 month ago

paulapreuss commented 1 month ago

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?