Get band mean and standard deviation for better normalization #49
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📝 Changelog
get_mean_sd_by_band
function indata/utils.py
I believe it would be a good idea to check if this works properly within the
malpolon
environment. As mentioned IRL, I had trouble setting up an environment. In my poorly setup environment, rasterio'ssrc.tags(band_number)
returns an empty dict.I've tested in other environments and this works properly, I never had such an issue before and do not find further hints about this bug for now. But if it works in a properly set environment, it works.
Just in case, I've added a warning in case the function does not return means and sds as its supposed to do.