# -*- coding: utf-8 -*-
from setuptools import setup

packages = \
['copernicus_marine_client',
 'copernicus_marine_client.catalogue_parser',
 'copernicus_marine_client.command_line_interface']

package_data = \
{'': ['*']}

install_requires = \
['click>=8.0.4', 'numpy>=1.0', 'owslib>=0.27.2', 'requests>=2.27.1']

entry_points = \
{'console_scripts': ['copernicus-marine = '
                     'copernicus_marine_client.command_line_interface.copernicus_marine:command_line_interface']}

setup_kwargs = {
    'name': 'copernicus-marine-client',
    'version': '0.1.0',
    'description': '',
    'long_description': '# Copernicus Marine Service client\n\nA library to facilitate the access of Copernicus Marine Service products and datasets.\n\n## Introduction\n\nThis package allows to recover products and datasets information from Command Line Interface or with Python code.\n\n## Command Line Interface (CLI)\n\nRetrieve information about products as JSON:\n\n```\n> copernicus-marine describe\n{\n  "products": [\n    {\n      "bbox": [\n        null,\n        null,\n        null,\n        null\n      ],\n      "created": "2018-02-12",\n      "product_id": "GLOBAL_OMI_NATLANTIC_amoc_max26N_timeseries",\n      "temporal_extent": [\n        "1901-01-01",\n        "1901-01-01"\n      ],\n      "thumbnail": "https://catalogue.marine.copernicus.eu/documents/IMG/GLOBAL_OMI_NATLANTIC_amoc_max26N_timeseries.png",\n      "title": "Atlantic Meridional Overturning Circulation AMOC timeseries at 26N from Reanalysis"\n    },\n    ...\n  ]\n}\n```\n\nRetrieve all information about products and datasets as JSON:\n\n```\n> copernicus-marine describe --include-description=True --include-datasets=True --include-providers=True --include-keywords=True\n{\n  "products": [\n    {\n      "title": "Atlantic Meridional Overturning Circulation AMOC timeseries at 26N from Reanalysis",\n      "product_id": "GLOBAL_OMI_NATLANTIC_amoc_max26N_timeseries",\n      "thumbnail": "https://catalogue.marine.copernicus.eu/documents/IMG/GLOBAL_OMI_NATLANTIC_amoc_max26N_timeseries.png",\n      "description": "\'\'\'DEFINITION\'\'\'\\n\\nThe Atlantic Meridional Overturning strength at 26.5N is obtained by integrating the meridional transport at 26.5 N across the Atlantic basin (zonally) and then doing a cumulative integral in depth. The maximum value in depth is then taken as the strength in Sverdrups (Sv=1x106m3/s). The observations come from the RAPID array (Smeed et al, 2017).    \\n\\n\'\'\'CONTEXT\'\'\'\\n\\nThe Atlantic Meridional Overturning Circulation (AMOC) transports heat northwards in the Atlantic and plays a key role in regional and global climate (Srokosz et al, 2012). There is a northwards transport in the upper kilometer resulting from northwards flow in the Gulf Stream and wind-driven Ekman transport, and southwards flow in the ocean interior and in deep western boundary currents (Srokosz et al, 2012). The observations have revealed variability at monthly to decadal timescales including a temporary weakening in 2009/10 (McCarthy et al, 2012) and a decrease from 2005-2012 (Smeed et al, 2014; Smeed et al, 2018). Other studies have suggested that this weakening may be a result of variability (Smeed et al, 2014; Jackson et al 2017).\\n\\n\'\'\'CMEMS KEY FINDINGS \'\'\'\\n\\nThe AMOC strength exhibits significant variability on many timescales with a temporary weakening in 2009/10. There has been a weakening from 2005-2012 (-0.67 Sv/year, (p=0.03) in the observations and -0.53 Sv/year (p=0.04) in the multi-product mean). The multi-product suggests an earlier increase from 2001-2006 (0.48 Sv/yr, p=0.04), and a weakening in 1998-99, however before this period there is significant uncertainty. This indicates that the changes observed are likely to be variability rather than an ongoing trend (see also Jackson et al, 2018).\\n\\nNote: The key findings will be updated annually in November, in line with OMI evolutions.\\n\\n\'\'\'DOI (product):\'\'\' \\nhttps://doi.org/10.48670/moi-00232",\n      "providers": [\n        {\n          "name": "GLO-MERCATOR-TOULOUSE-FR",\n          "roles": [\n            "custodian"\n          ],\n          "url": null,\n          "email": "yann.drillet@mercator-ocean.fr"\n        },\n        {\n          "name": "GLO-MERCATOR-TOULOUSE-FR",\n          "roles": [\n            "originator"\n          ],\n          "url": null,\n          "email": "karina.von.schuckmann@mercator-ocean.fr"\n        },\n        {\n          "name": "GLO-MERCATOR-TOULOUSE-FR",\n          "roles": [\n            "pointOfContact"\n          ],\n          "url": null,\n          "email": "servicedesk.cmems@mercator-ocean.eu"\n        },\n        {\n          "name": "GLO-MERCATOR-TOULOUSE-FR",\n          "roles": [\n            "resourceProvider"\n          ],\n          "url": null,\n          "email": "renaud.dussurget@mercator-ocean.fr"\n        },\n        {\n          "name": "MOI-OMI-SERVICE",\n          "roles": [\n            "distributor"\n          ],\n          "url": null,\n          "email": "omi.service@mercator-ocean.fr"\n        }\n      ],\n      "created": "2018-02-12",\n      "bbox": [\n        null,\n        null,\n        null,\n        null\n      ],\n      "temporal_extent": [\n        "1901-01-01",\n        "1901-01-01"\n      ],\n      "keywords": [\n        "GEMET - INSPIRE themes, version 1.0",\n        "Discipline",\n        "Climate and Forecast Standard Names",\n        "Temporal scale",\n        "Area of benefit",\n        "Reference Geographical Areas",\n        "Processing level",\n        "Model assimilation"\n      ],\n      "datasets": [\n        {\n          "dataset_id": "global_omi_natlantic_amoc_max26N_timeseries",\n          "services": [\n            {\n              "protocol": "WWW:FTP",\n              "uri": "ftp://my.cmems-du.eu/Core/GLOBAL_OMI_NATLANTIC_amoc_max26N_timeseries/global_omi_natlantic_amoc_max26N_timeseries"\n            },\n            {\n              "protocol": "MYO:MOTU-DGF",\n              "uri": "https://mdl1.marine.copernicus.eu/derived/GLOBAL_OMI_NATLANTIC_amoc_max26N_timeseries/global_omi_natlantic_amoc_max26N_timeseries_202207/GLOBAL_OMI_NATLANTIC_amoc_max26n_timeseries_19930115_P20220428.nc"\n            }\n          ]\n        }\n      ]\n    },\n    ...\n  ]\n}\n```\n\nCheck out the help:\n\n```\n> copernicus-marine describe --help\nUsage: copernicus-marine describe [OPTIONS]\n\nOptions:\n  --one-line BOOLEAN             Output JSON on one line\n  --include-description BOOLEAN  Include product description in output\n  --include-datasets BOOLEAN     Include product dataset details in output\n  --include-providers BOOLEAN    Include product provider details in output\n  --include-keywords BOOLEAN     Include product keyword details in output\n  --help                         Show this message and exit.\n```\n\n## Installation\n\nUsing pip, for example:\n```\npip install copernicus-marine\n```\n## Technical details\n\nThis module is organized around two capabilities:\n- a catalogue, parsed from web requests, that contains informations on the available datasets\n- a downloader, to simplify the download of dataset files or subsets\n\nThe catalogue can be displayed by the user and is used by the downloader to link the user\nrequests with files or subset of files to retrieve.\nThe downloader will help the user download the needed datasets.\n',
    'author': 'jsouchard',
    'author_email': 'jsouchard@mercator-ocean.fr',
    'maintainer': 'None',
    'maintainer_email': 'None',
    'url': 'None',
    'packages': packages,
    'package_data': package_data,
    'install_requires': install_requires,
    'entry_points': entry_points,
    'python_requires': '>=3.9',
}


setup(**setup_kwargs)
