-
Notifications
You must be signed in to change notification settings - Fork 5
ENH: Use exactextract by default for zonalstats calculation #181
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
Draft
KriWay-LV
wants to merge
45
commits into
theroggy:main
Choose a base branch
from
KriWay-LV:feature/exactextract-vs-pyqgis
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
05f3978
use exactextract
KriWay-LV fd1592f
Test
KriWay-LV 5b0d6ed
use exactextract for zonal stats
KriWay-LV 89e7e66
buffer = 0
KriWay-LV ee6156a
update changelog
KriWay-LV 4634573
removed stats as parameter
KriWay-LV 703cbe3
changed example
KriWay-LV 8062e4a
add force parameter to zonal_stats_band_tofile
KriWay-LV 6f9ce87
add force parameter to test
KriWay-LV 8e71727
refactor
KriWay-LV 2f17bd2
refactor
KriWay-LV e38cfde
refactor + add new test
KriWay-LV f43273b
refactor
KriWay-LV a73ec89
refactor
KriWay-LV fccb369
refactor
KriWay-LV cd6b9a6
Merge branch 'main' into feature/exactextract-vs-pyqgis
KriWay-LV bd292e1
refactor stats as list of strings
KriWay-LV a1c9ec7
new version of prc_befl_2023_2023_07_24.gpkg
KriWay-LV bbafed8
add zonal_stats_bulk_invalid test
KriWay-LV ca64d33
min_coverage_frac = 0.8
KriWay-LV 260216c
refactor zonal_stats_bulk_invalid test
KriWay-LV cfa6049
addressed review comments
KriWay-LV af936dc
added test exactextract
KriWay-LV aacd902
Merge branch 'main' into pr/181
theroggy 7def42d
Avoid very high commited memory being reserved
theroggy 1cafab4
Small improvement to logging
theroggy bed1b87
Adapt min_parcels_with_data_prc to avoid s1 being lost due to buffer=0
theroggy 61cccb5
Update calc_cropclass.py
theroggy 306f172
Disable botocore.credentions info logging
theroggy 268ceff
Small improvements to tests
theroggy fda5432
Simplify test
theroggy abfc247
Merge branch 'main' into pr/181
theroggy aa4c702
updated version
KriWay-LV ca2db2e
Merge branch 'main' into feature/exactextract-vs-pyqgis
KriWay-LV f8d67a1
expect float16 in stead of float32
KriWay-LV 0811a8a
undo the changes
KriWay-LV 6e8b0b9
redo changes
KriWay-LV b4b70b9
pinned version rasterio and tests with minimal python 3.12
KriWay-LV 9464546
use python 3.13 for macos-latest test
KriWay-LV 16c7b74
skip tests when certain rasterio version
KriWay-LV 77090f6
rasterio not pinned
KriWay-LV 0b61113
set minimal python version to 3.10
KriWay-LV e750708
refactor yml
KriWay-LV 6f2bdc6
refactor yml
KriWay-LV cc950a1
Merge branch 'feature/fix-tests' into feature/exactextract-vs-pyqgis
KriWay-LV File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,7 @@ | ||
| """Package with functionalities to support agricultural parcel monitoring.""" | ||
|
|
||
| import logging | ||
|
|
||
| # Disable info logging pf botocore.credentials | ||
| logger_botocore_credentials = logging.getLogger("botocore.credentials") | ||
| logger_botocore_credentials.setLevel(logging.WARNING) |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Binary file added
BIN
+10.7 KB
...gma0-vvdvh-asc-weekly/s1-grd-sigma0-vvdvh-asc-weekly_2024-03-04_2024-03-10_vvdvh_last.tif
Binary file not shown.
31 changes: 31 additions & 0 deletions
31
...vvdvh-asc-weekly/s1-grd-sigma0-vvdvh-asc-weekly_2024-03-04_2024-03-10_vvdvh_last.tif.json
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| { | ||
| "imageprofile": "s1-grd-sigma0-vvdvh-asc-weekly", | ||
| "collection": null, | ||
| "index_type": "vvdvh", | ||
| "max_cloud_cover": null, | ||
| "image_source": "local", | ||
| "base_imageprofile": "s1-grd-sigma0-asc-weekly", | ||
| "pixel_type": "FLOAT32", | ||
| "satellite": "s1", | ||
| "roi_bounds": [ | ||
| 161400.0, | ||
| 188000.0, | ||
| 161900.0, | ||
| 188500.0 | ||
| ], | ||
| "roi_crs": "31370", | ||
| "start_date": "2024-03-04", | ||
| "end_date_incl": "2024-03-10", | ||
| "end_date": "2024-03-11", | ||
| "period_name": "weekly", | ||
| "weeks": [ | ||
| 10 | ||
| ], | ||
| "bands": [ | ||
| "vvdvh" | ||
| ], | ||
| "time_reducer": "last", | ||
| "path": "C:/Users/local_KRIWAY/Temp/1/pytest-of-KRIWAY/pytest-5/test_task_calc_periodic_mosaic0/markers/_images_periodic/roi_test/s1-grd-sigma0-vvdvh-asc-weekly/s1-grd-sigma0-vvdvh-asc-weekly_2024-03-04_2024-03-10_vvdvh_last.tif", | ||
| "job_options": null, | ||
| "process_options": null | ||
| } |
Binary file added
BIN
+10.7 KB
...gma0-vvdvh-asc-weekly/s1-grd-sigma0-vvdvh-asc-weekly_2024-03-11_2024-03-17_vvdvh_last.tif
Binary file not shown.
31 changes: 31 additions & 0 deletions
31
...vvdvh-asc-weekly/s1-grd-sigma0-vvdvh-asc-weekly_2024-03-11_2024-03-17_vvdvh_last.tif.json
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| { | ||
| "imageprofile": "s1-grd-sigma0-vvdvh-asc-weekly", | ||
| "collection": null, | ||
| "index_type": "vvdvh", | ||
| "max_cloud_cover": null, | ||
| "image_source": "local", | ||
| "base_imageprofile": "s1-grd-sigma0-asc-weekly", | ||
| "pixel_type": "FLOAT32", | ||
| "satellite": "s1", | ||
| "roi_bounds": [ | ||
| 161400.0, | ||
| 188000.0, | ||
| 161900.0, | ||
| 188500.0 | ||
| ], | ||
| "roi_crs": "31370", | ||
| "start_date": "2024-03-11", | ||
| "end_date_incl": "2024-03-17", | ||
| "end_date": "2024-03-18", | ||
| "period_name": "weekly", | ||
| "weeks": [ | ||
| 11 | ||
| ], | ||
| "bands": [ | ||
| "vvdvh" | ||
| ], | ||
| "time_reducer": "last", | ||
| "path": "C:/Users/local_KRIWAY/Temp/1/pytest-of-KRIWAY/pytest-5/test_task_calc_periodic_mosaic0/markers/_images_periodic/roi_test/s1-grd-sigma0-vvdvh-asc-weekly/s1-grd-sigma0-vvdvh-asc-weekly_2024-03-11_2024-03-17_vvdvh_last.tif", | ||
| "job_options": null, | ||
| "process_options": null | ||
| } |
31 changes: 31 additions & 0 deletions
31
...dvh-desc-weekly/s1-grd-sigma0-vvdvh-desc-weekly_2024-03-04_2024-03-10_vvdvh_last.tif.json
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| { | ||
| "imageprofile": "s1-grd-sigma0-vvdvh-desc-weekly", | ||
| "collection": null, | ||
| "index_type": "vvvh", | ||
| "max_cloud_cover": null, | ||
| "image_source": "local", | ||
| "base_imageprofile": "s1-grd-sigma0-desc-weekly", | ||
| "pixel_type": "FLOAT32", | ||
| "satellite": "s1", | ||
| "roi_bounds": [ | ||
| 161400.0, | ||
| 188000.0, | ||
| 161900.0, | ||
| 188500.0 | ||
| ], | ||
| "roi_crs": "31370", | ||
| "start_date": "2024-03-04", | ||
| "end_date_incl": "2024-03-10", | ||
| "end_date": "2024-03-11", | ||
| "period_name": "weekly", | ||
| "weeks": [ | ||
| 10 | ||
| ], | ||
| "bands": [ | ||
| "vvdvh" | ||
| ], | ||
| "time_reducer": "last", | ||
| "path": "C:/Users/local_KRIWAY/Temp/1/pytest-of-KRIWAY/pytest-5/test_task_calc_periodic_mosaic0/markers/_images_periodic/roi_test/s1-grd-sigma0-vvdvh-desc-weekly/s1-grd-sigma0-vvdvh-desc-weekly_2024-03-04_2024-03-10_vvdvh_last.tif", | ||
| "job_options": null, | ||
| "process_options": null | ||
| } |
31 changes: 31 additions & 0 deletions
31
...dvh-desc-weekly/s1-grd-sigma0-vvdvh-desc-weekly_2024-03-11_2024-03-17_vvdvh_last.tif.json
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| { | ||
| "imageprofile": "s1-grd-sigma0-vvdvh-desc-weekly", | ||
| "collection": null, | ||
| "index_type": "vvvh", | ||
| "max_cloud_cover": null, | ||
| "image_source": "local", | ||
| "base_imageprofile": "s1-grd-sigma0-desc-weekly", | ||
| "pixel_type": "FLOAT32", | ||
| "satellite": "s1", | ||
| "roi_bounds": [ | ||
| 161400.0, | ||
| 188000.0, | ||
| 161900.0, | ||
| 188500.0 | ||
| ], | ||
| "roi_crs": "31370", | ||
| "start_date": "2024-03-11", | ||
| "end_date_incl": "2024-03-17", | ||
| "end_date": "2024-03-18", | ||
| "period_name": "weekly", | ||
| "weeks": [ | ||
| 11 | ||
| ], | ||
| "bands": [ | ||
| "vvdvh" | ||
| ], | ||
| "time_reducer": "last", | ||
| "path": "C:/Users/local_KRIWAY/Temp/1/pytest-of-KRIWAY/pytest-5/test_task_calc_periodic_mosaic0/markers/_images_periodic/roi_test/s1-grd-sigma0-vvdvh-desc-weekly/s1-grd-sigma0-vvdvh-desc-weekly_2024-03-11_2024-03-17_vvdvh_last.tif", | ||
| "job_options": null, | ||
| "process_options": null | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.