diff --git a/geoarray/__init__.py b/geoarray/__init__.py index 5845a83c35d8b54da899ce33d7332535e36d7284..66483bef71200bcb0b6bc59aff420cf62fc2f53a 100644 --- a/geoarray/__init__.py +++ b/geoarray/__init__.py @@ -1,5 +1,26 @@ # -*- coding: utf-8 -*- +# geoarray, A fast Python interface for image geodata - either on disk or in memory. +# +# Copyright (C) 2019 Daniel Scheffler (GFZ Potsdam, daniel.scheffler@gfz-potsdam.de) +# +# This software was developed within the context of the GeoMultiSens project funded +# by the German Federal Ministry of Education and Research +# (project grant code: 01 IS 14 010 A-C). +# +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU Lesser General Public License as published by the Free +# Software Foundation, either version 3 of the License, or (at your option) any +# later version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more +# details. +# +# You should have received a copy of the GNU Lesser General Public License along +# with this program. If not, see . + import os if 'MPLBACKEND' not in os.environ: os.environ['MPLBACKEND'] = 'Agg' diff --git a/geoarray/baseclasses.py b/geoarray/baseclasses.py index 97c3baffa697d7b193712a4942322b33c7943c2b..08c1ea08ed7085d9e01f5b21310746ea5b05370e 100644 --- a/geoarray/baseclasses.py +++ b/geoarray/baseclasses.py @@ -1,5 +1,27 @@ # -*- coding: utf-8 -*- +# geoarray, A fast Python interface for image geodata - either on disk or in memory. +# +# Copyright (C) 2019 Daniel Scheffler (GFZ Potsdam, daniel.scheffler@gfz-potsdam.de) +# +# This software was developed within the context of the GeoMultiSens project funded +# by the German Federal Ministry of Education and Research +# (project grant code: 01 IS 14 010 A-C). +# +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU Lesser General Public License as published by the Free +# Software Foundation, either version 3 of the License, or (at your option) any +# later version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more +# details. +# +# You should have received a copy of the GNU Lesser General Public License along +# with this program. If not, see . + + import os import warnings from pkgutil import find_loader diff --git a/geoarray/masks.py b/geoarray/masks.py index 3a62c2c6ed30e536732a5dc4377a68e35a3fb735..b3af139d315c64d4a5de628b1834ad5a54c18560 100644 --- a/geoarray/masks.py +++ b/geoarray/masks.py @@ -1,5 +1,26 @@ # -*- coding: utf-8 -*- +# geoarray, A fast Python interface for image geodata - either on disk or in memory. +# +# Copyright (C) 2019 Daniel Scheffler (GFZ Potsdam, daniel.scheffler@gfz-potsdam.de) +# +# This software was developed within the context of the GeoMultiSens project funded +# by the German Federal Ministry of Education and Research +# (project grant code: 01 IS 14 010 A-C). +# +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU Lesser General Public License as published by the Free +# Software Foundation, either version 3 of the License, or (at your option) any +# later version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more +# details. +# +# You should have received a copy of the GNU Lesser General Public License along +# with this program. If not, see . + import numpy as np # internal imports diff --git a/geoarray/metadata.py b/geoarray/metadata.py index cb9fba6785931bbfbba904d2ffe5278b6703e602..58d6334850554719819c3f5d238ec42f69f8de1c 100644 --- a/geoarray/metadata.py +++ b/geoarray/metadata.py @@ -1,5 +1,26 @@ # -*- coding: utf-8 -*- +# geoarray, A fast Python interface for image geodata - either on disk or in memory. +# +# Copyright (C) 2019 Daniel Scheffler (GFZ Potsdam, daniel.scheffler@gfz-potsdam.de) +# +# This software was developed within the context of the GeoMultiSens project funded +# by the German Federal Ministry of Education and Research +# (project grant code: 01 IS 14 010 A-C). +# +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU Lesser General Public License as published by the Free +# Software Foundation, either version 3 of the License, or (at your option) any +# later version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more +# details. +# +# You should have received a copy of the GNU Lesser General Public License along +# with this program. If not, see . + import os from pprint import pformat from copy import deepcopy diff --git a/geoarray/subsetting.py b/geoarray/subsetting.py index c54cda5e808bb815a6bf8c4081d7a0faaded1813..50d4d53ccc27eedc11d9f562764faf0935305b3d 100644 --- a/geoarray/subsetting.py +++ b/geoarray/subsetting.py @@ -1,5 +1,26 @@ # -*- coding: utf-8 -*- +# geoarray, A fast Python interface for image geodata - either on disk or in memory. +# +# Copyright (C) 2019 Daniel Scheffler (GFZ Potsdam, daniel.scheffler@gfz-potsdam.de) +# +# This software was developed within the context of the GeoMultiSens project funded +# by the German Federal Ministry of Education and Research +# (project grant code: 01 IS 14 010 A-C). +# +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU Lesser General Public License as published by the Free +# Software Foundation, either version 3 of the License, or (at your option) any +# later version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more +# details. +# +# You should have received a copy of the GNU Lesser General Public License along +# with this program. If not, see . + import warnings import numpy as np from shapely.geometry import box, Polygon diff --git a/geoarray/version.py b/geoarray/version.py index 82805dd9cca336d640d1c4af11e1242204bc9992..f6e00309ccbda7d8deb8209cd717b138a44dee9c 100644 --- a/geoarray/version.py +++ b/geoarray/version.py @@ -1,2 +1,24 @@ -__version__ = '0.8.20' -__versionalias__ = '20190709.01' +# geoarray, A fast Python interface for image geodata - either on disk or in memory. +# +# Copyright (C) 2019 Daniel Scheffler (GFZ Potsdam, daniel.scheffler@gfz-potsdam.de) +# +# This software was developed within the context of the GeoMultiSens project funded +# by the German Federal Ministry of Education and Research +# (project grant code: 01 IS 14 010 A-C). +# +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU Lesser General Public License as published by the Free +# Software Foundation, either version 3 of the License, or (at your option) any +# later version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more +# details. +# +# You should have received a copy of the GNU Lesser General Public License along +# with this program. If not, see . + + +__version__ = '0.8.21' +__versionalias__ = '20190722.01' diff --git a/setup.py b/setup.py index 3682a472ccae9a4ee6a228c511500aa18ded5af9..6f26f4f7b01020cbe0a943980c4b1156debcc04f 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,27 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +# geoarray, A fast Python interface for image geodata - either on disk or in memory. +# +# Copyright (C) 2019 Daniel Scheffler (GFZ Potsdam, daniel.scheffler@gfz-potsdam.de) +# +# This software was developed within the context of the GeoMultiSens project funded +# by the German Federal Ministry of Education and Research +# (project grant code: 01 IS 14 010 A-C). +# +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU Lesser General Public License as published by the Free +# Software Foundation, either version 3 of the License, or (at your option) any +# later version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more +# details. +# +# You should have received a copy of the GNU Lesser General Public License along +# with this program. If not, see . + from setuptools import setup, find_packages import warnings from pkgutil import find_loader diff --git a/tests/__init__.py b/tests/__init__.py index 40a96afc6ff09d58a702b76e3f7dd412fe975e26..9664f4c00ebc871eb70d9099c24d7b522460ec16 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1 +1,22 @@ # -*- coding: utf-8 -*- + +# geoarray, A fast Python interface for image geodata - either on disk or in memory. +# +# Copyright (C) 2019 Daniel Scheffler (GFZ Potsdam, daniel.scheffler@gfz-potsdam.de) +# +# This software was developed within the context of the GeoMultiSens project funded +# by the German Federal Ministry of Education and Research +# (project grant code: 01 IS 14 010 A-C). +# +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU Lesser General Public License as published by the Free +# Software Foundation, either version 3 of the License, or (at your option) any +# later version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more +# details. +# +# You should have received a copy of the GNU Lesser General Public License along +# with this program. If not, see . diff --git a/tests/test_geoarray.py b/tests/test_geoarray.py index 950c91e4d10514361205cc3a272c38c6563067ca..680003700111764ae59aa71d185852564ba7d845 100644 --- a/tests/test_geoarray.py +++ b/tests/test_geoarray.py @@ -1,8 +1,30 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- + +# geoarray, A fast Python interface for image geodata - either on disk or in memory. +# +# Copyright (C) 2019 Daniel Scheffler (GFZ Potsdam, daniel.scheffler@gfz-potsdam.de) +# +# This software was developed within the context of the GeoMultiSens project funded +# by the German Federal Ministry of Education and Research +# (project grant code: 01 IS 14 010 A-C). +# +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU Lesser General Public License as published by the Free +# Software Foundation, either version 3 of the License, or (at your option) any +# later version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more +# details. +# +# You should have received a copy of the GNU Lesser General Public License along +# with this program. If not, see . + """ test_geoarray ----------------------------------- +------------- Tests for the functions of the "GeoArray"-class in the "geoarray" module. For this purpose the TIFF-file "L8_2bands_extract10x11.tif" and the array of @@ -17,9 +39,7 @@ test case 1 (path) - test case 2 (path) - test case 1 (array) - test case 2 (arr Note that the tests in the test case "Test_GeoarrayAppliedOnPathArray" and "Test_GeoarrayFunctions" follow - with a few exceptions - the same order as in the "GeoArray"-class (but they are executed in alphanumeric order inside the test case). -Functions that depend on each other are tested together. - -Program started in Mai 2017. +Functions that depend on each other are tested together.. """ from __future__ import print_function from collections import OrderedDict diff --git a/tests/test_metadata.py b/tests/test_metadata.py index af7ee35cb7a13314d649d3736abbe9d1bfa01842..7c650095760a28c8924e99135a30de460dc76206 100644 --- a/tests/test_metadata.py +++ b/tests/test_metadata.py @@ -1,6 +1,27 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +# geoarray, A fast Python interface for image geodata - either on disk or in memory. +# +# Copyright (C) 2019 Daniel Scheffler (GFZ Potsdam, daniel.scheffler@gfz-potsdam.de) +# +# This software was developed within the context of the GeoMultiSens project funded +# by the German Federal Ministry of Education and Research +# (project grant code: 01 IS 14 010 A-C). +# +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU Lesser General Public License as published by the Free +# Software Foundation, either version 3 of the License, or (at your option) any +# later version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more +# details. +# +# You should have received a copy of the GNU Lesser General Public License along +# with this program. If not, see . + from unittest import TestCase import os import numpy as np