Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
py_tools_ds
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Daniel Scheffler
py_tools_ds
Commits
28db628b
Commit
28db628b
authored
Jul 22, 2019
by
Daniel Scheffler
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'enhancement/add_license_texts' into 'master'
Added license notes. Added funding note. Updated version info. See merge request
!11
parents
413683f1
22029a71
Pipeline
#4290
failed with stages
in 10 minutes and 45 seconds
Changes
63
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
63 changed files
with
1357 additions
and
2 deletions
+1357
-2
README.rst
README.rst
+3
-0
py_tools_ds/__init__.py
py_tools_ds/__init__.py
+22
-0
py_tools_ds/compatibility/__init__.py
py_tools_ds/compatibility/__init__.py
+22
-0
py_tools_ds/compatibility/gdal.py
py_tools_ds/compatibility/gdal.py
+21
-0
py_tools_ds/compatibility/gdalnumeric.py
py_tools_ds/compatibility/gdalnumeric.py
+22
-0
py_tools_ds/compatibility/python/__init__.py
py_tools_ds/compatibility/python/__init__.py
+21
-0
py_tools_ds/compatibility/python/exceptions.py
py_tools_ds/compatibility/python/exceptions.py
+22
-0
py_tools_ds/compatibility/python/os.py
py_tools_ds/compatibility/python/os.py
+22
-0
py_tools_ds/compression/__init__.py
py_tools_ds/compression/__init__.py
+22
-0
py_tools_ds/compression/decompress.py
py_tools_ds/compression/decompress.py
+21
-0
py_tools_ds/convenience/__init__.py
py_tools_ds/convenience/__init__.py
+21
-0
py_tools_ds/convenience/object_oriented.py
py_tools_ds/convenience/object_oriented.py
+22
-0
py_tools_ds/db_tools/__init__.py
py_tools_ds/db_tools/__init__.py
+22
-0
py_tools_ds/db_tools/sql.py
py_tools_ds/db_tools/sql.py
+22
-0
py_tools_ds/dtypes/__init__.py
py_tools_ds/dtypes/__init__.py
+22
-0
py_tools_ds/dtypes/conversion.py
py_tools_ds/dtypes/conversion.py
+22
-0
py_tools_ds/environment/__init__.py
py_tools_ds/environment/__init__.py
+22
-0
py_tools_ds/environment/gdal_env.py
py_tools_ds/environment/gdal_env.py
+21
-0
py_tools_ds/geo/__init__.py
py_tools_ds/geo/__init__.py
+22
-0
py_tools_ds/geo/coord_calc.py
py_tools_ds/geo/coord_calc.py
+21
-0
py_tools_ds/geo/coord_grid.py
py_tools_ds/geo/coord_grid.py
+21
-0
py_tools_ds/geo/coord_trafo.py
py_tools_ds/geo/coord_trafo.py
+21
-0
py_tools_ds/geo/map_info.py
py_tools_ds/geo/map_info.py
+22
-0
py_tools_ds/geo/projection.py
py_tools_ds/geo/projection.py
+21
-0
py_tools_ds/geo/raster/__init__.py
py_tools_ds/geo/raster/__init__.py
+22
-0
py_tools_ds/geo/raster/conversion.py
py_tools_ds/geo/raster/conversion.py
+22
-0
py_tools_ds/geo/raster/reproject.py
py_tools_ds/geo/raster/reproject.py
+22
-0
py_tools_ds/geo/vector/__init__.py
py_tools_ds/geo/vector/__init__.py
+21
-0
py_tools_ds/geo/vector/conversion.py
py_tools_ds/geo/vector/conversion.py
+21
-0
py_tools_ds/geo/vector/geometry.py
py_tools_ds/geo/vector/geometry.py
+21
-0
py_tools_ds/geo/vector/topology.py
py_tools_ds/geo/vector/topology.py
+21
-0
py_tools_ds/io/__init__.py
py_tools_ds/io/__init__.py
+22
-0
py_tools_ds/io/pathgen.py
py_tools_ds/io/pathgen.py
+21
-0
py_tools_ds/io/raster/__init__.py
py_tools_ds/io/raster/__init__.py
+22
-0
py_tools_ds/io/raster/gdal.py
py_tools_ds/io/raster/gdal.py
+22
-0
py_tools_ds/io/raster/reader.py
py_tools_ds/io/raster/reader.py
+21
-0
py_tools_ds/io/raster/writer.py
py_tools_ds/io/raster/writer.py
+22
-0
py_tools_ds/numeric/__init__.py
py_tools_ds/numeric/__init__.py
+22
-0
py_tools_ds/numeric/array.py
py_tools_ds/numeric/array.py
+22
-0
py_tools_ds/numeric/numbers.py
py_tools_ds/numeric/numbers.py
+21
-0
py_tools_ds/numeric/vector.py
py_tools_ds/numeric/vector.py
+21
-0
py_tools_ds/processing/__init__.py
py_tools_ds/processing/__init__.py
+22
-0
py_tools_ds/processing/progress_mon.py
py_tools_ds/processing/progress_mon.py
+21
-0
py_tools_ds/processing/shell.py
py_tools_ds/processing/shell.py
+21
-0
py_tools_ds/similarity/__init__.py
py_tools_ds/similarity/__init__.py
+22
-0
py_tools_ds/similarity/raster.py
py_tools_ds/similarity/raster.py
+21
-0
py_tools_ds/version.py
py_tools_ds/version.py
+23
-2
setup.py
setup.py
+21
-0
tests/__init__.py
tests/__init__.py
+24
-0
tests/test_geo/__init__.py
tests/test_geo/__init__.py
+24
-0
tests/test_geo/test_coord_grid.py
tests/test_geo/test_coord_grid.py
+22
-0
tests/test_geo/test_map_info.py
tests/test_geo/test_map_info.py
+22
-0
tests/test_geo/test_projection.py
tests/test_geo/test_projection.py
+22
-0
tests/test_geo/test_raster/test_reproject.py
tests/test_geo/test_raster/test_reproject.py
+21
-0
tests/test_geo/test_vector/__init__.py
tests/test_geo/test_vector/__init__.py
+24
-0
tests/test_geo/test_vector/test_geometry.py
tests/test_geo/test_vector/test_geometry.py
+21
-0
tests/test_io/__init__.py
tests/test_io/__init__.py
+25
-0
tests/test_io/test_raster/__init__.py
tests/test_io/test_raster/__init__.py
+25
-0
tests/test_io/test_raster/test_gdal.py
tests/test_io/test_raster/test_gdal.py
+22
-0
tests/test_numeric/__init__.py
tests/test_numeric/__init__.py
+24
-0
tests/test_numeric/test_array.py
tests/test_numeric/test_array.py
+21
-0
tests/test_numeric/test_vector.py
tests/test_numeric/test_vector.py
+21
-0
travis_pypi_setup.py
travis_pypi_setup.py
+22
-0
No files found.
README.rst
View file @
28db628b
...
...
@@ -82,6 +82,9 @@ Using conda_, the recommended approach is:
Credits
-------
The py_tools_ds package 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 package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
...
...
py_tools_ds/__init__.py
View file @
28db628b
# -*- coding: utf-8 -*-
# py_tools_ds
#
# 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 <http://www.gnu.org/licenses/>.
from
__future__
import
(
division
,
print_function
,
absolute_import
,
unicode_literals
)
from
.version
import
__version__
,
__versionalias__
# noqa (E402 + F401)
...
...
py_tools_ds/compatibility/__init__.py
View file @
28db628b
# -*- coding: utf-8 -*-
# py_tools_ds
#
# 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 <http://www.gnu.org/licenses/>.
__author__
=
'Daniel Scheffler'
py_tools_ds/compatibility/gdal.py
View file @
28db628b
# -*- coding: utf-8 -*-
# py_tools_ds
#
# 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 <http://www.gnu.org/licenses/>.
from
__future__
import
absolute_import
import
os
...
...
py_tools_ds/compatibility/gdalnumeric.py
View file @
28db628b
# -*- coding: utf-8 -*-
# py_tools_ds
#
# 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 <http://www.gnu.org/licenses/>.
__author__
=
"Daniel Scheffler"
try
:
...
...
py_tools_ds/compatibility/python/__init__.py
View file @
28db628b
# -*- coding: utf-8 -*-
# py_tools_ds
#
# 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 <http://www.gnu.org/licenses/>.
__author__
=
'Daniel Scheffler'
py_tools_ds/compatibility/python/exceptions.py
View file @
28db628b
# -*- coding: utf-8 -*-
# py_tools_ds
#
# 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 <http://www.gnu.org/licenses/>.
__author__
=
"Daniel Scheffler"
...
...
py_tools_ds/compatibility/python/os.py
View file @
28db628b
# -*- coding: utf-8 -*-
# py_tools_ds
#
# 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 <http://www.gnu.org/licenses/>.
from
__future__
import
absolute_import
import
os
import
errno
...
...
py_tools_ds/compression/__init__.py
View file @
28db628b
# -*- coding: utf-8 -
# py_tools_ds
#
# 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 <http://www.gnu.org/licenses/>.
py_tools_ds/compression/decompress.py
View file @
28db628b
# -*- coding: utf-8 -*-
# py_tools_ds
#
# 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 <http://www.gnu.org/licenses/>.
import
os
import
zipfile
import
tarfile
...
...
py_tools_ds/convenience/__init__.py
View file @
28db628b
# -*- coding: utf-8 -*-
# py_tools_ds
#
# 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 <http://www.gnu.org/licenses/>.
__author__
=
"Daniel Scheffler"
py_tools_ds/convenience/object_oriented.py
View file @
28db628b
# -*- coding: utf-8 -*-
# py_tools_ds
#
# 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 <http://www.gnu.org/licenses/>.
__author__
=
'Daniel Scheffler'
...
...
py_tools_ds/db_tools/__init__.py
View file @
28db628b
# -*- coding: utf-8 -
# py_tools_ds
#
# 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 <http://www.gnu.org/licenses/>.
py_tools_ds/db_tools/sql.py
View file @
28db628b
# -*- coding: utf-8 -*-
# py_tools_ds
#
# 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 <http://www.gnu.org/licenses/>.
__author__
=
'Daniel Scheffler'
import
sqlite3
...
...
py_tools_ds/dtypes/__init__.py
View file @
28db628b
# -*- coding: utf-8 -*-
# py_tools_ds
#
# 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 <http://www.gnu.org/licenses/>.
__author__
=
"Daniel Scheffler"
py_tools_ds/dtypes/conversion.py
View file @
28db628b
# -*- coding: utf-8 -*-
# py_tools_ds
#
# 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 <http://www.gnu.org/licenses/>.
__author__
=
"Daniel Scheffler"
import
datetime
...
...
py_tools_ds/environment/__init__.py
View file @
28db628b
# -*- coding: utf-8 -
# py_tools_ds
#
# 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 <http://www.gnu.org/licenses/>.
py_tools_ds/environment/gdal_env.py
View file @
28db628b
# -*- coding: utf-8 -*-
# py_tools_ds
#
# 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 <http://www.gnu.org/licenses/>.
import
os
import
sys
import
re
...
...
py_tools_ds/geo/__init__.py
View file @
28db628b
# -*- coding: utf-8 -*-
# py_tools_ds
#
# 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 <http://www.gnu.org/licenses/>.
__author__
=
'Daniel Scheffler'
py_tools_ds/geo/coord_calc.py
View file @
28db628b
# -*- coding: utf-8 -*-
# py_tools_ds
#
# 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 <http://www.gnu.org/licenses/>.
import
warnings
from
typing
import
Iterable
,
Tuple
# noqa: F401
import
numpy
as
np
...
...
py_tools_ds/geo/coord_grid.py
View file @
28db628b
# -*- coding: utf-8 -*-
# py_tools_ds
#
# 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 <http://www.gnu.org/licenses/>.
import
numpy
as
np
from
shapely.geometry
import
box
from
shapely.geometry
import
Polygon
# noqa F401 # flake8 issue
...
...
py_tools_ds/geo/coord_trafo.py
View file @
28db628b
# -*- coding: utf-8 -*-
# py_tools_ds
#
# 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 <http://www.gnu.org/licenses/>.
from
functools
import
partial
import
warnings
...
...
py_tools_ds/geo/map_info.py
View file @
28db628b
# -*- coding: utf-8 -*-
# py_tools_ds
#
# 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 <http://www.gnu.org/licenses/>.
import
re
import
math
import
warnings
...
...
py_tools_ds/geo/projection.py
View file @
28db628b
# -*- coding: utf-8 -*-
# py_tools_ds
#
# 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