<jupyter_start><jupyter_text>Parametrize pixel values to fit a desired rangeYou must know the actual range (computing it could take too much EE memory capacity)<jupyter_code>from geetools import tools, ui, wrapper
import ee
i = ee.Image('COPERNICUS/S2/20181122T142749_20181122T143353_T18GYT').select('B1')
Map = ui.Map()
Map.show()
Map.addLayer(i, {'min':0, 'max': 6000}, 'Original')
parametrized = tools.image.parametrize(i, (0, 10000), (0, 1))
Map.addLayer(parametrized, {'min':0, 'max': 0.6}, 'Parametrized')
tools.image.get_value(i, i.geometry().centroid(), 10, 'client')
tools.image.get_value(parametrized, i.geometry().centroid(), 10, 'client')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.16176470588235295, 'fraction_numerical': 0.07647058823529412, 'mean_word_length': 7.5125, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '484757', 'license': 'MIT', 'n_tokens_mistral': 294, 'n_tokens_neox': 254, 'n_words': 58, 'path': 'notebooks/image/parametrize.ipynb', 'repo_name': 'bworstell/gee_tools', 'size': '680'}