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

core.add_raster_to_item: Make compute statistics and histogram optional #466

Open
thomas-maschler opened this issue Sep 29, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@thomas-maschler
Copy link
Contributor

Is your feature request related to a problem? Please describe.
When adding assets to an item using core.add_raster_to_item stactools always computes statistics and histogram. None of the values are required for the raster extension. When creating many items, computing statistics, and histograms can significantly slow the process. Giving users the ability to opt out of statistics and histograms will increase user experience.

Describe the solution you'd like
Add kwargs statistics:bool=True and histogram:bool=True to core.add_raster_to_item function and only compute statistics and histogram if values are set to true. This should assure backward compatibility and open up options to include additional fields in the future.

@thomas-maschler thomas-maschler added the enhancement New feature or request label Sep 29, 2023
thomas-maschler added a commit to thomas-maschler/stactools that referenced this issue Sep 29, 2023
gadomski added a commit that referenced this issue Oct 2, 2023
* make stats and histogram optional #466

* update docstring and changelog

* update comment

* fix(docs): use PR for changelog

* Update tests/core/test_add_raster.py

* Update tests/core/test_add_raster.py

---------

Co-authored-by: Pete Gadomski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant