eodag-cube


Nameeodag-cube JSON
Version 0.4.1 PyPI version JSON
download
home_pagehttps://github.com/CS-SI/eodag-cube
SummaryData access for EODAG
upload_time2024-02-29 09:45:40
maintainer
docs_urlNone
authorCS GROUP - France (CSSI)
requires_python
licenseApache 2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            .. image:: https://badge.fury.io/py/eodag-cube.svg
    :target: https://badge.fury.io/py/eodag-cube

.. image:: https://img.shields.io/pypi/l/eodag-cube.svg
    :target: https://pypi.org/project/eodag-cube/

.. image:: https://img.shields.io/pypi/pyversions/eodag-cube.svg
    :target: https://pypi.org/project/eodag-cube/

.. image:: https://mybinder.org/badge_logo.svg
    :target: https://mybinder.org/v2/git/https%3A%2F%2Fgithub.com%2FCS-SI%2Feodag-cube.git/develop?filepath=docs%2Fnotebooks%2Fget_data_basic.ipynb

EODAG-cube
==========

This project is the data-access part of `EODAG <https://github.com/CS-SI/eodag>`_

.. image:: https://eodag.readthedocs.io/en/latest/_static/eodag_bycs.png
    :target: https://github.com/CS-SI/eodag

|


Installation
============

EODAG-cube is on `PyPI <https://pypi.org/project/eodag-cube/>`_::

    python -m pip install eodag-cube

Usage - Python API
==================

Example usage for interacting with the api in your Python code:

.. code-block:: python

    from eodag import EODataAccessGateway
    from rasterio.crs import CRS

    dag = EODataAccessGateway()
    product_type = 'S2_MSI_L2A_COG'
    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 (band: 1, y: 833, x: 1666)>
    array([[[  432,   407,   430, ...,     0,     0,     0],
            [  587,   573,   589, ...,     0,     0,     0],
            [  742,   690,   622, ...,     0,     0,     0],
            ...,
            [15264, 15247, 15214, ...,     0,     0,     0],
            [15069, 15084, 15073, ...,     0,     0,     0],
            [14686, 14701, 14722, ...,     0,     0,     0]]], dtype=uint16)
    Coordinates:
    * x            (x) float64 0.9999 1.0 1.001 1.002 ... 1.887 1.887 1.888 1.888
    * y            (y) float64 44.0 44.0 44.0 44.0 44.0 ... 43.5 43.5 43.5 43.5
    * band         (band) int64 1
        spatial_ref  int64 0
    Attributes:
        scale_factor:  1.0
        add_offset:    0.0
        _FillValue:    0

Contribute
==========

If you intend to contribute to eodag-cube 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.


AUTHORS
=======

