Skip to content

Commit

Permalink
Add license headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
phaesler committed May 12, 2021
1 parent ea03def commit 4ca66f5
Show file tree
Hide file tree
Showing 99 changed files with 517 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cfg_parser.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
from datacube_ows.cfg_parser import main

if __name__ == '__main__':
Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
try:
from ._version import version as __version__
except ImportError:
Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/band_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
from __future__ import division

import numpy
Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/cfg_parser.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/usr/bin/env python3
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0

import json
import sys
Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/config_toolkit.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
from copy import deepcopy


Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/config_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
import json
import os
from importlib import import_module
Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/cube_pool.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
from __future__ import absolute_import, division, print_function

import logging
Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/data.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
from __future__ import absolute_import

import json
Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/gunicorn_config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
"""Gunicorn config for Prometheus internal metrics
"""
import os
Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/legend_generator.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
from __future__ import absolute_import

import io
Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/legend_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
import io

import requests
Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/mv_index.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
import json
from enum import Enum

Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/ogc.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
import sys
import traceback
from time import monotonic
Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/ogc_exceptions.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
from __future__ import absolute_import, division, print_function

import traceback as tb
Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/ogc_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
from __future__ import absolute_import, division, print_function

import datetime
Expand Down
6 changes: 6 additions & 0 deletions datacube_ows/ows_cfg_example.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# pylint: skip-file
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0


# Example configuration file for datacube_ows.
#
Expand Down
6 changes: 6 additions & 0 deletions datacube_ows/ows_configuration.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0

#
# Note this is NOT the configuration file!
#
Expand Down
6 changes: 6 additions & 0 deletions datacube_ows/product_ranges.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0

#pylint: skip-file

from __future__ import absolute_import, division, print_function
Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/protocol_versions.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
from datacube_ows.ogc_exceptions import (WCS1Exception, WCS2Exception,
WMSException, WMTSException)
from datacube_ows.ows_configuration import get_config
Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/query_profiler.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
from time import time


Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/startup_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
from __future__ import absolute_import, division, print_function

import logging
Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/styles/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
from datacube_ows.styles.base import StyleDefBase # noqa: F401
from datacube_ows.styles.colormap import ColorMapStyleDef # noqa: F401
from datacube_ows.styles.component import ComponentStyleDef # noqa: F401
Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/styles/api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0

from datacube_ows.styles.api.base import ( # noqa: F401 isort:skip
StandaloneStyle, apply_ows_style, apply_ows_style_cfg,
Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/styles/api/base.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
from datacube_ows.startup_utils import initialise_ignorable_warnings
from datacube_ows.styles.base import StandaloneProductProxy, StyleDefBase

Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/styles/base.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
import io
import logging

Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/styles/colormap.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
import logging
from datetime import datetime

Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/styles/component.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
import numpy as np
from xarray import DataArray, Dataset

Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/styles/expr.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
import lark


Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/styles/expression.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
import lark

from datacube_ows.ogc_utils import ConfigException
Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/styles/hybrid.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
from xarray import Dataset

from datacube_ows.styles.base import StyleDefBase
Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/styles/ramp.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
import logging
from collections import defaultdict
from decimal import ROUND_HALF_UP, Decimal
Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/tile_matrix_sets.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
from datacube_ows.config_utils import OWSConfigEntry
from datacube_ows.ogc_utils import ConfigException

Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/update_ranges.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/usr/bin/env python3
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0

import os
import re
Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
from __future__ import absolute_import, division, print_function

import logging
Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/wcs1.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
from __future__ import absolute_import, division, print_function

from flask import render_template
Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/wcs1_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
from __future__ import absolute_import, division, print_function

import numpy
Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/wcs2.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
from __future__ import absolute_import, division, print_function

from flask import request
Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/wcs2_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
from __future__ import absolute_import, division, print_function

import collections
Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/wcs_scaler.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
from affine import Affine
from datacube.utils import geometry

Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/wcs_utils.py
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
from datacube_ows.wcs1_utils import get_netcdf, get_tiff # noqa: F401
5 changes: 5 additions & 0 deletions datacube_ows/wms.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
from __future__ import absolute_import, division, print_function

from flask import render_template
Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/wms_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
from __future__ import absolute_import, division, print_function

from datacube_ows.styles import StyleDef
Expand Down
5 changes: 5 additions & 0 deletions datacube_ows/wmts.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2021 OWS Contributors
# SPDX-License-Identifier: Apache-2.0
from __future__ import absolute_import, division, print_function

import logging
Expand Down
Loading

0 comments on commit 4ca66f5

Please sign in to comment.