Servir-Mekong / hydra-floods

HYDrologic Remote sensing Analysis for Floods Python package
https://servir-mekong.github.io/hydra-floods/
GNU General Public License v3.0
162 stars 48 forks source link

Support for exporting to Google Drive #26

Closed elbeejay closed 3 years ago

elbeejay commented 3 years ago

This PR expands the functionality of the export_image function to allow images to be exported to Google Drive using the Earth Engine function call ee.Batch.Export.image.toDrive. Previous functionality is unchanged and default behavior should match what the function was doing prior to these changes. This PR aims to close #24.

Key changes:

KMarkert commented 3 years ago

Sorry this has taken me awhile to get to! This all looks good, I haven't seen the unittest.mock.MagicMock() before so looking forward to digging deeper and seeing how it works.

Thanks for the contributions!!!