Skip to content
Merged
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
14 changes: 8 additions & 6 deletions src/globato/cli/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@
"--refresh", is_flag=True, help="Force fresh API fetch, bypassing local cache."
)
@click.option(
"--ignore-failures",
"--fail-fast",
is_flag=True,
help="Continue processing through failures (Warning: may result in incomplete data or products).",
help="Raise an exception on the first failure, otherwise continue processing through failures.",
)
@click.argument("sources", nargs=-1)
def build_cmd(
Expand All @@ -126,7 +126,7 @@ def build_cmd(
export,
sources,
refresh,
ignore_failures,
fail_fast,
):
"""Build a Digital Elevation Model recipe, and execute it."""

Expand Down Expand Up @@ -396,13 +396,15 @@ def build_cmd(
outdir=outdir,
shared_cache=shared_cache,
refresh=refresh,
ignore_failures=ignore_failures,
ignore_failures=not fail_fast,
)
click.secho(
"✨ Successfully completed Globato build pipeline!",
fg="green",
bold=True,
)

except ValueError as e:
click.secho(str(e), fg="red")
except Exception as e:
click.secho(
f"Failed to execute Globato pipeline!: {str(e)}", fg="red", bold=True
)
23 changes: 22 additions & 1 deletion src/globato/modules/bundles/cudem_standard_bato.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,28 @@ modules:

# TNM NED 1m and 1/9
- module: tnm
args: {weight: 5.0, formats: "GeoTIFF", datasets: "2/4"}
args: {weight: 5.0, datasets: "4"}
hooks:
- name: unzip
- name: filename_filter
args: {match: ".tif"}
- name: raster_flats
args:
stage: "file"
- name: stream_reproject
args: {dst_srs: "EPSG:4269+5703"}
- name: point_raster_mask
args:
barrier: "coastline"
invert: false
res: .11111111s
- name: range_z
args:
min_z: 0.01
cache_dir: "%shared_cache%"

- module: tnm
args: {weight: 3.0, formats: "GeoTIFF", datasets: "2"}
hooks:
- name: raster_flats
args:
Expand Down
Loading