Skip to content

Commit

Permalink
Updated licence headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
SpacemanPaul committed Apr 24, 2024
1 parent febd90f commit d0a4333
Show file tree
Hide file tree
Showing 109 changed files with 221 additions and 107 deletions.
3 changes: 2 additions & 1 deletion cfg_parser.py
Original file line number Diff line number Diff line change
@@ -1,8 +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-2023 OWS Contributors
# Copyright (c) 2017-2024 OWS Contributors
# SPDX-License-Identifier: Apache-2.0

from datacube_ows.cfg_parser_impl import main
from datacube_ows.startup_utils import initialise_debugging

Expand Down
3 changes: 2 additions & 1 deletion datacube_ows/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +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-2023 OWS Contributors
# Copyright (c) 2017-2024 OWS Contributors
# SPDX-License-Identifier: Apache-2.0

try:
from ._version import version as __version__
except ImportError:
Expand Down
3 changes: 2 additions & 1 deletion datacube_ows/band_utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +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-2023 OWS Contributors
# Copyright (c) 2017-2024 OWS Contributors
# SPDX-License-Identifier: Apache-2.0

from __future__ import division

import numpy
Expand Down
3 changes: 2 additions & 1 deletion datacube_ows/cfg_parser_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2023 OWS Contributors
# Copyright (c) 2017-2024 OWS Contributors
# SPDX-License-Identifier: Apache-2.0


import json
import os
import sys
Expand Down
3 changes: 2 additions & 1 deletion datacube_ows/config_toolkit.py
Original file line number Diff line number Diff line change
@@ -1,8 +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-2023 OWS Contributors
# Copyright (c) 2017-2024 OWS Contributors
# SPDX-License-Identifier: Apache-2.0

from copy import deepcopy
from typing import Any

Expand Down
3 changes: 2 additions & 1 deletion datacube_ows/config_utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +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-2023 OWS Contributors
# Copyright (c) 2017-2024 OWS Contributors
# SPDX-License-Identifier: Apache-2.0

import json
import logging
import os
Expand Down
3 changes: 2 additions & 1 deletion datacube_ows/cube_pool.py
Original file line number Diff line number Diff line change
@@ -1,8 +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-2023 OWS Contributors
# Copyright (c) 2017-2024 OWS Contributors
# SPDX-License-Identifier: Apache-2.0

import logging
from contextlib import contextmanager
from threading import Lock
Expand Down
3 changes: 2 additions & 1 deletion datacube_ows/data.py
Original file line number Diff line number Diff line change
@@ -1,8 +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-2023 OWS Contributors
# Copyright (c) 2017-2024 OWS Contributors
# SPDX-License-Identifier: Apache-2.0

import logging
from datetime import date, datetime, timedelta
from typing import cast, Any
Expand Down
3 changes: 2 additions & 1 deletion datacube_ows/feature_info.py
Original file line number Diff line number Diff line change
@@ -1,8 +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-2023 OWS Contributors
# Copyright (c) 2017-2024 OWS Contributors
# SPDX-License-Identifier: Apache-2.0

import logging
import re
from datetime import datetime
Expand Down
3 changes: 2 additions & 1 deletion datacube_ows/gunicorn_config.py
Original file line number Diff line number Diff line change
@@ -1,8 +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-2023 OWS Contributors
# Copyright (c) 2017-2024 OWS Contributors
# SPDX-License-Identifier: Apache-2.0

"""Gunicorn config for Prometheus internal metrics
"""
import os
Expand Down
1 change: 1 addition & 0 deletions datacube_ows/http_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#
# Copyright (c) 2017-2024 OWS Contributors
# SPDX-License-Identifier: Apache-2.0

import json
from typing import Optional
from urllib.parse import urlparse
Expand Down
3 changes: 2 additions & 1 deletion datacube_ows/legend_generator.py
Original file line number Diff line number Diff line change
@@ -1,8 +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-2023 OWS Contributors
# Copyright (c) 2017-2024 OWS Contributors
# SPDX-License-Identifier: Apache-2.0

