Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Use 'large crop' of satellite image to provide a wider geographical context #87

Closed
JackKelly opened this issue Sep 3, 2021 · 7 comments
Labels
data New data source or feature; or modification of existing data source enhancement New feature or request

Comments

@JackKelly
Copy link
Member

Some of @jacobbieker's models include a low-res satellite image of a wider geo region. And this trick is used in the MetNet paper, too. And a wider view of the satellite imagery is probably necessary for forecasting PV power for entire GSP regions, too.

@jacobbieker, how large are your 'large' crops?

@jacobbieker
Copy link
Member

They are around 768km in physical size, 256x256 with 3km pixels for a center prediction area of between 48 and 96km square, depending on the model.

@jacobbieker
Copy link
Member

jacobbieker commented Sep 3, 2021

For context, MeNet uses 1024km squares to predict the center 64x64km. They do this for 8 hours ahead though, since we are more focused on shorter timescales, smaller crops should be sufficient.

@JackKelly
Copy link
Member Author

Cool, thank you! And, do you down-sample the 'large crop' as a pre-processing step? Or do you give the full-res 'large crop' to a CNN front-end, and let the CNN down-sample the image?

@JackKelly JackKelly changed the title Include low-res satellite image of wider geographical context Include 'large crop' of satellite image to provider wider geographical context Sep 3, 2021
@JackKelly JackKelly added data New data source or feature; or modification of existing data source enhancement New feature or request labels Sep 3, 2021
@JackKelly JackKelly changed the title Include 'large crop' of satellite image to provider wider geographical context Add 'large crop' of satellite image to provider wider geographical context Sep 3, 2021
@jacobbieker
Copy link
Member

I do it in the CNN, here: https://github.com/openclimatefix/metnet/blob/main/metnet/layers/Preprocessor.py You could do it beforehand and it'd probably save some computation, but this meant I didn't need to change the inputs vs other models. The preprocessing stage doesn't have any CNN parts to it, just pooling and space2depth layers. There is a CNN downsampler though which then works on the downscaled imagery: https://github.com/openclimatefix/metnet/blob/75e743423d84b1661296bafa83e9188a26ff26f8/metnet/metnet.py#L10

@JackKelly
Copy link
Member Author

OK, cool, thanks! In which case - instead of having separate, pre-processed 'centre crop' and 'large crop' features in each example - maybe we should just always have the satellite imagery as be a large crop (~768km x 768km) and let the model decide what to do with the image?

@jacobbieker
Copy link
Member

Yeah! I think that's a good way of doing it, gives us a lot of flexibility then

@JackKelly JackKelly changed the title Add 'large crop' of satellite image to provider wider geographical context Add 'large crop' of satellite image to provide a wider geographical context Sep 3, 2021
@JackKelly JackKelly changed the title Add 'large crop' of satellite image to provide a wider geographical context Use 'large crop' of satellite image to provide a wider geographical context Sep 3, 2021
@JackKelly JackKelly added this to the WP1 essential tasks milestone Sep 7, 2021
@peterdudfield peterdudfield removed this from the WP1 essential tasks milestone Sep 24, 2021
@flowirtz flowirtz moved this to Todo in Nowcasting Oct 15, 2021
@JackKelly
Copy link
Member Author

I think this is implemented now, I think (unless I've misunderstood?). Closing.

Related issue: openclimatefix/nowcasting_dataloader#27

Repository owner moved this from Todo to Done in Nowcasting Oct 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
data New data source or feature; or modification of existing data source enhancement New feature or request
Projects
No open projects
Status: Done
Development

No branches or pull requests

3 participants