Skip to content

Commit

Permalink
Merge pull request #45 from WorldCereal/sample_id_extraction
Browse files Browse the repository at this point in the history
Using the sample_id for items ID in the stac metadata
  • Loading branch information
kvantricht authored May 27, 2024
2 parents cfa2f76 + 2559b3d commit ebfcc1b
Showing 1 changed file with 7 additions and 0 deletions.
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

0 comments on commit ebfcc1b

Please sign in to comment.