eodag-cube


Nameeodag-cube JSON
Version 0.1.2 PyPI version JSON
download
home_pagehttps://github.com/CS-SI/eodag-cube
SummaryData access for EODAG
upload_time2021-06-18 09:06:02
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/

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_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.


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": "admin@geostorm.eu",
    "download_url": "https://files.pythonhosted.org/packages/0e/00/7223f0adc75ad397faa39c5bceb6376466894e0bfbcd83323766f101e006/eodag-cube-0.1.2.tar.gz",
    "platform": "",
    "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\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_L1C'\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 (dim_0: 750, dim_1: 566)>\n    array([[1426, 1577, 1672, ..., 6219, 5916, 5281],\n        [1416, 1668, 1830, ..., 6277, 6022, 5621],\n        [1502, 1896, 2107, ..., 6287, 6081, 5890],\n        ...,\n        [1878, 2475, 2922, ..., 1605, 1604, 1654],\n        [1732, 2219, 2630, ..., 1670, 1659, 1664],\n        [1548, 1832, 2134, ..., 1722, 1732, 1718]], dtype=uint16)\n\nContribute\n==========\n\nIf you intend to contribute to eodag-sentinelsat 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.1.2",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "88440c687f371e883caf874b88115b27",
                "sha256": "33c4b7ecaeceaf7157075d2f645f9bbd8b62d9ef0507d1cdfb0a5a666dcad0c2"
            },
            "downloads": -1,
            "filename": "eodag_cube-0.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "88440c687f371e883caf874b88115b27",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 24686,
            "upload_time": "2021-06-18T09:06:01",
            "upload_time_iso_8601": "2021-06-18T09:06:01.374708Z",
            "url": "https://files.pythonhosted.org/packages/f9/ae/e7b464420dc5980b51db83ef8984972b5d1168ff92b22649669c17c03e4a/eodag_cube-0.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "74805b2849919e7af8c4b1cd96cf6e6f",
                "sha256": "fc530c5bb6a9cfef55ecc7b542d27f894e6a847925080637b1c48c76c2b985d4"
            },
            "downloads": -1,
            "filename": "eodag-cube-0.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "74805b2849919e7af8c4b1cd96cf6e6f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 13143,
            "upload_time": "2021-06-18T09:06:02",
            "upload_time_iso_8601": "2021-06-18T09:06:02.402339Z",
            "url": "https://files.pythonhosted.org/packages/0e/00/7223f0adc75ad397faa39c5bceb6376466894e0bfbcd83323766f101e006/eodag-cube-0.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-06-18 09:06:02",
    "github": true,
    "gitlab": false,
    "bitbucket": 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.25486s