Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get band mean and standard deviation for better normalization #49

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

ptresson
Copy link

📝 Changelog

  • Add get_mean_sd_by_band function in data/utils.py
  • Add warning if tags are unavailable and computation does not take place

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's src.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.

@tlarcher tlarcher deleted the branch plantnet:dev July 23, 2024 19:40
@tlarcher tlarcher closed this Jul 23, 2024
@tlarcher tlarcher reopened this Jul 23, 2024
@tlarcher tlarcher deleted the branch plantnet:dev August 15, 2024 12:42
@tlarcher tlarcher closed this Aug 15, 2024
@tlarcher tlarcher reopened this Sep 16, 2024
@tlarcher tlarcher deleted the branch plantnet:dev November 6, 2024 19:49
@tlarcher tlarcher closed this Nov 6, 2024
@tlarcher tlarcher reopened this Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants