Skip to content

Commit

Permalink
chore: add the license header to the source files
Browse files Browse the repository at this point in the history
  • Loading branch information
vschaffn committed Oct 25, 2024
1 parent 1aa039d commit 4ec09cd
Show file tree
Hide file tree
Showing 19 changed files with 323 additions and 0 deletions.
17 changes: 17 additions & 0 deletions xdem/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# Copyright (c) 2024 xDEM developers
#
# This file is part of xdem project:
# https://github.com/glaciohack/xdem
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from xdem import ( # noqa
coreg,
dem,
Expand Down
17 changes: 17 additions & 0 deletions xdem/_typing.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# Copyright (c) 2024 xDEM developers
#
# This file is part of xdem project:
# https://github.com/glaciohack/xdem
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import annotations

import sys
Expand Down
17 changes: 17 additions & 0 deletions xdem/coreg/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# Copyright (c) 2024 xDEM developers
#
# This file is part of xdem project:
# https://github.com/glaciohack/xdem
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""
DEM coregistration classes and functions, including affine methods, bias corrections (i.e. non-affine) and filters.
"""
Expand Down
17 changes: 17 additions & 0 deletions xdem/coreg/affine.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# Copyright (c) 2024 xDEM developers
#
# This file is part of xdem project:
# https://github.com/glaciohack/xdem
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Affine coregistration classes."""

from __future__ import annotations
Expand Down
17 changes: 17 additions & 0 deletions xdem/coreg/base.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# Copyright (c) 2024 xDEM developers
#
# This file is part of xdem project:
# https://github.com/glaciohack/xdem
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Base coregistration classes to define generic methods and pre/post-processing of input data."""

from __future__ import annotations
Expand Down
17 changes: 17 additions & 0 deletions xdem/coreg/biascorr.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# Copyright (c) 2024 xDEM developers
#
# This file is part of xdem project:
# https://github.com/glaciohack/xdem
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Bias corrections (i.e., non-affine coregistration) classes."""
from __future__ import annotations

Expand Down
17 changes: 17 additions & 0 deletions xdem/coreg/filters.py
Original file line number Diff line number Diff line change
@@ -1 +1,18 @@
# Copyright (c) 2024 xDEM developers
#
# This file is part of xdem project:
# https://github.com/glaciohack/xdem
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Coregistration filters (coming soon)."""
17 changes: 17 additions & 0 deletions xdem/coreg/workflows.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# Copyright (c) 2024 xDEM developers
#
# This file is part of xdem project:
# https://github.com/glaciohack/xdem
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Coregistration pipelines pre-defined with convenient user inputs and parameters."""

from __future__ import annotations
Expand Down
17 changes: 17 additions & 0 deletions xdem/ddem.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# Copyright (c) 2024 xDEM developers
#
# This file is part of xdem project:
# https://github.com/glaciohack/xdem
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Difference of DEMs classes and functions."""
from __future__ import annotations

Expand Down
17 changes: 17 additions & 0 deletions xdem/dem.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# Copyright (c) 2024 xDEM developers
#
# This file is part of xdem project:
# https://github.com/glaciohack/xdem
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""DEM class and functions."""
from __future__ import annotations

Expand Down
17 changes: 17 additions & 0 deletions xdem/demcollection.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# Copyright (c) 2024 xDEM developers
#
# This file is part of xdem project:
# https://github.com/glaciohack/xdem
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""DEM collection class and functions."""
from __future__ import annotations

Expand Down
17 changes: 17 additions & 0 deletions xdem/examples.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# Copyright (c) 2024 xDEM developers
#
# This file is part of xdem project:
# https://github.com/glaciohack/xdem
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Utility functions to download and find example data."""
import os
import tarfile
Expand Down
17 changes: 17 additions & 0 deletions xdem/filters.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# Copyright (c) 2024 xDEM developers
#
# This file is part of xdem project:
# https://github.com/glaciohack/xdem
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Filters to remove outliers and reduce noise in DEMs."""
from __future__ import annotations

Expand Down
17 changes: 17 additions & 0 deletions xdem/fit.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# Copyright (c) 2024 xDEM developers
#
# This file is part of xdem project:
# https://github.com/glaciohack/xdem
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""
Functions to perform normal, weighted and robust fitting.
"""
Expand Down
17 changes: 17 additions & 0 deletions xdem/misc.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# Copyright (c) 2024 xDEM developers
#
# This file is part of xdem project:
# https://github.com/glaciohack/xdem
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Small functions for testing, examples, and other miscellaneous uses."""
from __future__ import annotations

Expand Down
17 changes: 17 additions & 0 deletions xdem/spatialstats.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# Copyright (c) 2024 xDEM developers
#
# This file is part of xdem project:
# https://github.com/glaciohack/xdem
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Spatial statistical tools to estimate uncertainties related to DEMs"""
from __future__ import annotations

Expand Down
17 changes: 17 additions & 0 deletions xdem/terrain.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# Copyright (c) 2024 xDEM developers
#
# This file is part of xdem project:
# https://github.com/glaciohack/xdem
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Terrain attribute calculations, such as slope, aspect, hillshade, curvature and ruggedness indexes."""
from __future__ import annotations

Expand Down
17 changes: 17 additions & 0 deletions xdem/vcrs.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# Copyright (c) 2024 xDEM developers
#
# This file is part of xdem project:
# https://github.com/glaciohack/xdem
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Routines for vertical CRS transformation (fully based on pyproj)."""
from __future__ import annotations

Expand Down
17 changes: 17 additions & 0 deletions xdem/volume.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# Copyright (c) 2024 xDEM developers
#
# This file is part of xdem project:
# https://github.com/glaciohack/xdem
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Volume change calculation tools (aimed for glaciers)."""
from __future__ import annotations

Expand Down

0 comments on commit 4ec09cd

Please sign in to comment.