Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ci/envs/latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ dependencies:
- rasterstats
- rioxarray
- scikit-learn
- tqdm
# Optional
- qgis
# testing
Expand Down
1 change: 1 addition & 0 deletions ci/envs/minimal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ dependencies:
- rasterstats
- rioxarray
- scikit-learn
- tqdm
# Optional
# - qgis
# testing
Expand Down
23 changes: 13 additions & 10 deletions cropclassification/util/mosaic_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
from typing import Any, Optional

import pyproj
from tqdm import tqdm
from tqdm.contrib.logging import logging_redirect_tqdm

from . import date_util, openeo_util, raster_index_util, raster_util

Expand Down Expand Up @@ -254,16 +256,17 @@ def calc_periodic_mosaic(
)

# Process the mosaic images to be generated locally.
for image_local in images_local:
# Prepare index output file path
raster_index_util.calc_index(
image_local["base_image_path"],
image_local["path"],
index=image_local["index_type"],
pixel_type=image_local["pixel_type"],
process_options=image_local["process_options"],
force=force,
)
with logging_redirect_tqdm():
for image_local in tqdm(images_local):
# Prepare index output file path
raster_index_util.calc_index(
image_local["base_image_path"],
image_local["path"],
index=image_local["index_type"],
pixel_type=image_local["pixel_type"],
process_options=image_local["process_options"],
force=force,
)

return periodic_mosaic_params

Expand Down
1 change: 1 addition & 0 deletions environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ dependencies:
- rasterstats
- rioxarray
- scikit-learn
- tqdm
# Optional
- qgis
# testing
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"tensorflow",
"numpy<2",
"exactextract",
"tqdm",
],
entry_points="""
[console_scripts]
Expand Down