EODAG is developed by `CS GROUP - France <https://www.c-s.fr>`_.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/CS-SI/eodag-cube",
    "name": "eodag-cube",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "CS GROUP - France (CSSI)",
    "author_email": "eodag@csgroup.space",
    "download_url": "https://files.pythonhosted.org/packages/8a/3e/9b0b1a5884b98e2c38897318d1bd4b92bec201878be586200e5ecf762443/eodag-cube-0.4.1.tar.gz",
    "platform": null,
    "description": ".. image:: https://badge.fury.io/py/eodag-cube.svg\n    :target: https://badge.fury.io/py/eodag-cube\n\n.. image:: https://img.shields.io/pypi/l/eodag-cube.svg\n    :target: https://pypi.org/project/eodag-cube/\n\n.. image:: https://img.shields.io/pypi/pyversions/eodag-cube.svg\n    :target: https://pypi.org/project/eodag-cube/\n\n.. image:: https://mybinder.org/badge_logo.svg\n    :target: https://mybinder.org/v2/git/https%3A%2F%2Fgithub.com%2FCS-SI%2Feodag-cube.git/develop?filepath=docs%2Fnotebooks%2Fget_data_basic.ipynb\n\nEODAG-cube\n==========\n\nThis project is the data-access part of `EODAG <https://github.com/CS-SI/eodag>`_\n\n.. image:: https://eodag.readthedocs.io/en/latest/_static/eodag_bycs.png\n    :target: https://github.com/CS-SI/eodag\n\n|\n\n\nInstallation\n============\n\nEODAG-cube is on `PyPI <https://pypi.org/project/eodag-cube/>`_::\n\n    python -m pip install eodag-cube\n\nUsage - Python API\n==================\n\nExample usage for interacting with the api in your Python code:\n\n.. code-block:: python\n\n    from eodag import EODataAccessGateway\n    from rasterio.crs import CRS\n\n    dag = EODataAccessGateway()\n    product_type = 'S2_MSI_L2A_COG'\n    footprint = {'lonmin': 1, 'latmin': 43.5, 'lonmax': 2, 'latmax': 44}\n    start, end = '2020-06-04', '2020-06-05'\n    search_results, _ = dag.search(productType=product_type, geom=footprint, start=start, end=end)\n    data = search_results[0].get_data(\n        crs=CRS.from_epsg(4326),\n        resolution=0.0006,\n        band=\"B01\",\n        extent=footprint\n    )\n    print(data)\n\n    <xarray.DataArray (band: 1, y: 833, x: 1666)>\n    array([[[  432,   407,   430, ...,     0,     0,     0],\n            [  587,   573,   589, ...,     0,     0,     0],\n            [  742,   690,   622, ...,     0,     0,     0],\n            ...,\n            [15264, 15247, 15214, ...,     0,     0,     0],\n            [15069, 15084, 15073, ...,     0,     0,     0],\n            [14686, 14701, 14722, ...,     0,     0,     0]]], dtype=uint16)\n    Coordinates:\n    * x            (x) float64 0.9999 1.0 1.001 1.002 ... 1.887 1.887 1.888 1.888\n    * y            (y) float64 44.0 44.0 44.0 44.0 44.0 ... 43.5 43.5 43.5 43.5\n    * band         (band) int64 1\n        spatial_ref  int64 0\n    Attributes:\n        scale_factor:  1.0\n        add_offset:    0.0\n        _FillValue:    0\n\nContribute\n==========\n\nIf you intend to contribute to eodag-cube source code::\n\n    git clone https://github.com/CS-SI/eodag-cube.git\n    cd eodag-cube\n    python -m pip install -e .[dev]\n    pre-commit install\n    tox\n\nLICENSE\n=======\n\nEODAG is licensed under Apache License v2.0.\nSee LICENSE file for details.\n\n\nAUTHORS\n=======\n\nEODAG is developed by `CS GROUP - France <https://www.c-s.fr>`_.\n\n\n",
    "bugtrack_url": null,
    "license": "Apache 2.0",
    "summary": "Data access for EODAG",
    "version": "0.4.1",
    "project_urls": {
        "Homepage": "https://github.com/CS-SI/eodag-cube"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c1eed02ab14fe0d5a950075a901ba667aa3f975f6e8655e062b0ad75c163d7f9",
                "md5": "e7f082caedc8c3895f773a3f303c54f0",
                "sha256": "4124e4b802215304757743d782406d482564f58c1f23c9dd810c66556dad7a3b"
            },
            "downloads": -1,
            "filename": "eodag_cube-0.4.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e7f082caedc8c3895f773a3f303c54f0",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 21346,
            "upload_time": "2024-02-29T09:45:38",
            "upload_time_iso_8601": "2024-02-29T09:45:38.381037Z",
            "url": "https://files.pythonhosted.org/packages/c1/ee/d02ab14fe0d5a950075a901ba667aa3f975f6e8655e062b0ad75c163d7f9/eodag_cube-0.4.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8a3e9b0b1a5884b98e2c38897318d1bd4b92bec201878be586200e5ecf762443",
                "md5": "dec49bba84e205f44880ebcee33f788c",
                "sha256": "dd5a49b74b4551e1c32cdf7c371626c8edca2078de6f8b1743e7cdc5c06b8b3e"
            },
            "downloads": -1,
            "filename": "eodag-cube-0.4.1.tar.gz",
            "has_sig": false,
            "md5_digest": "dec49bba84e205f44880ebcee33f788c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 15330,
            "upload_time": "2024-02-29T09:45:40",
            "upload_time_iso_8601": "2024-02-29T09:45:40.183777Z",
            "url": "https://files.pythonhosted.org/packages/8a/3e/9b0b1a5884b98e2c38897318d1bd4b92bec201878be586200e5ecf762443/eodag-cube-0.4.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-29 09:45:40",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "CS-SI",
    "github_project": "eodag-cube",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "requirements": [],
    "tox": true,
    "lcname": "eodag-cube"
}
        
Elapsed time: 0.30748s