Skip to main content

🏎💨vroom vroom - data downloader

Project description

FastCubo

A simple API for ee.data.pixels inspired by cubo, designed for creating and managing data cubes up to 10 times faster.

Installation

Install the latest version from PyPI:

pip install cubo

Install cubo with the required GEE dependencies from PyPI:

pip install cubo[ee]

Upgrade cubo by running:

pip install -U cubo

Install the latest version from conda-forge:

conda install -c conda-forge cubo

Install the latest dev version from GitHub by running:

pip install git+https://github.com/davemlz/cubo

How to use

Download a S2 data cube.

import fastcubo
import ee

ee.Initialize(opt_url="https://earthengine-highvolume.googleapis.com")

table = fastcubo.query_image(
    task_id= "EU2560_E4521N3012",
    points=[(51.079225, 10.452173), (-76.5, -9.5)],
    outnames=["demo_0.tif", "demo_1.tif"],
    collection="NASA/NASADEM_HGT/001",
    bands=["elevation", "num", "swb"],
    edge_size=256,
    resolution=90
)

da = fastcubo.downloader(table=table, nworkers=8)

Download DEM data cube

import fastcubo
import ee

ee.Initialize(opt_url="https://earthengine-highvolume.googleapis.com")

table = fastcubo.query_imagecollection(
    task_id= "EU2560_E4521N3011", # Task id
    point=(51.079225, 10.452173),
    collection="COPERNICUS/S2_HARMONIZED", # Id of the GEE collection
    bands=["B4","B3","B2"], # Bands to retrieve
    start_date="2016-06-01", # Start date of the cube
    end_date="2017-07-01", # End date of the cube
    edge_size=128, # Edge size of the cube (px)
    resolution=10, # Pixel size of the cube (m)
)

da = fastcubo.downloader(table=table, nworkers=8)    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastcubo-0.0.5.tar.gz (5.4 kB view hashes)

Uploaded Source

Built Distribution

fastcubo-0.0.5-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page