spaceml-org / GIBS-Downloader

GIBS Downloader is a command-line tool which facilitates the downloading of NASA satellite imagery and offers different functionalities in order to prepare the images for training in a machine learning pipeline.
http://spaceml.org/repo/project/605b7b751644770011e850c3/false/
Apache License 2.0
44 stars 8 forks source link

use rasterio instead of GDAL #25

Closed vincentsarago closed 3 years ago

vincentsarago commented 3 years ago

👋 sorry for the un solicited PR.

We noticed the used of GDAL could be a blocker (because of the installation process). I took the liberty of replacing the call to the gdal_translate library by pure python rasterio calls. Rasterio python library is shipped with GDAL withing its wheels so it makes installation easier.

FYI: I've only been able to test the TiffDownloader.download_area_tiff locally

If you want to go ahead with this PR I could update the Readme.

cc @drewbo

koul commented 3 years ago

This is very helpful @vincentsarago , EXACTLY what we were looking for several months to make installation easier. Really appreciate this PR.

fernandolis10 commented 3 years ago

This is very useful and very much appreciated @vincentsarago! If you would like to go ahead and update the readme, that would be great as this PR is fantastic