Precomputed Median Mosaics #6
Replies: 1 comment 1 reply
-
Hi @BillyDodds , I just tested out and it works well! However, I am just curious why the following codes doesn't work when a dask GatewayCluster is created at the beginning of the script. *I am not sure if this have to do with how xr.open_mfdataset behave with dask. P/s: I think I found the issues, reference: pydata/xarray#4213
Error received:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I have fixed some bugs present in the Sentinel-2_precomputed_mosaics notebook, replacing the sentinel_mosaic.py file with a revised SentinelMosaic.py file. This file contains a SentinelMosaic class that will assist in loading the precomputed mosaics. See the Sentinel-2_precomputed_mosaics notebook for how to use it.
This revised version is much faster than the previous code. The
.get_mosaic
function is by far the most effective way to download rich, cloudless Sentinel-2 data directly to your disk where it can be easily read and accessed for your models. When querying a new region, the method will download the required tiles to a specified location on your computer. Once the scene has been downloaded once, it does not need to be downloaded again! Instead, the second time it will be read from directly from your computer or VM storage, greatly speeding up your data pipeline.Follow the example notebook here to take full advantage of the precomputed mosaics in your data pipeline. Don't miss this opportunity to make your model even better!
Please reply here if any issues arise surrounding the use of the precomputed mosaics.
Just 15 days to go! All the best!
Kind regards,
Billy Dodds
Beta Was this translation helpful? Give feedback.
All reactions