diff --git a/blue_geo/.abcli/datacube/query.sh b/blue_geo/.abcli/datacube/query.sh index 9edc3885..fadc4747 100644 --- a/blue_geo/.abcli/datacube/query.sh +++ b/blue_geo/.abcli/datacube/query.sh @@ -28,13 +28,18 @@ function blue_geo_datacube_query() { local do_select=$(abcli_option_int "$options" select 0) local do_upload=$(abcli_option_int "$options" upload 0) - local object_name=$(abcli_clarify_object $3 query-$catalog-$(abcli_string_timestamp)) - if [[ ",$blue_geo_datacube_list_of_catalogs," != *",$catalog,"* ]]; then abcli_log_error "-@datacube: query: $catalog: catalog not found." return 1 fi + if [[ $(abcli_option_int "$options" help 0) == 1 ]]; then + blue_geo_datacube_${catalog}_query "${@:2}" + return + fi + + local object_name=$(abcli_clarify_object $3 query-$catalog-$(abcli_string_timestamp)) + [[ "$do_download" == 1 ]] && abcli_download - $object_name diff --git a/blue_geo/__init__.py b/blue_geo/__init__.py index 9b19d931..731d1482 100644 --- a/blue_geo/__init__.py +++ b/blue_geo/__init__.py @@ -4,7 +4,7 @@ DESCRIPTION = f"{ICON} AI for precise geospatial data analysis and visualization." -VERSION = "4.94.1" +VERSION = "4.95.1" REPO_NAME = "blue-geo" diff --git a/blue_geo/datacube/query.py b/blue_geo/datacube/query.py index c48c89e1..e763c304 100644 --- a/blue_geo/datacube/query.py +++ b/blue_geo/datacube/query.py @@ -15,7 +15,7 @@ parser.add_argument( "--count", type=int, - default=1, + default=-1, ) parser.add_argument( "--delim",