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

Using the sample_id for items ID in the stac metadata #45

Merged
merged 1 commit into from
May 27, 2024
Merged
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
7 changes: 7 additions & 0 deletions scripts/extractions/extract_optical.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ def create_datacube_optical(
title=f"GFMAP_Extraction_S2_{s2_tile}_{valid_time}",
sample_by_feature=True,
job_options=job_options,
feature_id_property="sample_id",
)


Expand Down Expand Up @@ -328,6 +329,11 @@ def post_job_action(
default="1900m",
help="Memory overhead to allocate for the executor.",
)
parser.add_argument(
"--restart_failed",
action="store_true",
help="Restart the jobs that previously failed.",
)

args = parser.parse_args()

Expand Down Expand Up @@ -368,6 +374,7 @@ def post_job_action(
poll_sleep=60,
n_threads=2,
post_job_params={},
restart_failed=args.restart_failed,
)

manager.add_backend(Backend.CDSE.value, cdse_connection, parallel_jobs=6)
Expand Down
Loading