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)
Contribute
If you intend to contribute to eodag-sentinelsat source code:
git clone https://github.com/CS-SI/eodag-cube.git cd eodag-cube python -m pip install -e .[dev] pre-commit install tox
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.2.tar.gz
(13.1 kB
view hashes)
Built Distribution
eodag_cube-0.1.2-py3-none-any.whl
(24.7 kB
view hashes)
Close
Hashes for eodag_cube-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33c4b7ecaeceaf7157075d2f645f9bbd8b62d9ef0507d1cdfb0a5a666dcad0c2 |
|
MD5 | 88440c687f371e883caf874b88115b27 |
|
BLAKE2b-256 | f9aee7b464420dc5980b51db83ef8984972b5d1168ff92b22649669c17c03e4a |