Data access for EODAG
Project description
EODAG-cube
This project is the data-access part of EODAG
Installation
EODAG-cube is on PyPI:
python -m pip install eodag-cube
Usage - Python API
Example usage for interacting with the api in your Python code:
from eodag import EODataAccessGateway
from rasterio.crs import CRS
dag = EODataAccessGateway()
product_type = 'S2_MSI_L1C'
footprint = {'lonmin': 1, 'latmin': 43.5, 'lonmax': 2, 'latmax': 44}
start, end = '2020-06-04', '2020-06-05'
search_results, _ = dag.search(productType=product_type, geom=footprint, start=start, end=end)
data = search_results[0].get_data(
crs=CRS.from_epsg(4326),
resolution=0.0006,
band="B01",
extent=footprint
)
print(data)
<xarray.DataArray (dim_0: 750, dim_1: 566)>
array([[1426, 1577, 1672, ..., 6219, 5916, 5281],
[1416, 1668, 1830, ..., 6277, 6022, 5621],
[1502, 1896, 2107, ..., 6287, 6081, 5890],
...,
[1878, 2475, 2922, ..., 1605, 1604, 1654],
[1732, 2219, 2630, ..., 1670, 1659, 1664],
[1548, 1832, 2134, ..., 1722, 1732, 1718]], dtype=uint16)
LICENSE
EODAG is licensed under Apache License v2.0. See LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
eodag-cube-0.1.1.tar.gz
(12.3 kB
view hashes)
Built Distribution
eodag_cube-0.1.1-py3-none-any.whl
(25.5 kB
view hashes)
Close
Hashes for eodag_cube-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7f39c21d076138e3c3c266a33fe15c5900a796e10211e9d93968f17cc8563b3 |
|
MD5 | f1017eb83e50204cad035deb25f3d009 |
|
BLAKE2b-256 | b7f65b9cefda655db9a2f4bcac7aeb85d561e93735d9c623c21dcecbd7d538f0 |