import io
import logging

Expand Down
3 changes: 2 additions & 1 deletion datacube_ows/legend_utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +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-2023 OWS Contributors
# Copyright (c) 2017-2024 OWS Contributors
# SPDX-License-Identifier: Apache-2.0

import io
import logging
from typing import Optional
Expand Down
6 changes: 6 additions & 0 deletions datacube_ows/loading.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-2024 OWS Contributors
# SPDX-License-Identifier: Apache-2.0

from collections import OrderedDict

import datetime
Expand Down
3 changes: 2 additions & 1 deletion datacube_ows/mv_index.py
Original file line number Diff line number Diff line change
@@ -1,8 +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-2023 OWS Contributors
# Copyright (c) 2017-2024 OWS Contributors
# SPDX-License-Identifier: Apache-2.0

import datetime
import json
from enum import Enum
Expand Down
3 changes: 2 additions & 1 deletion datacube_ows/ogc.py
Original file line number Diff line number Diff line change
@@ -1,8 +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-2023 OWS Contributors
# Copyright (c) 2017-2024 OWS Contributors
# SPDX-License-Identifier: Apache-2.0

import sys
import traceback
from time import monotonic
Expand Down
3 changes: 2 additions & 1 deletion datacube_ows/ogc_exceptions.py
Original file line number Diff line number Diff line change
@@ -1,8 +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-2023 OWS Contributors
# Copyright (c) 2017-2024 OWS Contributors
# SPDX-License-Identifier: Apache-2.0

import traceback as tb

from flask import render_template
Expand Down
3 changes: 2 additions & 1 deletion datacube_ows/ogc_utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +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-2023 OWS Contributors
# Copyright (c) 2017-2024 OWS Contributors
# SPDX-License-Identifier: Apache-2.0

import logging
import datetime
from io import BytesIO
Expand Down
3 changes: 2 additions & 1 deletion datacube_ows/ows_cfg_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2023 OWS Contributors
# Copyright (c) 2017-2024 OWS Contributors
# SPDX-License-Identifier: Apache-2.0



# Example configuration file for datacube_ows.
#
# The file was originally the only documentation for the configuration file format.
Expand Down
3 changes: 2 additions & 1 deletion datacube_ows/ows_configuration.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2023 OWS Contributors
# Copyright (c) 2017-2024 OWS Contributors
# SPDX-License-Identifier: Apache-2.0


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


#pylint: skip-file

import math
Expand Down
3 changes: 2 additions & 1 deletion datacube_ows/protocol_versions.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2023 OWS Contributors
# Copyright (c) 2017-2024 OWS Contributors
# SPDX-License-Identifier: Apache-2.0


import re
from typing import Callable, Mapping, Sequence, Tuple

Expand Down
3 changes: 2 additions & 1 deletion datacube_ows/query_profiler.py
Original file line number Diff line number Diff line change
@@ -1,8 +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-2023 OWS Contributors
# Copyright (c) 2017-2024 OWS Contributors
# SPDX-License-Identifier: Apache-2.0

from time import time


Expand Down
3 changes: 2 additions & 1 deletion datacube_ows/resource_limits.py
Original file line number Diff line number Diff line change
@@ -1,8 +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-2023 OWS Contributors
# Copyright (c) 2017-2024 OWS Contributors
# SPDX-License-Identifier: Apache-2.0

import math
from typing import Any, Iterable, Mapping, cast

Expand Down
3 changes: 2 additions & 1 deletion datacube_ows/startup_utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +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-2023 OWS Contributors
# Copyright (c) 2017-2024 OWS Contributors
# SPDX-License-Identifier: Apache-2.0

