-
Notifications
You must be signed in to change notification settings - Fork 1
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
PR for 0.2.0 Release #37
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Support Sentinel 2 Images
Allow NumPy arrays
* Fix upper and camel_case * Format with black * Lint indices * Initial lint of metrics * More linting * Fix changed imports
KavlinClein
approved these changes
Dec 20, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's looking good. A couple of small things to change for the next update, but nothing major from what I could see!
This was referenced Dec 20, 2023
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
PR for 0.2.0 Release
- Support for Sentinel 2 imagery
enums.py
,indices.py
,io.raster.py
Platform
enum; supports landsat tm, etm, oli, and sentinel 2platform=
parameter inread_and_stack_tifs
- Update to recovery target methods
restoration.py
(ReferenceSystem
),recovery_target.py
mean
replaced withmedian
ReferenceSystem
uses a historical_reference_system parameter to choose type of recovery target method to compute inReferenceSystem.recovery_target()
- Add plotting for spectral trajectories of restoration site
restoration.py
,timeseries.py
plot_spectral_trajectory()
method toRestorationArea
. Method plots trajectories for each band; includes restoration, disturbances, and reference windows if relevant. Implementation is fairly slow, likely due to Pandas.- Support for band naming
io.raster.py
band_names=
parameter inread_and_stack_tifs
to allow users to map band numbers to band names. Partially addresses Allow band numbers, not just common names #22 (feedback from VTT)- Support for additional bands
enums.py
read_and_stack_tifs
throws error for valid but unsupported band common names #23 (feedback from VTT)- NumPy computation
io.raster.py
array_type=
parameter, to allow users to choose NumPy or Dask arrays; if NumPy is chosen, all computation run in spectral-recovery will be NumPy based (locally). Useful for comptuation over smaller datasets.- Allow str inputs from users
timeseries.py
,io.raster.py
,indices.py
compute_indices
and platform inread_and_stack_tifs
RestorationArea(...)
can now be passed as strs instead of Timestamps- Loosen spatial check
timeseries.py
contains_spatial
when checking whether images contain restoration/reference polygons. Accounts for rounding errors that pop up between almost-equal bounding boxes- Update docs
docs\overview_API.ipynb
,docs\test_data\
overview_API.ipynb
updated to reflect new changes in this release.overview_API.ipynb
, closes Add documentation for writing TIFS #24 (feedback from VTT)- General clean up