openclimatefix / ocf_datapipes

OCF's DataPipe based dataloader for training and inference
MIT License
13 stars 11 forks source link

Fix GSP multi-region merging #188

Closed dfulu closed 1 year ago

dfulu commented 1 year ago

Fixes issue #187

If your changes affect data processing, have you plotted any changes? i.e. have you done a quick sanity check?

All shapes before - (note that here I just plot the sum of all the polygons)

download (4)

All shapes after - (note here I plot all the polygons individually)

download (3)

Checklist:

JackKelly commented 1 year ago

To give some more context, and to highlight just how important this fix is, @dfulu says:

[the bug] messed up alignment for every GSP after the first duplicated one. Which was the 5th one. So pretty much them all, yeh. And since the GSPs are given an ID which is sorted by alphabetically by their code thing (like "AXMI1") the satallite/NWP image could be a completely different part of the country.