import logging
import os
import warnings
Expand Down
3 changes: 2 additions & 1 deletion datacube_ows/styles/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +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-2023 OWS Contributors
# Copyright (c) 2017-2024 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
3 changes: 2 additions & 1 deletion datacube_ows/styles/api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# This file is part of datacube-ows, part of the Open Data Cube project.
# See https://opendatacube.org for more information.
#
# Copyright (c) 2017-2023 OWS Contributors
# Copyright (c) 2017-2024 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,
generate_ows_legend_style, generate_ows_legend_style_cfg,
Expand Down
3 changes: 2 additions & 1 deletion datacube_ows/styles/api/base.py
Original file line number Diff line number Diff line change
@@ -1,8 +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-2023 OWS Contributors
# Copyright (c) 2017-2024 OWS Contributors
# SPDX-License-Identifier: Apache-2.0

import xarray

from datacube_ows.startup_utils import initialise_ignorable_warnings
Expand Down
3 changes: 2 additions & 1 deletion datacube_ows/styles/base.py
Original file line number Diff line number Diff line change
@@ -1,8 +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-2023 OWS Contributors
# Copyright (c) 2017-2024 OWS Contributors
# SPDX-License-Identifier: Apache-2.0

import io
import logging
from typing import (Any, Iterable, Mapping, MutableMapping, Optional, Sized, Type, Union, cast)
Expand Down
3 changes: 2 additions & 1 deletion datacube_ows/styles/colormap.py
Original file line number Diff line number Diff line change
@@ -1,8 +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-2023 OWS Contributors
# Copyright (c) 2017-2024 OWS Contributors
# SPDX-License-Identifier: Apache-2.0

import io
import logging
from datetime import datetime
Expand Down
3 changes: 2 additions & 1 deletion datacube_ows/styles/component.py
Original file line number Diff line number Diff line change
@@ -1,8 +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-2023 OWS Contributors
# Copyright (c) 2017-2024 OWS Contributors
# SPDX-License-Identifier: Apache-2.0

from typing import Any, Callable, Hashable, cast

import numpy as np
Expand Down
3 changes: 2 additions & 1 deletion datacube_ows/styles/expression.py
Original file line number Diff line number Diff line change
@@ -1,8 +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-2023 OWS Contributors
# Copyright (c) 2017-2024 OWS Contributors
# SPDX-License-Identifier: Apache-2.0

from typing import Any, Type, cast

from xarray import Dataset
Expand Down
3 changes: 2 additions & 1 deletion datacube_ows/styles/hybrid.py
Original file line number Diff line number Diff line change
@@ -1,8 +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-2023 OWS Contributors
# Copyright (c) 2017-2024 OWS Contributors
# SPDX-License-Identifier: Apache-2.0

from typing import cast

from xarray import DataArray, Dataset
Expand Down
3 changes: 2 additions & 1 deletion datacube_ows/styles/ramp.py
Original file line number Diff line number Diff line change
@@ -1,8 +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-2023 OWS Contributors
# Copyright (c) 2017-2024 OWS Contributors
# SPDX-License-Identifier: Apache-2.0

import io
import logging
from collections import defaultdict
Expand Down
3 changes: 2 additions & 1 deletion datacube_ows/tile_matrix_sets.py
Original file line number Diff line number Diff line change
@@ -1,8 +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-2023 OWS Contributors
# Copyright (c) 2017-2024 OWS Contributors
# SPDX-License-Identifier: Apache-2.0

from typing import cast, Type
from datacube_ows.config_utils import OWSConfigEntry, ConfigException, CFG_DICT, RAW_CFG

Expand Down
3 changes: 2 additions & 1 deletion datacube_ows/time_utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +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-2023 OWS Contributors
# Copyright (c) 2017-2024 OWS Contributors
# SPDX-License-Identifier: Apache-2.0

import logging
import datetime
from typing import Optional, Sequence
Expand Down
Loading

0 comments on commit d0a4333

Please sign in to comment.