Skip to content

Commit

Permalink
chore: drop visualization methods (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
12rambau committed Nov 7, 2023
2 parents 0113b36 + cc2fa8b commit 6249b4e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 91 deletions.
1 change: 1 addition & 0 deletions geetools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
# reproduce older structure of the lib (deprecated)
# will be removed along the deprecation cycle
from . import _deprecated_filters as filters # noqa: F401
from . import _deprecated_visualization as visualization # noqa: F401

# then we extend all the other classes
from .Array import Array # noqa: F401
Expand Down
23 changes: 23 additions & 0 deletions geetools/_deprecated_visualization.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# coding=utf-8
"""Legacy Helper functions for visualizing data on a map."""
from deprecated.sphinx import deprecated


@deprecated(
version="1.0.0", reason="Removed as this lib does not deal with map anymore"
)
def stretch_std(image, region, bands=None, std=1, scale=None):
"""Get mins and maxs values for stretching a visualization using standard deviation."""
raise NotImplementedError(
"Interactive methods have been moved to ipygee. For non-interactive, rely on your visualization library like rasterio, matplotlib, etc."
)


@deprecated(
version="1.0.0", reason="Removed as this lib does not deal with map anymore"
)
def stretch_percentile(image, region, bands=None, percentile=90, scale=None):
"""Get mins and maxs values for stretching a visualization using percentiles."""
raise NotImplementedError(
"Interactive methods have been moved to ipygee. For non-interactive, rely on your visualization library like rasterio, matplotlib, etc."
)
91 changes: 0 additions & 91 deletions geetools/visualization.py

This file was deleted.

0 comments on commit 6249b4e

Please sign in to comment.