Giter VIP home page Giter VIP logo

gees2downloader's People

Contributors

cordmaur avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gees2downloader's Issues

exporting data

Hi Mauricio, thank you for providing this code!

It seems to work fine in my computer (results below- even 0% progress). But where can I access these tiles, or how I convert back to image?
I can see the downloader with the array within my variables, but is there a way to export to my computer?

(PS: as Im using PyCharm Im not using geemap to plot the images)

Thank you!

Retrieving band info
Dividing band in 16 tiles
Tiles:   0%|          | 0/16 [00:00<?, ?tile/s]
Tile[0:2896,2896:5792]:   0%|          | 0.00/10.9M [00:00<?, ?b/s]
Tile[2896:5792,0:2896]:   0%|          | 0.00/10.9M [00:00<?, ?b/s]
Tile[0:2896,8688:10980]:   0%|          | 0.00/8.63M [00:00<?, ?b/s]
Tile[0:2896,5792:8688]:   0%|          | 0.00/10.9M [00:00<?, ?b/s]
Tile[0:2896,0:2896]:   0%|          | 0.00/10.9M [00:00<?, ?b/s]
Tile[2896:5792,2896:5792]:   0%|          | 0.00/10.9M [00:00<?, ?b/s]
Tile[2896:5792,5792:8688]:   0%|          | 0.00/10.9M [00:00<?, ?b/s]
Tile[2896:5792,8688:10980]:   0%|          | 0.00/8.63M [00:00<?, ?b/s]
Tile[5792:8688,0:2896]:   0%|          | 0.00/10.9M [00:00<?, ?b/s]
Tile[5792:8688,2896:5792]:   0%|          | 0.00/10.9M [00:00<?, ?b/s]
Tile[5792:8688,5792:8688]:   0%|          | 0.00/10.9M [00:00<?, ?b/s]
Tile[5792:8688,8688:10980]:   0%|          | 0.00/8.63M [00:00<?, ?b/s]
Tile[8688:10980,0:2896]:   0%|          | 0.00/8.63M [00:00<?, ?b/s]
Tile[8688:10980,2896:5792]:   0%|          | 0.00/8.63M [00:00<?, ?b/s]
Tile[8688:10980,5792:8688]:   0%|          | 0.00/8.63M [00:00<?, ?b/s]
Tile[8688:10980,8688:10980]:   0%|          | 0.00/6.83M [00:00<?, ?b/s]
Finished. The result can be accessed at obj.array
(10980, 10980)

Georeferencing information is lost?

Hi Maurício,

Thanks a lot for creating this code. It seems to be working for me, however, I am wondering how do I create a geotiff from the numpy array. The final numpy array loses its geolocation information and I am not sure how to retrieve those infromation from ee.Image before downloading it. Any suggestions?

Error while pip install git+https://github.com/cordmaur/GEES2Downloader.git@main

following error occurs while installing it
Collecting git+https://github.com/cordmaur/GEES2Downloader.git@main Cloning https://github.com/cordmaur/GEES2Downloader.git (to revision main) to c:\users\acer\appdata\local\temp\pip-req-build-_5ig3x36 Running command git clone -q https://github.com/cordmaur/GEES2Downloader.git 'C:\Users\Acer\AppData\Local\Temp\pip-req-build-_5ig3x36' Resolved https://github.com/cordmaur/GEES2Downloader.git to commit f88b26ad7c565ca8e621c2f479a6f20670d90ea1 ERROR: Command errored out with exit status 1: command: 'C:\Users\Acer\anaconda3\envs\gee\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Acer\\AppData\\Local\\Temp\\pip-req-build-_5ig3x36\\setup.py'"'"'; __file__='"'"'C:\\Users\\Acer\\AppData\\Local\\Temp\\pip-req-build-_5ig3x36\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Acer\AppData\Local\Temp\pip-pip-egg-info-f_swho15' cwd: C:\Users\Acer\AppData\Local\Temp\pip-req-build-_5ig3x36\ Complete output (9 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\Acer\AppData\Local\Temp\pip-req-build-_5ig3x36\setup.py", line 2, in <module> import src.geeS2downloader File "C:\Users\Acer\AppData\Local\Temp\pip-req-build-_5ig3x36\src\geeS2downloader\__init__.py", line 1, in <module> from .gee import GEES2Downloader File "C:\Users\Acer\AppData\Local\Temp\pip-req-build-_5ig3x36\src\geeS2downloader\gee.py", line 1, in <module> import rasterio as rio ModuleNotFoundError: No module named 'rasterio' ---------------------------------------- WARNING: Discarding git+https://github.com/cordmaur/GEES2Downloader.git@main. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

can l download with specific geographic scope?

Thanks for your work. It works well in my computer with a very fast speed.
When l tried to download it with a specific rectangle(smaller than one S2 path), l found the tile changed form 16 to 1, and the downloaded array did not fit the specified box.
So is this package only available for downloading one S2 swap path?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.