diff --git a/README.md b/README.md index 6cf0e82c8..710c68f2f 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ $ pip install anemoi-datasets ## License ``` -Copyright 2022, European Centre for Medium Range Weather Forecasts. +Copyright 2024, Anemoi contributors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/src/anemoi/datasets/commands/cleanup.py b/src/anemoi/datasets/commands/cleanup.py index 653721890..267a8f141 100644 --- a/src/anemoi/datasets/commands/cleanup.py +++ b/src/anemoi/datasets/commands/cleanup.py @@ -1,3 +1,12 @@ +# (C) Copyright 2024 Anemoi contributors. +# +# This software is licensed under the terms of the Apache Licence Version 2.0 +# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# +# In applying this licence, ECMWF does not waive the privileges and immunities +# granted to it by virtue of its status as an intergovernmental organisation +# nor does it submit to any jurisdiction. + import logging import time diff --git a/src/anemoi/datasets/commands/compare.py b/src/anemoi/datasets/commands/compare.py index b46a64ce0..e787fce98 100644 --- a/src/anemoi/datasets/commands/compare.py +++ b/src/anemoi/datasets/commands/compare.py @@ -1,12 +1,12 @@ -#!/usr/bin/env python -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import numpy as np import tqdm diff --git a/src/anemoi/datasets/commands/copy.py b/src/anemoi/datasets/commands/copy.py index 9c5981fde..1ca9aef8b 100644 --- a/src/anemoi/datasets/commands/copy.py +++ b/src/anemoi/datasets/commands/copy.py @@ -1,10 +1,13 @@ -# (C) Copyright 2023 European Centre for Medium-Range Weather Forecasts. +# (C) Copyright 2024 Anemoi contributors. +# # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. + import logging import os import shutil diff --git a/src/anemoi/datasets/commands/create.py b/src/anemoi/datasets/commands/create.py index 2b44a1f32..2992624fe 100644 --- a/src/anemoi/datasets/commands/create.py +++ b/src/anemoi/datasets/commands/create.py @@ -1,3 +1,12 @@ +# (C) Copyright 2024 Anemoi contributors. +# +# This software is licensed under the terms of the Apache Licence Version 2.0 +# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# +# In applying this licence, ECMWF does not waive the privileges and immunities +# granted to it by virtue of its status as an intergovernmental organisation +# nor does it submit to any jurisdiction. + import datetime import logging import time diff --git a/src/anemoi/datasets/commands/finalise-additions.py b/src/anemoi/datasets/commands/finalise-additions.py index e6212ab68..f75a17203 100644 --- a/src/anemoi/datasets/commands/finalise-additions.py +++ b/src/anemoi/datasets/commands/finalise-additions.py @@ -1,3 +1,12 @@ +# (C) Copyright 2024 Anemoi contributors. +# +# This software is licensed under the terms of the Apache Licence Version 2.0 +# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# +# In applying this licence, ECMWF does not waive the privileges and immunities +# granted to it by virtue of its status as an intergovernmental organisation +# nor does it submit to any jurisdiction. + import logging import time diff --git a/src/anemoi/datasets/commands/finalise.py b/src/anemoi/datasets/commands/finalise.py index 0844a4468..56efcff83 100644 --- a/src/anemoi/datasets/commands/finalise.py +++ b/src/anemoi/datasets/commands/finalise.py @@ -1,3 +1,12 @@ +# (C) Copyright 2024 Anemoi contributors. +# +# This software is licensed under the terms of the Apache Licence Version 2.0 +# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# +# In applying this licence, ECMWF does not waive the privileges and immunities +# granted to it by virtue of its status as an intergovernmental organisation +# nor does it submit to any jurisdiction. + import logging import time diff --git a/src/anemoi/datasets/commands/init-additions.py b/src/anemoi/datasets/commands/init-additions.py index 455875317..894da643a 100644 --- a/src/anemoi/datasets/commands/init-additions.py +++ b/src/anemoi/datasets/commands/init-additions.py @@ -1,3 +1,12 @@ +# (C) Copyright 2024 Anemoi contributors. +# +# This software is licensed under the terms of the Apache Licence Version 2.0 +# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# +# In applying this licence, ECMWF does not waive the privileges and immunities +# granted to it by virtue of its status as an intergovernmental organisation +# nor does it submit to any jurisdiction. + import logging import time diff --git a/src/anemoi/datasets/commands/init.py b/src/anemoi/datasets/commands/init.py index d03d61a01..9833f3abc 100644 --- a/src/anemoi/datasets/commands/init.py +++ b/src/anemoi/datasets/commands/init.py @@ -1,3 +1,12 @@ +# (C) Copyright 2024 Anemoi contributors. +# +# This software is licensed under the terms of the Apache Licence Version 2.0 +# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# +# In applying this licence, ECMWF does not waive the privileges and immunities +# granted to it by virtue of its status as an intergovernmental organisation +# nor does it submit to any jurisdiction. + import logging import time diff --git a/src/anemoi/datasets/commands/inspect.py b/src/anemoi/datasets/commands/inspect.py index 0e89f7b43..f82f1787f 100644 --- a/src/anemoi/datasets/commands/inspect.py +++ b/src/anemoi/datasets/commands/inspect.py @@ -1,6 +1,8 @@ -# (C) Copyright 2023 European Centre for Medium-Range Weather Forecasts. +# (C) Copyright 2024 Anemoi contributors. +# # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. diff --git a/src/anemoi/datasets/commands/load-additions.py b/src/anemoi/datasets/commands/load-additions.py index 1f69e471c..d95772f5d 100644 --- a/src/anemoi/datasets/commands/load-additions.py +++ b/src/anemoi/datasets/commands/load-additions.py @@ -1,3 +1,12 @@ +# (C) Copyright 2024 Anemoi contributors. +# +# This software is licensed under the terms of the Apache Licence Version 2.0 +# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# +# In applying this licence, ECMWF does not waive the privileges and immunities +# granted to it by virtue of its status as an intergovernmental organisation +# nor does it submit to any jurisdiction. + import logging import time diff --git a/src/anemoi/datasets/commands/load.py b/src/anemoi/datasets/commands/load.py index d776ea104..c2a75aa95 100644 --- a/src/anemoi/datasets/commands/load.py +++ b/src/anemoi/datasets/commands/load.py @@ -1,3 +1,12 @@ +# (C) Copyright 2024 Anemoi contributors. +# +# This software is licensed under the terms of the Apache Licence Version 2.0 +# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# +# In applying this licence, ECMWF does not waive the privileges and immunities +# granted to it by virtue of its status as an intergovernmental organisation +# nor does it submit to any jurisdiction. + import logging import time diff --git a/src/anemoi/datasets/commands/patch.py b/src/anemoi/datasets/commands/patch.py index c3078b3b5..81406f1db 100644 --- a/src/anemoi/datasets/commands/patch.py +++ b/src/anemoi/datasets/commands/patch.py @@ -1,3 +1,12 @@ +# (C) Copyright 2024 Anemoi contributors. +# +# This software is licensed under the terms of the Apache Licence Version 2.0 +# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# +# In applying this licence, ECMWF does not waive the privileges and immunities +# granted to it by virtue of its status as an intergovernmental organisation +# nor does it submit to any jurisdiction. + import logging import time diff --git a/src/anemoi/datasets/commands/publish.py b/src/anemoi/datasets/commands/publish.py index ff407c64f..710a2cd53 100644 --- a/src/anemoi/datasets/commands/publish.py +++ b/src/anemoi/datasets/commands/publish.py @@ -1,3 +1,12 @@ +# (C) Copyright 2024 Anemoi contributors. +# +# This software is licensed under the terms of the Apache Licence Version 2.0 +# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# +# In applying this licence, ECMWF does not waive the privileges and immunities +# granted to it by virtue of its status as an intergovernmental organisation +# nor does it submit to any jurisdiction. + import logging from . import Command diff --git a/src/anemoi/datasets/commands/scan.py b/src/anemoi/datasets/commands/scan.py index de5883e8f..cddee594f 100644 --- a/src/anemoi/datasets/commands/scan.py +++ b/src/anemoi/datasets/commands/scan.py @@ -1,3 +1,12 @@ +# (C) Copyright 2024 Anemoi contributors. +# +# This software is licensed under the terms of the Apache Licence Version 2.0 +# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# +# In applying this licence, ECMWF does not waive the privileges and immunities +# granted to it by virtue of its status as an intergovernmental organisation +# nor does it submit to any jurisdiction. + import fnmatch import os import sys diff --git a/src/anemoi/datasets/compute/recentre.py b/src/anemoi/datasets/compute/recentre.py index a3840ccd5..9494db576 100644 --- a/src/anemoi/datasets/compute/recentre.py +++ b/src/anemoi/datasets/compute/recentre.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import logging diff --git a/src/anemoi/datasets/create/check.py b/src/anemoi/datasets/create/check.py index 902f66e92..e6f5eb144 100644 --- a/src/anemoi/datasets/create/check.py +++ b/src/anemoi/datasets/create/check.py @@ -1,11 +1,12 @@ -# (C) Copyright 2023 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import logging import re diff --git a/src/anemoi/datasets/create/chunks.py b/src/anemoi/datasets/create/chunks.py index 3ab70b8cc..5247462fc 100644 --- a/src/anemoi/datasets/create/chunks.py +++ b/src/anemoi/datasets/create/chunks.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import logging import warnings diff --git a/src/anemoi/datasets/create/config.py b/src/anemoi/datasets/create/config.py index d64bdb7f0..b761d242e 100644 --- a/src/anemoi/datasets/create/config.py +++ b/src/anemoi/datasets/create/config.py @@ -1,11 +1,12 @@ -# (C) Copyright 2023 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import datetime import logging import os diff --git a/src/anemoi/datasets/create/functions/filters/empty.py b/src/anemoi/datasets/create/functions/filters/empty.py index 4a4438799..7ceefda0b 100644 --- a/src/anemoi/datasets/create/functions/filters/empty.py +++ b/src/anemoi/datasets/create/functions/filters/empty.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import earthkit.data as ekd diff --git a/src/anemoi/datasets/create/functions/filters/noop.py b/src/anemoi/datasets/create/functions/filters/noop.py index 9dbdccd47..6a3627015 100644 --- a/src/anemoi/datasets/create/functions/filters/noop.py +++ b/src/anemoi/datasets/create/functions/filters/noop.py @@ -1,11 +1,11 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# def execute(context, input, *args, **kwargs): diff --git a/src/anemoi/datasets/create/functions/filters/pressure_level_relative_humidity_to_specific_humidity.py b/src/anemoi/datasets/create/functions/filters/pressure_level_relative_humidity_to_specific_humidity.py index 28d9ed6a2..7c45a0d87 100644 --- a/src/anemoi/datasets/create/functions/filters/pressure_level_relative_humidity_to_specific_humidity.py +++ b/src/anemoi/datasets/create/functions/filters/pressure_level_relative_humidity_to_specific_humidity.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + from collections import defaultdict diff --git a/src/anemoi/datasets/create/functions/filters/pressure_level_specific_humidity_to_relative_humidity.py b/src/anemoi/datasets/create/functions/filters/pressure_level_specific_humidity_to_relative_humidity.py index 1c817fb4d..5f2fedaa8 100644 --- a/src/anemoi/datasets/create/functions/filters/pressure_level_specific_humidity_to_relative_humidity.py +++ b/src/anemoi/datasets/create/functions/filters/pressure_level_specific_humidity_to_relative_humidity.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + from collections import defaultdict diff --git a/src/anemoi/datasets/create/functions/filters/rename.py b/src/anemoi/datasets/create/functions/filters/rename.py index 666e085df..f66530e99 100644 --- a/src/anemoi/datasets/create/functions/filters/rename.py +++ b/src/anemoi/datasets/create/functions/filters/rename.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import re diff --git a/src/anemoi/datasets/create/functions/filters/rotate_winds.py b/src/anemoi/datasets/create/functions/filters/rotate_winds.py index a644ff223..74f297c13 100644 --- a/src/anemoi/datasets/create/functions/filters/rotate_winds.py +++ b/src/anemoi/datasets/create/functions/filters/rotate_winds.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + from collections import defaultdict diff --git a/src/anemoi/datasets/create/functions/filters/single_level_dewpoint_to_relative_humidity.py b/src/anemoi/datasets/create/functions/filters/single_level_dewpoint_to_relative_humidity.py index 2afd53d2b..134ad45c6 100644 --- a/src/anemoi/datasets/create/functions/filters/single_level_dewpoint_to_relative_humidity.py +++ b/src/anemoi/datasets/create/functions/filters/single_level_dewpoint_to_relative_humidity.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + from collections import defaultdict diff --git a/src/anemoi/datasets/create/functions/filters/single_level_relative_humidity_to_dewpoint.py b/src/anemoi/datasets/create/functions/filters/single_level_relative_humidity_to_dewpoint.py index 116feaf35..0e9b9dc85 100644 --- a/src/anemoi/datasets/create/functions/filters/single_level_relative_humidity_to_dewpoint.py +++ b/src/anemoi/datasets/create/functions/filters/single_level_relative_humidity_to_dewpoint.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + from collections import defaultdict diff --git a/src/anemoi/datasets/create/functions/filters/single_level_relative_humidity_to_specific_humidity.py b/src/anemoi/datasets/create/functions/filters/single_level_relative_humidity_to_specific_humidity.py index f7be41a35..e75e73fba 100644 --- a/src/anemoi/datasets/create/functions/filters/single_level_relative_humidity_to_specific_humidity.py +++ b/src/anemoi/datasets/create/functions/filters/single_level_relative_humidity_to_specific_humidity.py @@ -1,11 +1,11 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# import numpy as np diff --git a/src/anemoi/datasets/create/functions/filters/single_level_specific_humidity_to_relative_humidity.py b/src/anemoi/datasets/create/functions/filters/single_level_specific_humidity_to_relative_humidity.py index aac55f030..387311869 100644 --- a/src/anemoi/datasets/create/functions/filters/single_level_specific_humidity_to_relative_humidity.py +++ b/src/anemoi/datasets/create/functions/filters/single_level_specific_humidity_to_relative_humidity.py @@ -1,11 +1,11 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# import numpy as np diff --git a/src/anemoi/datasets/create/functions/filters/speeddir_to_uv.py b/src/anemoi/datasets/create/functions/filters/speeddir_to_uv.py index 80603d5bb..27c6ce8df 100644 --- a/src/anemoi/datasets/create/functions/filters/speeddir_to_uv.py +++ b/src/anemoi/datasets/create/functions/filters/speeddir_to_uv.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + from collections import defaultdict diff --git a/src/anemoi/datasets/create/functions/filters/unrotate_winds.py b/src/anemoi/datasets/create/functions/filters/unrotate_winds.py index 1b8ff3406..2663df8b9 100644 --- a/src/anemoi/datasets/create/functions/filters/unrotate_winds.py +++ b/src/anemoi/datasets/create/functions/filters/unrotate_winds.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + from collections import defaultdict diff --git a/src/anemoi/datasets/create/functions/filters/uv_to_speeddir.py b/src/anemoi/datasets/create/functions/filters/uv_to_speeddir.py index bfba4e186..834ae7fa6 100644 --- a/src/anemoi/datasets/create/functions/filters/uv_to_speeddir.py +++ b/src/anemoi/datasets/create/functions/filters/uv_to_speeddir.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + from collections import defaultdict diff --git a/src/anemoi/datasets/create/functions/sources/accumulations.py b/src/anemoi/datasets/create/functions/sources/accumulations.py index bfc5eba7b..8a4a2c4b6 100644 --- a/src/anemoi/datasets/create/functions/sources/accumulations.py +++ b/src/anemoi/datasets/create/functions/sources/accumulations.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import datetime import logging import warnings diff --git a/src/anemoi/datasets/create/functions/sources/constants.py b/src/anemoi/datasets/create/functions/sources/constants.py index ba7165795..512288651 100644 --- a/src/anemoi/datasets/create/functions/sources/constants.py +++ b/src/anemoi/datasets/create/functions/sources/constants.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + from earthkit.data import from_source diff --git a/src/anemoi/datasets/create/functions/sources/empty.py b/src/anemoi/datasets/create/functions/sources/empty.py index 8a6649298..386b82e4d 100644 --- a/src/anemoi/datasets/create/functions/sources/empty.py +++ b/src/anemoi/datasets/create/functions/sources/empty.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import earthkit.data as ekd diff --git a/src/anemoi/datasets/create/functions/sources/forcings.py b/src/anemoi/datasets/create/functions/sources/forcings.py index ac95db57a..fbc649448 100644 --- a/src/anemoi/datasets/create/functions/sources/forcings.py +++ b/src/anemoi/datasets/create/functions/sources/forcings.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + from earthkit.data import from_source diff --git a/src/anemoi/datasets/create/functions/sources/grib.py b/src/anemoi/datasets/create/functions/sources/grib.py index 88a7c1e99..9b8dd57bf 100644 --- a/src/anemoi/datasets/create/functions/sources/grib.py +++ b/src/anemoi/datasets/create/functions/sources/grib.py @@ -1,11 +1,11 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# import glob diff --git a/src/anemoi/datasets/create/functions/sources/hindcasts.py b/src/anemoi/datasets/create/functions/sources/hindcasts.py index 0dc5c9c4e..6dbac99af 100644 --- a/src/anemoi/datasets/create/functions/sources/hindcasts.py +++ b/src/anemoi/datasets/create/functions/sources/hindcasts.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import logging from earthkit.data.core.fieldlist import MultiFieldList diff --git a/src/anemoi/datasets/create/functions/sources/mars.py b/src/anemoi/datasets/create/functions/sources/mars.py index 0e1eebbb7..ab89bbc18 100644 --- a/src/anemoi/datasets/create/functions/sources/mars.py +++ b/src/anemoi/datasets/create/functions/sources/mars.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import datetime from anemoi.utils.humanize import did_you_mean diff --git a/src/anemoi/datasets/create/functions/sources/netcdf.py b/src/anemoi/datasets/create/functions/sources/netcdf.py index 9870374b7..ac8ff741b 100644 --- a/src/anemoi/datasets/create/functions/sources/netcdf.py +++ b/src/anemoi/datasets/create/functions/sources/netcdf.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + from .xarray import load_many diff --git a/src/anemoi/datasets/create/functions/sources/opendap.py b/src/anemoi/datasets/create/functions/sources/opendap.py index d25d52f8d..608eb2027 100644 --- a/src/anemoi/datasets/create/functions/sources/opendap.py +++ b/src/anemoi/datasets/create/functions/sources/opendap.py @@ -1,11 +1,11 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# from .xarray import load_many diff --git a/src/anemoi/datasets/create/functions/sources/recentre.py b/src/anemoi/datasets/create/functions/sources/recentre.py index 563b38a67..f690c2f4b 100644 --- a/src/anemoi/datasets/create/functions/sources/recentre.py +++ b/src/anemoi/datasets/create/functions/sources/recentre.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + from copy import deepcopy from anemoi.datasets.compute.recentre import recentre as _recentre diff --git a/src/anemoi/datasets/create/functions/sources/source.py b/src/anemoi/datasets/create/functions/sources/source.py index 765694ccb..392ebc7ad 100644 --- a/src/anemoi/datasets/create/functions/sources/source.py +++ b/src/anemoi/datasets/create/functions/sources/source.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + from earthkit.data import from_source from anemoi.datasets.create.utils import to_datetime_list diff --git a/src/anemoi/datasets/create/functions/sources/tendencies.py b/src/anemoi/datasets/create/functions/sources/tendencies.py index d98dfddee..fe91668fd 100644 --- a/src/anemoi/datasets/create/functions/sources/tendencies.py +++ b/src/anemoi/datasets/create/functions/sources/tendencies.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import datetime from collections import defaultdict diff --git a/src/anemoi/datasets/create/functions/sources/xarray/coordinates.py b/src/anemoi/datasets/create/functions/sources/xarray/coordinates.py index 56bf8fe64..b97f04968 100644 --- a/src/anemoi/datasets/create/functions/sources/xarray/coordinates.py +++ b/src/anemoi/datasets/create/functions/sources/xarray/coordinates.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import datetime import logging diff --git a/src/anemoi/datasets/create/functions/sources/xarray/field.py b/src/anemoi/datasets/create/functions/sources/xarray/field.py index 32fe70ce2..900af4a2a 100644 --- a/src/anemoi/datasets/create/functions/sources/xarray/field.py +++ b/src/anemoi/datasets/create/functions/sources/xarray/field.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import datetime import logging diff --git a/src/anemoi/datasets/create/functions/sources/xarray/fieldlist.py b/src/anemoi/datasets/create/functions/sources/xarray/fieldlist.py index 53d52eb9d..6749a40a5 100644 --- a/src/anemoi/datasets/create/functions/sources/xarray/fieldlist.py +++ b/src/anemoi/datasets/create/functions/sources/xarray/fieldlist.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import json import logging diff --git a/src/anemoi/datasets/create/functions/sources/xarray/flavour.py b/src/anemoi/datasets/create/functions/sources/xarray/flavour.py index 638bf2969..7b142127a 100644 --- a/src/anemoi/datasets/create/functions/sources/xarray/flavour.py +++ b/src/anemoi/datasets/create/functions/sources/xarray/flavour.py @@ -1,11 +1,11 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# import logging diff --git a/src/anemoi/datasets/create/functions/sources/xarray/grid.py b/src/anemoi/datasets/create/functions/sources/xarray/grid.py index 1c639992f..2ff4e3367 100644 --- a/src/anemoi/datasets/create/functions/sources/xarray/grid.py +++ b/src/anemoi/datasets/create/functions/sources/xarray/grid.py @@ -1,11 +1,11 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# import logging diff --git a/src/anemoi/datasets/create/functions/sources/xarray/metadata.py b/src/anemoi/datasets/create/functions/sources/xarray/metadata.py index cf8cfa1de..6744ace9a 100644 --- a/src/anemoi/datasets/create/functions/sources/xarray/metadata.py +++ b/src/anemoi/datasets/create/functions/sources/xarray/metadata.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import logging from functools import cached_property diff --git a/src/anemoi/datasets/create/functions/sources/xarray/time.py b/src/anemoi/datasets/create/functions/sources/xarray/time.py index 281e69756..dcee1d3fb 100644 --- a/src/anemoi/datasets/create/functions/sources/xarray/time.py +++ b/src/anemoi/datasets/create/functions/sources/xarray/time.py @@ -1,11 +1,11 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# import datetime diff --git a/src/anemoi/datasets/create/functions/sources/xarray/variable.py b/src/anemoi/datasets/create/functions/sources/xarray/variable.py index 5e4a1341d..ddb7b3e7e 100644 --- a/src/anemoi/datasets/create/functions/sources/xarray/variable.py +++ b/src/anemoi/datasets/create/functions/sources/xarray/variable.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import logging import math diff --git a/src/anemoi/datasets/create/functions/sources/xarray_kerchunk.py b/src/anemoi/datasets/create/functions/sources/xarray_kerchunk.py index a13da6a5b..61e6973a4 100644 --- a/src/anemoi/datasets/create/functions/sources/xarray_kerchunk.py +++ b/src/anemoi/datasets/create/functions/sources/xarray_kerchunk.py @@ -1,11 +1,11 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# from earthkit.data.core.fieldlist import MultiFieldList diff --git a/src/anemoi/datasets/create/functions/sources/xarray_zarr.py b/src/anemoi/datasets/create/functions/sources/xarray_zarr.py index 49a9add36..39a8133f4 100644 --- a/src/anemoi/datasets/create/functions/sources/xarray_zarr.py +++ b/src/anemoi/datasets/create/functions/sources/xarray_zarr.py @@ -1,11 +1,11 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# from .xarray import load_many diff --git a/src/anemoi/datasets/create/functions/sources/zenodo.py b/src/anemoi/datasets/create/functions/sources/zenodo.py index edb83b0f2..bcc80e460 100644 --- a/src/anemoi/datasets/create/functions/sources/zenodo.py +++ b/src/anemoi/datasets/create/functions/sources/zenodo.py @@ -1,11 +1,11 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# from earthkit.data.core.fieldlist import MultiFieldList diff --git a/src/anemoi/datasets/create/input/action.py b/src/anemoi/datasets/create/input/action.py index e486d561f..ae4285231 100644 --- a/src/anemoi/datasets/create/input/action.py +++ b/src/anemoi/datasets/create/input/action.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import logging from copy import deepcopy diff --git a/src/anemoi/datasets/create/input/concat.py b/src/anemoi/datasets/create/input/concat.py index 600dcb5b3..eca8c8316 100644 --- a/src/anemoi/datasets/create/input/concat.py +++ b/src/anemoi/datasets/create/input/concat.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import logging from copy import deepcopy from functools import cached_property diff --git a/src/anemoi/datasets/create/input/context.py b/src/anemoi/datasets/create/input/context.py index 812170068..5bd5cf516 100644 --- a/src/anemoi/datasets/create/input/context.py +++ b/src/anemoi/datasets/create/input/context.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import logging import textwrap diff --git a/src/anemoi/datasets/create/input/data_sources.py b/src/anemoi/datasets/create/input/data_sources.py index e977eea2d..0c1832d2e 100644 --- a/src/anemoi/datasets/create/input/data_sources.py +++ b/src/anemoi/datasets/create/input/data_sources.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import logging from functools import cached_property diff --git a/src/anemoi/datasets/create/input/empty.py b/src/anemoi/datasets/create/input/empty.py index 4d3e40586..9067ba2ef 100644 --- a/src/anemoi/datasets/create/input/empty.py +++ b/src/anemoi/datasets/create/input/empty.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import logging from functools import cached_property diff --git a/src/anemoi/datasets/create/input/filter.py b/src/anemoi/datasets/create/input/filter.py index ec9717379..41b240e3f 100644 --- a/src/anemoi/datasets/create/input/filter.py +++ b/src/anemoi/datasets/create/input/filter.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import logging from functools import cached_property diff --git a/src/anemoi/datasets/create/input/function.py b/src/anemoi/datasets/create/input/function.py index bc7ec28f9..dd6221d12 100644 --- a/src/anemoi/datasets/create/input/function.py +++ b/src/anemoi/datasets/create/input/function.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import logging from functools import cached_property diff --git a/src/anemoi/datasets/create/input/join.py b/src/anemoi/datasets/create/input/join.py index 9a1c1b7d1..13413d329 100644 --- a/src/anemoi/datasets/create/input/join.py +++ b/src/anemoi/datasets/create/input/join.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import logging from functools import cached_property diff --git a/src/anemoi/datasets/create/input/misc.py b/src/anemoi/datasets/create/input/misc.py index 4f5bbc200..9f7552dea 100644 --- a/src/anemoi/datasets/create/input/misc.py +++ b/src/anemoi/datasets/create/input/misc.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import logging from functools import wraps diff --git a/src/anemoi/datasets/create/input/pipe.py b/src/anemoi/datasets/create/input/pipe.py index 7cf34cd62..a35f7c079 100644 --- a/src/anemoi/datasets/create/input/pipe.py +++ b/src/anemoi/datasets/create/input/pipe.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import logging from .action import Action diff --git a/src/anemoi/datasets/create/input/repeated_dates.py b/src/anemoi/datasets/create/input/repeated_dates.py index e0e9e9f8d..ee094ff71 100644 --- a/src/anemoi/datasets/create/input/repeated_dates.py +++ b/src/anemoi/datasets/create/input/repeated_dates.py @@ -1,11 +1,12 @@ -# (C) Copyright 2023 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import logging from collections import defaultdict diff --git a/src/anemoi/datasets/create/input/result.py b/src/anemoi/datasets/create/input/result.py index f708ef9c5..8f936bb1c 100644 --- a/src/anemoi/datasets/create/input/result.py +++ b/src/anemoi/datasets/create/input/result.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import itertools import logging import math diff --git a/src/anemoi/datasets/create/input/step.py b/src/anemoi/datasets/create/input/step.py index daca578b7..1215cb891 100644 --- a/src/anemoi/datasets/create/input/step.py +++ b/src/anemoi/datasets/create/input/step.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import logging from copy import deepcopy diff --git a/src/anemoi/datasets/create/input/template.py b/src/anemoi/datasets/create/input/template.py index d7a50d1db..b37062270 100644 --- a/src/anemoi/datasets/create/input/template.py +++ b/src/anemoi/datasets/create/input/template.py @@ -1,11 +1,12 @@ -# (C) Copyright 2023 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import logging import re diff --git a/src/anemoi/datasets/create/input/trace.py b/src/anemoi/datasets/create/input/trace.py index d3dc6178f..6f262c1d8 100644 --- a/src/anemoi/datasets/create/input/trace.py +++ b/src/anemoi/datasets/create/input/trace.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import logging import textwrap diff --git a/src/anemoi/datasets/create/patch.py b/src/anemoi/datasets/create/patch.py index 20014c0da..0e404ef51 100755 --- a/src/anemoi/datasets/create/patch.py +++ b/src/anemoi/datasets/create/patch.py @@ -1,4 +1,12 @@ -#!/usr/bin/env python3 +# (C) Copyright 2024 Anemoi contributors. +# +# This software is licensed under the terms of the Apache Licence Version 2.0 +# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# +# In applying this licence, ECMWF does not waive the privileges and immunities +# granted to it by virtue of its status as an intergovernmental organisation +# nor does it submit to any jurisdiction. + import json import logging import os diff --git a/src/anemoi/datasets/create/persistent.py b/src/anemoi/datasets/create/persistent.py index 61d715f3c..2fb970e41 100644 --- a/src/anemoi/datasets/create/persistent.py +++ b/src/anemoi/datasets/create/persistent.py @@ -1,11 +1,12 @@ -# (C) Copyright 2023 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import glob import hashlib diff --git a/src/anemoi/datasets/create/size.py b/src/anemoi/datasets/create/size.py index 2191a08f0..0c16ea542 100644 --- a/src/anemoi/datasets/create/size.py +++ b/src/anemoi/datasets/create/size.py @@ -1,11 +1,12 @@ -# (C) Copyright 2023 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import logging import os diff --git a/src/anemoi/datasets/create/statistics/summary.py b/src/anemoi/datasets/create/statistics/summary.py index 0ae9fc24a..7f9c2a952 100644 --- a/src/anemoi/datasets/create/statistics/summary.py +++ b/src/anemoi/datasets/create/statistics/summary.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import json from collections import defaultdict diff --git a/src/anemoi/datasets/create/utils.py b/src/anemoi/datasets/create/utils.py index a98df19cc..67671f6fb 100644 --- a/src/anemoi/datasets/create/utils.py +++ b/src/anemoi/datasets/create/utils.py @@ -1,11 +1,12 @@ -# (C) Copyright 2023 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import datetime import os diff --git a/src/anemoi/datasets/create/writer.py b/src/anemoi/datasets/create/writer.py index e2a21c457..138de978b 100644 --- a/src/anemoi/datasets/create/writer.py +++ b/src/anemoi/datasets/create/writer.py @@ -1,11 +1,12 @@ -# (C) Copyright 2023 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import logging diff --git a/src/anemoi/datasets/create/zarr.py b/src/anemoi/datasets/create/zarr.py index 5759b9725..3375ce6fa 100644 --- a/src/anemoi/datasets/create/zarr.py +++ b/src/anemoi/datasets/create/zarr.py @@ -1,11 +1,12 @@ -# (C) Copyright 2023 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import datetime import logging import shutil diff --git a/src/anemoi/datasets/data/concat.py b/src/anemoi/datasets/data/concat.py index 55b2bc111..c935b6c55 100644 --- a/src/anemoi/datasets/data/concat.py +++ b/src/anemoi/datasets/data/concat.py @@ -1,10 +1,13 @@ -# (C) Copyright 2024 European Centre for Medium-Range Weather Forecasts. +# (C) Copyright 2024 Anemoi contributors. +# # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. + import logging from functools import cached_property diff --git a/src/anemoi/datasets/data/dataset.py b/src/anemoi/datasets/data/dataset.py index 358519911..cb7682575 100644 --- a/src/anemoi/datasets/data/dataset.py +++ b/src/anemoi/datasets/data/dataset.py @@ -1,10 +1,13 @@ -# (C) Copyright 2024 European Centre for Medium-Range Weather Forecasts. +# (C) Copyright 2024 Anemoi contributors. +# # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. + import datetime import json import logging diff --git a/src/anemoi/datasets/data/debug.py b/src/anemoi/datasets/data/debug.py index 42c84e150..46194b8a5 100644 --- a/src/anemoi/datasets/data/debug.py +++ b/src/anemoi/datasets/data/debug.py @@ -1,10 +1,13 @@ -# (C) Copyright 2024 European Centre for Medium-Range Weather Forecasts. +# (C) Copyright 2024 Anemoi contributors. +# # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. + import logging import os import textwrap diff --git a/src/anemoi/datasets/data/ensemble.py b/src/anemoi/datasets/data/ensemble.py index 002a144c9..45cb07ca7 100644 --- a/src/anemoi/datasets/data/ensemble.py +++ b/src/anemoi/datasets/data/ensemble.py @@ -1,10 +1,13 @@ -# (C) Copyright 2024 European Centre for Medium-Range Weather Forecasts. +# (C) Copyright 2024 Anemoi contributors. +# # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. + import logging from .debug import Node diff --git a/src/anemoi/datasets/data/fill_missing.py b/src/anemoi/datasets/data/fill_missing.py index ca16fd65e..e80d17e5b 100644 --- a/src/anemoi/datasets/data/fill_missing.py +++ b/src/anemoi/datasets/data/fill_missing.py @@ -1,10 +1,13 @@ -# (C) Copyright 2024 European Centre for Medium-Range Weather Forecasts. +# (C) Copyright 2024 Anemoi contributors. +# # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. + import logging import numpy as np diff --git a/src/anemoi/datasets/data/forwards.py b/src/anemoi/datasets/data/forwards.py index 5ccfd7f08..9f0cd003f 100644 --- a/src/anemoi/datasets/data/forwards.py +++ b/src/anemoi/datasets/data/forwards.py @@ -1,10 +1,13 @@ -# (C) Copyright 2024 European Centre for Medium-Range Weather Forecasts. +# (C) Copyright 2024 Anemoi contributors. +# # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. + import logging from functools import cached_property diff --git a/src/anemoi/datasets/data/grids.py b/src/anemoi/datasets/data/grids.py index c329fdcfe..23f32b829 100644 --- a/src/anemoi/datasets/data/grids.py +++ b/src/anemoi/datasets/data/grids.py @@ -1,10 +1,13 @@ -# (C) Copyright 2024 European Centre for Medium-Range Weather Forecasts. +# (C) Copyright 2024 Anemoi contributors. +# # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. + import logging from functools import cached_property diff --git a/src/anemoi/datasets/data/indexing.py b/src/anemoi/datasets/data/indexing.py index f00c06629..41b4fb428 100644 --- a/src/anemoi/datasets/data/indexing.py +++ b/src/anemoi/datasets/data/indexing.py @@ -1,10 +1,13 @@ -# (C) Copyright 2024 European Centre for Medium-Range Weather Forecasts. +# (C) Copyright 2024 Anemoi contributors. +# # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. + from functools import wraps import numpy as np diff --git a/src/anemoi/datasets/data/interpolate.py b/src/anemoi/datasets/data/interpolate.py index 4b1918ebd..4e95b6053 100644 --- a/src/anemoi/datasets/data/interpolate.py +++ b/src/anemoi/datasets/data/interpolate.py @@ -1,10 +1,13 @@ -# (C) Copyright 2024 European Centre for Medium-Range Weather Forecasts. +# (C) Copyright 2024 Anemoi contributors. +# # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. + import logging from functools import cached_property diff --git a/src/anemoi/datasets/data/join.py b/src/anemoi/datasets/data/join.py index 854521663..8455136e7 100644 --- a/src/anemoi/datasets/data/join.py +++ b/src/anemoi/datasets/data/join.py @@ -1,10 +1,13 @@ -# (C) Copyright 2024 European Centre for Medium-Range Weather Forecasts. +# (C) Copyright 2024 Anemoi contributors. +# # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. + import logging from functools import cached_property diff --git a/src/anemoi/datasets/data/masked.py b/src/anemoi/datasets/data/masked.py index 9b799a9b4..c50616e20 100644 --- a/src/anemoi/datasets/data/masked.py +++ b/src/anemoi/datasets/data/masked.py @@ -1,10 +1,13 @@ -# (C) Copyright 2024 European Centre for Medium-Range Weather Forecasts. +# (C) Copyright 2024 Anemoi contributors. +# # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. + import logging from functools import cached_property diff --git a/src/anemoi/datasets/data/merge.py b/src/anemoi/datasets/data/merge.py index fc9a22ead..c7825c917 100644 --- a/src/anemoi/datasets/data/merge.py +++ b/src/anemoi/datasets/data/merge.py @@ -1,10 +1,13 @@ -# (C) Copyright 2024 European Centre for Medium-Range Weather Forecasts. +# (C) Copyright 2024 Anemoi contributors. +# # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. + import logging from functools import cached_property diff --git a/src/anemoi/datasets/data/misc.py b/src/anemoi/datasets/data/misc.py index ef68469df..89ddb0302 100644 --- a/src/anemoi/datasets/data/misc.py +++ b/src/anemoi/datasets/data/misc.py @@ -1,10 +1,13 @@ -# (C) Copyright 2024 European Centre for Medium-Range Weather Forecasts. +# (C) Copyright 2024 Anemoi contributors. +# # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. + import calendar import datetime import logging diff --git a/src/anemoi/datasets/data/missing.py b/src/anemoi/datasets/data/missing.py index a8dd7b049..15f2baf6c 100644 --- a/src/anemoi/datasets/data/missing.py +++ b/src/anemoi/datasets/data/missing.py @@ -1,10 +1,13 @@ -# (C) Copyright 2024 European Centre for Medium-Range Weather Forecasts. +# (C) Copyright 2024 Anemoi contributors. +# # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. + import logging from functools import cached_property diff --git a/src/anemoi/datasets/data/rescale.py b/src/anemoi/datasets/data/rescale.py index 299e703bc..2275d3784 100644 --- a/src/anemoi/datasets/data/rescale.py +++ b/src/anemoi/datasets/data/rescale.py @@ -1,10 +1,13 @@ -# (C) Copyright 2024 European Centre for Medium-Range Weather Forecasts. +# (C) Copyright 2024 Anemoi contributors. +# # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. + import logging from functools import cached_property diff --git a/src/anemoi/datasets/data/select.py b/src/anemoi/datasets/data/select.py index c131bd84b..fea209d73 100644 --- a/src/anemoi/datasets/data/select.py +++ b/src/anemoi/datasets/data/select.py @@ -1,10 +1,13 @@ -# (C) Copyright 2024 European Centre for Medium-Range Weather Forecasts. +# (C) Copyright 2024 Anemoi contributors. +# # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. + import logging from functools import cached_property diff --git a/src/anemoi/datasets/data/statistics.py b/src/anemoi/datasets/data/statistics.py index 0474522a8..a9564ba34 100644 --- a/src/anemoi/datasets/data/statistics.py +++ b/src/anemoi/datasets/data/statistics.py @@ -1,10 +1,13 @@ -# (C) Copyright 2024 European Centre for Medium-Range Weather Forecasts. +# (C) Copyright 2024 Anemoi contributors. +# # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. + import logging from functools import cached_property diff --git a/src/anemoi/datasets/data/stores.py b/src/anemoi/datasets/data/stores.py index 874ac53d7..831637073 100644 --- a/src/anemoi/datasets/data/stores.py +++ b/src/anemoi/datasets/data/stores.py @@ -1,6 +1,8 @@ -# (C) Copyright 2024 European Centre for Medium-Range Weather Forecasts. +# (C) Copyright 2024 Anemoi contributors. +# # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. diff --git a/src/anemoi/datasets/data/subset.py b/src/anemoi/datasets/data/subset.py index 3c36a0c2d..e31f25d85 100644 --- a/src/anemoi/datasets/data/subset.py +++ b/src/anemoi/datasets/data/subset.py @@ -1,10 +1,13 @@ -# (C) Copyright 2024 European Centre for Medium-Range Weather Forecasts. +# (C) Copyright 2024 Anemoi contributors. +# # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. + import logging from functools import cached_property diff --git a/src/anemoi/datasets/data/unchecked.py b/src/anemoi/datasets/data/unchecked.py index a0d9b9ff0..03389c896 100644 --- a/src/anemoi/datasets/data/unchecked.py +++ b/src/anemoi/datasets/data/unchecked.py @@ -1,10 +1,13 @@ -# (C) Copyright 2024 European Centre for Medium-Range Weather Forecasts. +# (C) Copyright 2024 Anemoi contributors. +# # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. + import logging from functools import cached_property from functools import wraps diff --git a/src/anemoi/datasets/data/xy.py b/src/anemoi/datasets/data/xy.py index 1c326f150..beaa21077 100644 --- a/src/anemoi/datasets/data/xy.py +++ b/src/anemoi/datasets/data/xy.py @@ -1,10 +1,13 @@ -# (C) Copyright 2024 European Centre for Medium-Range Weather Forecasts. +# (C) Copyright 2024 Anemoi contributors. +# # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. + import logging from functools import cached_property diff --git a/src/anemoi/datasets/dates/groups.py b/src/anemoi/datasets/dates/groups.py index 934a823f8..4fb28bd25 100644 --- a/src/anemoi/datasets/dates/groups.py +++ b/src/anemoi/datasets/dates/groups.py @@ -1,6 +1,8 @@ -# (C) Copyright 2023 European Centre for Medium-Range Weather Forecasts. +# (C) Copyright 2024 Anemoi contributors. +# # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. diff --git a/src/anemoi/datasets/fields.py b/src/anemoi/datasets/fields.py index b341d4019..93c5c4d62 100644 --- a/src/anemoi/datasets/fields.py +++ b/src/anemoi/datasets/fields.py @@ -1,6 +1,8 @@ -# (C) Copyright 2024 European Centre for Medium-Range Weather Forecasts. +# (C) Copyright 2024 Anemoi contributors. +# # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. diff --git a/src/anemoi/datasets/grids.py b/src/anemoi/datasets/grids.py index 5e0ee3a6f..09857ad2c 100644 --- a/src/anemoi/datasets/grids.py +++ b/src/anemoi/datasets/grids.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + import logging diff --git a/src/anemoi/datasets/testing.py b/src/anemoi/datasets/testing.py index 6ed19ce8d..488f5a191 100644 --- a/src/anemoi/datasets/testing.py +++ b/src/anemoi/datasets/testing.py @@ -1,11 +1,12 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# + # A collection of functions to support pytest testing diff --git a/src/anemoi/datasets/utils/fields.py b/src/anemoi/datasets/utils/fields.py index 5145f4b90..5a6a53002 100644 --- a/src/anemoi/datasets/utils/fields.py +++ b/src/anemoi/datasets/utils/fields.py @@ -1,11 +1,11 @@ -# (C) Copyright 2024 ECMWF. +# (C) Copyright 2024 Anemoi contributors. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -# class WrappedField: diff --git a/tests/create/test_create.py b/tests/create/test_create.py index 257ab434f..9629a4211 100755 --- a/tests/create/test_create.py +++ b/tests/create/test_create.py @@ -1,10 +1,12 @@ -#!/usr/bin/env python3 -# (C) Copyright 2023 European Centre for Medium-Range Weather Forecasts. +# (C) Copyright 2024 Anemoi contributors. +# # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. + import glob import hashlib import json diff --git a/tests/test_chunks.py b/tests/test_chunks.py index d0fc3aa19..495c7c00d 100644 --- a/tests/test_chunks.py +++ b/tests/test_chunks.py @@ -1,6 +1,8 @@ -# (C) Copyright 2024 European Centre for Medium-Range Weather Forecasts. +# (C) Copyright 2024 Anemoi contributors. +# # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. diff --git a/tests/test_data.py b/tests/test_data.py index 2925aa8c3..92f4603f3 100644 --- a/tests/test_data.py +++ b/tests/test_data.py @@ -1,10 +1,13 @@ -# (C) Copyright 2023 European Centre for Medium-Range Weather Forecasts. +# (C) Copyright 2024 Anemoi contributors. +# # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. + import datetime from functools import cache from functools import wraps diff --git a/tests/test_dates.py b/tests/test_dates.py index c16185b23..d333b7c50 100644 --- a/tests/test_dates.py +++ b/tests/test_dates.py @@ -1,10 +1,13 @@ -# (C) Copyright 2023 European Centre for Medium-Range Weather Forecasts. +# (C) Copyright 2024 Anemoi contributors. +# # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. + import datetime import numpy as np diff --git a/tests/test_indexing.py b/tests/test_indexing.py index 71f401e4b..f77a303cc 100644 --- a/tests/test_indexing.py +++ b/tests/test_indexing.py @@ -1,6 +1,8 @@ -# (C) Copyright 2023 European Centre for Medium-Range Weather Forecasts. +# (C) Copyright 2024 Anemoi contributors. +# # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. diff --git a/tests/xarray/test_kerchunk.py b/tests/xarray/test_kerchunk.py index c1bf56670..b880aeb4a 100644 --- a/tests/xarray/test_kerchunk.py +++ b/tests/xarray/test_kerchunk.py @@ -1,10 +1,13 @@ -# (C) Copyright 2024 European Centre for Medium-Range Weather Forecasts. +# (C) Copyright 2024 Anemoi contributors. +# # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. + import xarray as xr from anemoi.datasets.create.functions.sources.xarray import XarrayFieldList diff --git a/tests/xarray/test_netcdf.py b/tests/xarray/test_netcdf.py index 0a74e4da1..7eb5adada 100644 --- a/tests/xarray/test_netcdf.py +++ b/tests/xarray/test_netcdf.py @@ -1,9 +1,12 @@ -# (C) Copyright 2024 European Centre for Medium-Range Weather Forecasts. +# (C) Copyright 2024 Anemoi contributors. +# # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. + import os import xarray as xr diff --git a/tests/xarray/test_opendap.py b/tests/xarray/test_opendap.py index 5844c72e8..b3754a6d0 100644 --- a/tests/xarray/test_opendap.py +++ b/tests/xarray/test_opendap.py @@ -1,9 +1,12 @@ -# (C) Copyright 2024 European Centre for Medium-Range Weather Forecasts. +# (C) Copyright 2024 Anemoi contributors. +# # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. + import xarray as xr from anemoi.datasets.create.functions.sources.xarray import XarrayFieldList diff --git a/tests/xarray/test_samples.py b/tests/xarray/test_samples.py index 437d8e51a..cd7176b59 100644 --- a/tests/xarray/test_samples.py +++ b/tests/xarray/test_samples.py @@ -1,10 +1,13 @@ -# (C) Copyright 2024 European Centre for Medium-Range Weather Forecasts. +# (C) Copyright 2024 Anemoi contributors. +# # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. + import pytest import requests import xarray as xr diff --git a/tests/xarray/test_zarr.py b/tests/xarray/test_zarr.py index c34a188f7..484b772ba 100644 --- a/tests/xarray/test_zarr.py +++ b/tests/xarray/test_zarr.py @@ -1,10 +1,13 @@ -# (C) Copyright 2024 European Centre for Medium-Range Weather Forecasts. +# (C) Copyright 2024 Anemoi contributors. +# # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. + import xarray as xr from anemoi.datasets.create.functions.sources.xarray import XarrayFieldList diff --git a/tools/make-sample-dataset.py b/tools/make-sample-dataset.py index 85cab7eec..990d43642 100755 --- a/tools/make-sample-dataset.py +++ b/tools/make-sample-dataset.py @@ -1,4 +1,11 @@ -#!/usr/bin/env python3 +# (C) Copyright 2024 Anemoi contributors. +# +# This software is licensed under the terms of the Apache Licence Version 2.0 +# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# +# In applying this licence, ECMWF does not waive the privileges and immunities +# granted to it by virtue of its status as an intergovernmental organisation +# nor does it submit to any jurisdiction. import argparse diff --git a/tools/upload-sample-dataset.py b/tools/upload-sample-dataset.py index 5d6abadce..7678480bf 100755 --- a/tools/upload-sample-dataset.py +++ b/tools/upload-sample-dataset.py @@ -1,4 +1,12 @@ -#!/usr/bin/env python3 +# (C) Copyright 2024 Anemoi contributors. +# +# This software is licensed under the terms of the Apache Licence Version 2.0 +# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# +# In applying this licence, ECMWF does not waive the privileges and immunities +# granted to it by virtue of its status as an intergovernmental organisation +# nor does it submit to any jurisdiction. + # (C) Copyright 2024 European Centre for Medium-Range Weather Forecasts. # This software is licensed under the terms of the Apache Licence Version 2.0