openclimatefix / nowcasting_dataset

Prepare batches of data for training machine learning solar electricity nowcasting data
https://nowcasting-dataset.readthedocs.io/en/stable/
MIT License
25 stars 6 forks source link

return array of nans when there is no pv data #702

Closed peterdudfield closed 2 years ago

peterdudfield commented 2 years ago

Pull Request

Description

Return array of nans instead of no data, when there are no pv yields The pv systems is filled with 0, if elevation is below -10. This helps for live data, so that not all the data is removed, when removing nans

Fixes https://github.com/openclimatefix/nowcasting_forecast/issues/122

How Has This Been Tested?

normal unitest tests, + extra ones

Checklist: