diff --git a/.abcli/download.sh b/.abcli/download.sh index 8a07090..cb6212c 100644 --- a/.abcli/download.sh +++ b/.abcli/download.sh @@ -4,7 +4,7 @@ function abcli_hubble_download() { local options=$1 if [ $(abcli_option_int "$options" help 0) == 1 ]; then - local options="~dryrun,filename=|all,~ingest,upload" + local options="~dryrun,filename=|all,~ingest,upload,verbose" abcli_show_usage "hubble download$ABCUL[$options]$ABCUL[.|]$ABCUL[.|]" \ "$abcli_hubble_dataset_name/ -> ." return @@ -16,6 +16,7 @@ function abcli_hubble_download() { local do_dryrun=$(abcli_option_int "$options" dryrun 1) local do_upload=$(abcli_option_int "$options" upload 0) local do_ingest=$(abcli_option_int "$options" ingest 1) + local do_verbose=$(abcli_option_int "$options" verbose 0) local hubble_object_name=$(abcli_clarify_object "$2" . hubble_object) local object_name=$(abcli_clarify_object "$3" .) @@ -23,18 +24,22 @@ function abcli_hubble_download() { local auth=$(abcli_hubble_get auth $dataset_name) local s3_uri=$(abcli_hubble_get s3_uri $dataset_name $hubble_object_name) + local command_line if [ "$filename" == all ]; then - local command_line="aws s3 sync \ + command_line="aws s3 sync \ $auth \ $s3_uri \ $abcli_object_root/$object_name/" else - local command_line="aws s3 cp \ + command_line="aws s3 cp \ $auth \ $s3_uri$filename \ $abcli_object_root/$object_name/" fi + [[ "$do_verbose" == 0 ]] && + command_line="$command_line --only-show-errors" + abcli_eval dryrun=$do_dryrun \ "$command_line" diff --git a/hubble/__init__.py b/hubble/__init__.py index 0984c59..1773001 100644 --- a/hubble/__init__.py +++ b/hubble/__init__.py @@ -4,4 +4,4 @@ DESCRIPTION = f"{ICON} tools to access and process Hubble Space Telescope imagery and other datasets on AWS Open Data Registry." -VERSION = "3.318.1" +VERSION = "3.320.1"