geoarray 0.16.1__tar.gz → 0.17.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {geoarray-0.16.1 → geoarray-0.17.1}/.gitlab-ci.yml +13 -10
- {geoarray-0.16.1 → geoarray-0.17.1}/CONTRIBUTING.rst +1 -1
- {geoarray-0.16.1 → geoarray-0.17.1}/HISTORY.rst +19 -1
- {geoarray-0.16.1 → geoarray-0.17.1}/Makefile +4 -4
- {geoarray-0.16.1/geoarray.egg-info → geoarray-0.17.1}/PKG-INFO +59 -10
- {geoarray-0.16.1 → geoarray-0.17.1}/README.rst +1 -1
- {geoarray-0.16.1 → geoarray-0.17.1}/geoarray/__init__.py +6 -0
- {geoarray-0.16.1 → geoarray-0.17.1}/geoarray/baseclasses.py +285 -170
- {geoarray-0.16.1 → geoarray-0.17.1}/geoarray/masks.py +35 -13
- {geoarray-0.16.1 → geoarray-0.17.1}/geoarray/metadata.py +28 -20
- {geoarray-0.16.1 → geoarray-0.17.1}/geoarray/subsetting.py +27 -9
- {geoarray-0.16.1 → geoarray-0.17.1}/geoarray/version.py +2 -2
- {geoarray-0.16.1 → geoarray-0.17.1/geoarray.egg-info}/PKG-INFO +59 -10
- {geoarray-0.16.1 → geoarray-0.17.1}/geoarray.egg-info/requires.txt +3 -6
- {geoarray-0.16.1 → geoarray-0.17.1}/setup.py +4 -4
- {geoarray-0.16.1 → geoarray-0.17.1}/.coveragerc +0 -0
- {geoarray-0.16.1 → geoarray-0.17.1}/.editorconfig +0 -0
- {geoarray-0.16.1 → geoarray-0.17.1}/.gitattributes +0 -0
- {geoarray-0.16.1 → geoarray-0.17.1}/.github/ISSUE_TEMPLATE.md +0 -0
- {geoarray-0.16.1 → geoarray-0.17.1}/.gitignore +0 -0
- {geoarray-0.16.1 → geoarray-0.17.1}/AUTHORS.rst +0 -0
- {geoarray-0.16.1 → geoarray-0.17.1}/LICENSE +0 -0
- {geoarray-0.16.1 → geoarray-0.17.1}/MANIFEST.in +0 -0
- {geoarray-0.16.1 → geoarray-0.17.1}/docs/Makefile +0 -0
- {geoarray-0.16.1 → geoarray-0.17.1}/docs/_build/html/_static/file.png +0 -0
- {geoarray-0.16.1 → geoarray-0.17.1}/docs/_build/html/_static/minus.png +0 -0
- {geoarray-0.16.1 → geoarray-0.17.1}/docs/_build/html/_static/plus.png +0 -0
- {geoarray-0.16.1 → geoarray-0.17.1}/docs/authors.rst +0 -0
- {geoarray-0.16.1 → geoarray-0.17.1}/docs/conf.py +0 -0
- {geoarray-0.16.1 → geoarray-0.17.1}/docs/contributing.rst +0 -0
- {geoarray-0.16.1 → geoarray-0.17.1}/docs/history.rst +0 -0
- {geoarray-0.16.1 → geoarray-0.17.1}/docs/index.rst +0 -0
- {geoarray-0.16.1 → geoarray-0.17.1}/docs/installation.rst +0 -0
- {geoarray-0.16.1 → geoarray-0.17.1}/docs/make.bat +0 -0
- {geoarray-0.16.1 → geoarray-0.17.1}/docs/readme.rst +0 -0
- {geoarray-0.16.1 → geoarray-0.17.1}/docs/usage.rst +0 -0
- {geoarray-0.16.1 → geoarray-0.17.1}/examples/notebooks/features_and_usage.ipynb +0 -0
- {geoarray-0.16.1 → geoarray-0.17.1}/geoarray.egg-info/SOURCES.txt +0 -0
- {geoarray-0.16.1 → geoarray-0.17.1}/geoarray.egg-info/dependency_links.txt +0 -0
- {geoarray-0.16.1 → geoarray-0.17.1}/geoarray.egg-info/not-zip-safe +0 -0
- {geoarray-0.16.1 → geoarray-0.17.1}/geoarray.egg-info/top_level.txt +0 -0
- {geoarray-0.16.1 → geoarray-0.17.1}/setup.cfg +0 -0
- {geoarray-0.16.1 → geoarray-0.17.1}/tox.ini +0 -0
|
@@ -12,10 +12,10 @@ test_geoarray:
|
|
|
12
12
|
stage: test
|
|
13
13
|
coverage: '/TOTAL\s+\d+\s+\d+\s+(\d+%)/'
|
|
14
14
|
script:
|
|
15
|
-
- source
|
|
15
|
+
- source activate ci_env
|
|
16
16
|
|
|
17
17
|
# update py_tools_ds
|
|
18
|
-
-
|
|
18
|
+
- mamba update py_tools_ds
|
|
19
19
|
|
|
20
20
|
# run tests
|
|
21
21
|
- make pytest
|
|
@@ -39,7 +39,7 @@ test_geoarray:
|
|
|
39
39
|
test_styles:
|
|
40
40
|
stage: test
|
|
41
41
|
script:
|
|
42
|
-
- source
|
|
42
|
+
- source activate ci_env
|
|
43
43
|
- make lint
|
|
44
44
|
artifacts:
|
|
45
45
|
paths:
|
|
@@ -52,7 +52,7 @@ test_styles:
|
|
|
52
52
|
test_urls:
|
|
53
53
|
stage: test
|
|
54
54
|
script:
|
|
55
|
-
- source
|
|
55
|
+
- source activate ci_env
|
|
56
56
|
- pip install -U urlchecker
|
|
57
57
|
- make urlcheck
|
|
58
58
|
when: always
|
|
@@ -61,12 +61,11 @@ test_urls:
|
|
|
61
61
|
test_geoarray_install:
|
|
62
62
|
stage: test
|
|
63
63
|
script:
|
|
64
|
-
-
|
|
65
|
-
- mamba update -n base -c conda-forge --all
|
|
64
|
+
- mamba update -n base mamba conda
|
|
66
65
|
|
|
67
66
|
# create geoarray environment from environment_geoarray.yml
|
|
68
67
|
- mamba env create --name geoarray_test -f tests/CI_docker/context/environment_geoarray.yml
|
|
69
|
-
-
|
|
68
|
+
- source activate geoarray_test
|
|
70
69
|
|
|
71
70
|
# install geoarray
|
|
72
71
|
- pip install -e .
|
|
@@ -77,6 +76,9 @@ test_geoarray_install:
|
|
|
77
76
|
# test importability
|
|
78
77
|
- python -c "import geoarray; print(geoarray)"
|
|
79
78
|
- python -c "from geoarray import GeoArray"
|
|
79
|
+
|
|
80
|
+
# check if dependencies are properly installed
|
|
81
|
+
- pip check || exit
|
|
80
82
|
only:
|
|
81
83
|
- main
|
|
82
84
|
|
|
@@ -120,9 +122,10 @@ deploy_pypi:
|
|
|
120
122
|
dependencies:
|
|
121
123
|
- test_geoarray
|
|
122
124
|
script:
|
|
123
|
-
- source
|
|
124
|
-
- pip install -U twine
|
|
125
|
-
- python
|
|
125
|
+
- source activate ci_env
|
|
126
|
+
- pip install -U twine build
|
|
127
|
+
- python -m build --sdist
|
|
128
|
+
- twine check dist/*
|
|
126
129
|
- twine upload dist/* # requires creds as environment variables
|
|
127
130
|
only:
|
|
128
131
|
- /^v\d+\.\d+\.\d+([abc]\d*)?$/ # PEP-440 compliant version (tags)
|
|
@@ -101,7 +101,7 @@ Before you submit a pull request, check that it meets these guidelines:
|
|
|
101
101
|
2. If the pull request adds functionality, the docs should be updated. Put
|
|
102
102
|
your new functionality into a function with a docstring, and add the
|
|
103
103
|
feature to the list in README.rst.
|
|
104
|
-
3. The pull request should work for Python
|
|
104
|
+
3. The pull request should work for Python 3.8, 3.9, 3.10, and 3.11. Check
|
|
105
105
|
https://travis-ci.org/danschef/geoarray/pull_requests
|
|
106
106
|
and make sure that the tests pass for all supported Python versions.
|
|
107
107
|
|
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
History
|
|
3
3
|
=======
|
|
4
4
|
|
|
5
|
+
0.17.1 (03.11.2023)
|
|
6
|
+
-------------------
|
|
7
|
+
|
|
8
|
+
* !44: Updated CI to use Ubuntu-based runner. Revised environment_geoarray.yml.
|
|
9
|
+
* !45: Added parameter 'draw_gridlines' to GeoArray.show_map() to allow users to control it by their own.
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
0.17.0 (15.06.2023)
|
|
13
|
+
-------------------
|
|
14
|
+
|
|
15
|
+
* !38: Removed GeoArray.arg attribute as it is not needed and just consumes memory.
|
|
16
|
+
* !39: Revised the project to consistently use new-style type hints.
|
|
17
|
+
* !40: Added workaround for missing PROJ_DATA environment variable.
|
|
18
|
+
* !41: Revised GeoArray.show to be compatible with new versions of holoviews.
|
|
19
|
+
* !42: Dropped support for cartopy<0.20 and removed pyepsg requirement as cartopy>=0.20 uses pyproj instead.
|
|
20
|
+
* !43: Dropped support for Python 3.7 and added support for Python 3.11.
|
|
21
|
+
|
|
22
|
+
|
|
5
23
|
0.16.1 (16.02.2023)
|
|
6
24
|
-------------------
|
|
7
25
|
|
|
@@ -356,7 +374,7 @@ History
|
|
|
356
374
|
------------------
|
|
357
375
|
|
|
358
376
|
* Fixed missing comma.
|
|
359
|
-
* Added cartopy setup
|
|
377
|
+
* Added cartopy setup to test_geoarray to make CI work.
|
|
360
378
|
* Revised GeoArray.show_map() and replaced basemap by cartopy. Dropped mpld3 requirement. Fixed issue #28.
|
|
361
379
|
* Added GeoArray._get_cmap_vmin_vmax() and moved code from .show(), .show_map() and .show_map_utm() there.
|
|
362
380
|
|
|
@@ -108,14 +108,14 @@ servedocs: docs ## compile the docs watching for changes
|
|
|
108
108
|
release: dist ## package and upload a release
|
|
109
109
|
twine upload dist/*
|
|
110
110
|
|
|
111
|
-
dist: clean ## builds source and
|
|
112
|
-
python
|
|
113
|
-
|
|
111
|
+
dist: clean ## builds source package (requires twine and build)
|
|
112
|
+
python -m build --sdist
|
|
113
|
+
twine check dist/*
|
|
114
114
|
ls -l dist
|
|
115
115
|
|
|
116
116
|
install: clean ## install the package to the active Python's site-packages
|
|
117
117
|
pip install -r requirements.txt
|
|
118
|
-
|
|
118
|
+
pip install .
|
|
119
119
|
|
|
120
120
|
gitlab_CI_docker: ## Build a docker image for CI use within gitlab
|
|
121
121
|
cd ./tests/CI_docker/; bash ./build_testsuite_image.sh
|
|
@@ -1,29 +1,80 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: geoarray
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.17.1
|
|
4
4
|
Summary: Fast Python interface for geodata - either on disk or in memory.
|
|
5
5
|
Home-page: https://git.gfz-potsdam.de/danschef/geoarray
|
|
6
6
|
Author: Daniel Scheffler
|
|
7
7
|
Author-email: danschef@gfz-potsdam.de
|
|
8
8
|
License: Apache-2.0
|
|
9
9
|
Keywords: geoarray,geoprocessing,gdal,numpy
|
|
10
|
-
Platform: UNKNOWN
|
|
11
10
|
Classifier: Development Status :: 4 - Beta
|
|
12
11
|
Classifier: Intended Audience :: Developers
|
|
13
12
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
14
13
|
Classifier: Natural Language :: English
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
16
14
|
Classifier: Programming Language :: Python :: 3.8
|
|
17
15
|
Classifier: Programming Language :: Python :: 3.9
|
|
18
16
|
Classifier: Programming Language :: Python :: 3.10
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Requires-Python: >=3.8
|
|
19
|
+
Description-Content-Type: text/x-rst
|
|
20
|
+
License-File: LICENSE
|
|
21
|
+
License-File: AUTHORS.rst
|
|
22
|
+
Requires-Dist: cartopy>=0.20
|
|
23
|
+
Requires-Dist: dill
|
|
24
|
+
Requires-Dist: gdal>=2.1.0
|
|
25
|
+
Requires-Dist: matplotlib
|
|
26
|
+
Requires-Dist: numpy
|
|
27
|
+
Requires-Dist: pandas
|
|
28
|
+
Requires-Dist: py_tools_ds>=0.19.0
|
|
29
|
+
Requires-Dist: scikit-image
|
|
30
|
+
Requires-Dist: shapely
|
|
31
|
+
Provides-Extra: interactive-plotting
|
|
32
|
+
Requires-Dist: folium; extra == "interactive-plotting"
|
|
33
|
+
Requires-Dist: geojson; extra == "interactive-plotting"
|
|
34
|
+
Requires-Dist: holoviews; extra == "interactive-plotting"
|
|
21
35
|
Provides-Extra: doc
|
|
36
|
+
Requires-Dist: sphinx-argparse; extra == "doc"
|
|
37
|
+
Requires-Dist: sphinx_rtd_theme; extra == "doc"
|
|
22
38
|
Provides-Extra: test
|
|
39
|
+
Requires-Dist: cartopy>=0.20; extra == "test"
|
|
40
|
+
Requires-Dist: dill; extra == "test"
|
|
41
|
+
Requires-Dist: gdal>=2.1.0; extra == "test"
|
|
42
|
+
Requires-Dist: matplotlib; extra == "test"
|
|
43
|
+
Requires-Dist: numpy; extra == "test"
|
|
44
|
+
Requires-Dist: pandas; extra == "test"
|
|
45
|
+
Requires-Dist: py_tools_ds>=0.19.0; extra == "test"
|
|
46
|
+
Requires-Dist: scikit-image; extra == "test"
|
|
47
|
+
Requires-Dist: shapely; extra == "test"
|
|
48
|
+
Requires-Dist: pytest; extra == "test"
|
|
49
|
+
Requires-Dist: pytest-cov; extra == "test"
|
|
50
|
+
Requires-Dist: pytest-reporter-html1; extra == "test"
|
|
51
|
+
Requires-Dist: urlchecker; extra == "test"
|
|
52
|
+
Requires-Dist: parameterized; extra == "test"
|
|
23
53
|
Provides-Extra: lint
|
|
54
|
+
Requires-Dist: flake8; extra == "lint"
|
|
55
|
+
Requires-Dist: pycodestyle; extra == "lint"
|
|
56
|
+
Requires-Dist: pydocstyle; extra == "lint"
|
|
24
57
|
Provides-Extra: dev
|
|
25
|
-
|
|
26
|
-
|
|
58
|
+
Requires-Dist: setuptools-git; extra == "dev"
|
|
59
|
+
Requires-Dist: cartopy>=0.20; extra == "dev"
|
|
60
|
+
Requires-Dist: dill; extra == "dev"
|
|
61
|
+
Requires-Dist: gdal>=2.1.0; extra == "dev"
|
|
62
|
+
Requires-Dist: matplotlib; extra == "dev"
|
|
63
|
+
Requires-Dist: numpy; extra == "dev"
|
|
64
|
+
Requires-Dist: pandas; extra == "dev"
|
|
65
|
+
Requires-Dist: py_tools_ds>=0.19.0; extra == "dev"
|
|
66
|
+
Requires-Dist: scikit-image; extra == "dev"
|
|
67
|
+
Requires-Dist: shapely; extra == "dev"
|
|
68
|
+
Requires-Dist: pytest; extra == "dev"
|
|
69
|
+
Requires-Dist: pytest-cov; extra == "dev"
|
|
70
|
+
Requires-Dist: pytest-reporter-html1; extra == "dev"
|
|
71
|
+
Requires-Dist: urlchecker; extra == "dev"
|
|
72
|
+
Requires-Dist: parameterized; extra == "dev"
|
|
73
|
+
Requires-Dist: sphinx-argparse; extra == "dev"
|
|
74
|
+
Requires-Dist: sphinx_rtd_theme; extra == "dev"
|
|
75
|
+
Requires-Dist: flake8; extra == "dev"
|
|
76
|
+
Requires-Dist: pycodestyle; extra == "dev"
|
|
77
|
+
Requires-Dist: pydocstyle; extra == "dev"
|
|
27
78
|
|
|
28
79
|
========
|
|
29
80
|
geoarray
|
|
@@ -103,7 +154,7 @@ There is also a `pip`_ installer for geoarray. However, please note that geoarra
|
|
|
103
154
|
open source packages that may cause problems when installed with pip. Therefore, we strongly recommend
|
|
104
155
|
to resolve the following dependencies before the pip installer is run:
|
|
105
156
|
|
|
106
|
-
* cartopy
|
|
157
|
+
* cartopy >=0.20
|
|
107
158
|
* gdal >=2.1.0
|
|
108
159
|
* geopandas
|
|
109
160
|
* holoviews # optional, in case you want to use interactive plotting
|
|
@@ -143,5 +194,3 @@ This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypack
|
|
|
143
194
|
.. _here: https://git.gfz-potsdam.de/danschef/geoarray/-/blob/main/examples/notebooks/features_and_usage.ipynb
|
|
144
195
|
.. _pip: https://pip.pypa.io
|
|
145
196
|
.. _Python installation guide: http://docs.python-guide.org/en/latest/starting/installation/
|
|
146
|
-
|
|
147
|
-
|
|
@@ -76,7 +76,7 @@ There is also a `pip`_ installer for geoarray. However, please note that geoarra
|
|
|
76
76
|
open source packages that may cause problems when installed with pip. Therefore, we strongly recommend
|
|
77
77
|
to resolve the following dependencies before the pip installer is run:
|
|
78
78
|
|
|
79
|
-
* cartopy
|
|
79
|
+
* cartopy >=0.20
|
|
80
80
|
* gdal >=2.1.0
|
|
81
81
|
* geopandas
|
|
82
82
|
* holoviews # optional, in case you want to use interactive plotting
|
|
@@ -46,3 +46,9 @@ __all__ = ['__version__',
|
|
|
46
46
|
'NoDataMask',
|
|
47
47
|
'CloudMask'
|
|
48
48
|
]
|
|
49
|
+
|
|
50
|
+
# $PROJ_LIB was renamed to $PROJ_DATA in proj=9.1.1, which leads to issues with fiona>=1.8.20,<1.9
|
|
51
|
+
# https://github.com/conda-forge/pyproj-feedstock/issues/130
|
|
52
|
+
# -> fix it by setting PROJ_DATA
|
|
53
|
+
if 'GDAL_DATA' in os.environ and 'PROJ_DATA' not in os.environ and 'PROJ_LIB' not in os.environ:
|
|
54
|
+
os.environ['PROJ_DATA'] = os.path.join(os.path.dirname(os.environ['GDAL_DATA']), 'proj')
|