Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
EmileSonneveld committed Feb 11, 2025
1 parent c6c779b commit 09f7993
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions openeo_workflow/Dockerfile → OpenEO_Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# docker build -t openeo_insar .
# skopeo --insecure-policy copy --dest-tls-verify=false --multi-arch=all --format=oci docker-daemon:openeo_insar:latest docker://registry.stag.warsaw.openeo.dataspace.copernicus.eu/rand/openeo_insar:latest
# docker build -t openeo_insar:1.2 . -f OpenEO_Dockerfile
# skopeo --insecure-policy copy --dest-tls-verify=false --multi-arch=all --format=oci docker-daemon:openeo_insar:1.2 docker://registry.stag.warsaw.openeo.dataspace.copernicus.eu/rand/openeo_insar:1.2
# docker run -it openeo_insar
FROM ghcr.io/osgeo/gdal:ubuntu-small-3.10.0

Expand Down
8 changes: 4 additions & 4 deletions openeo_workflow/insar.py → OpenEO_insar.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@
os.environ["PATH"] = os.environ["PATH"] + ":" + str(containing_folder / "utilities")
cmd = ["sentinel1_burst_extractor_spatiotemporal.sh"] + argument_list
print(cmd)
# subprocess.run(cmd, check=True, cwd=containing_folder / "utilities", stderr=subprocess.STDOUT)
subprocess.run(cmd, check=True, cwd=containing_folder / "utilities", stderr=subprocess.STDOUT)

print("seconds since start insar.py: " + str((datetime.datetime.now() - start_time).seconds))
print("seconds since start: " + str((datetime.datetime.now() - start_time).seconds))

# GPT means "Graph Processing Toolkit" in this context
glob_str = str(tmp_insar / "*/manifest.safe")
Expand All @@ -90,14 +90,14 @@

gpt_cmd = [
"gpt",
"/src/s1-workflows/graphs/pre-processing_stackOverview_2images_GeoTiff.xml",
"/src/graphs/pre-processing_stackOverview_2images_GeoTiff.xml",
f"-Pinput1={input1}", f"-Pinput2={input2}",
f"-PstackOverview_filename={result_folder}/stackOverview_2images.json",
f"-PcoregisteredStack_filename={result_folder}/Orb_Stack_2images"
]
print(gpt_cmd)
subprocess.run(gpt_cmd, check=True, stderr=subprocess.STDOUT)
print("seconds since start insar.py: " + str((datetime.datetime.now() - start_time).seconds))
print("seconds since start: " + str((datetime.datetime.now() - start_time).seconds))

# CWL Will find the result files in HOME or CD

Expand Down

0 comments on commit 09f7993

Please sign in to comment.