1

I am fairly new to both Python and Google Earth Engine.

I would like to process some Sentinel-2 hyperspectral images available from Google Earth Engine. My idea was to use Python to get the images to my drive (in some kind of standardized format such as netCDF, BSQ, etc.) and then process them locally with MATLAB for which I already have an analysis pipeline.

Nevertheless, I can't seem to find any way to do that: all the info I find clearly state how to export the image to Google Drive (I can do it and it works), but there's no clear info on how to get it on the local hard drive.

Is that possible?

3 Answers 3

4

You can export an ImageCollection to Google Drive using only one line of code with the geemap Python package. Check out this notebook example.

geemap.ee_export_image_collection_to_drive(collection, folder='export', scale=10)
3

Because Google Earth Engine data exports are asyncronous, the destinations are also cloud-based. Your options are Google Drive, Google Cloud Storage, or new assets in Earth Engine. Cloud Storage is generally the best option when it comes to exporting many files, as there is a handy command-line interface, gsutil to download (and upload) in bulk.

But if all you need is Sentinel-2 imagery, you can download directly from the public Cloud Storage bucket that Google maintains for this. See: https://cloud.google.com/storage/docs/public-datasets/sentinel-2

Data from this bucket can be downloaded using the gsutil tool, which will allow you to pull data directly to your hard drive.

0
1

You can't directly export it locally. According to https://developers.google.com/earth-engine/exporting#to-drive,

You can export images, map tiles, tables and video from Earth Engine. The exports can be sent to your Google Drive account, to Google Cloud Storage or to a new Earth Engine asset.

The easiest way is to export to drive, and then download locally from there.

0

Not the answer you're looking for? Browse other questions tagged or ask your own question.