/
__init__.py
40 lines (30 loc) · 1.1 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# This file is part of the Open Data Cube, see https://opendatacube.org for more information
#
# Copyright (c) 2015-2023 ODC Contributors
# SPDX-License-Identifier: Apache-2.0
"""
Datacube
========
Provides access to multi-dimensional data, with a focus on Earth observations data such as LANDSAT.
To use this module, see the `Developer Guide <http://datacube-core.readthedocs.io/en/stable/dev/developer.html>`_.
The main class to access the datacube is :class:`datacube.Datacube`.
To initialise this class, you will need a config pointing to a database, such as a file with the following::
[datacube]
db_hostname: 130.56.244.227
db_database: democube
db_username: cube_user
"""
try:
from ._version import version as __version__
except ImportError:
__version__ = 'Unknown/Not Installed'
from .api import Datacube
import warnings
from .utils import xarray_geoextensions
# Ensure deprecation warnings from datacube modules are shown
warnings.filterwarnings('always', category=DeprecationWarning, module=r'^datacube\.')
__all__ = (
"Datacube",
"__version__",
"xarray_geoextensions",
)