generated from kamangir/blue-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
14 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
10 changes: 5 additions & 5 deletions
10
blue_geo/.abcli/catalog/browse/firms.sh → blue_geo/.abcli/catalog/firms/browse.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
#! /usr/bin/env bash | ||
|
||
function blue_geo_datacube_firms_browse() { | ||
function blue_geo_catalog_firms_browse() { | ||
local options=$1 | ||
|
||
if [ $(abcli_option_int "$options" help 0) == 1 ]; then | ||
options="|map_key|area" | ||
abcli_show_usage "@datacube browse firms$ABCUL$options" \ | ||
abcli_show_usage "@catalog browse firms$ABCUL$options" \ | ||
"browse firms." | ||
return | ||
fi | ||
|
||
local do_map_key=$(abcli_option_int "$options" map_key 0) | ||
local do_area_api=$(abcli_option_int "$options" area 0) | ||
local api=$(abcli_option_choice "$options" area area) | ||
|
||
local url="https://firms.modaps.eosdis.nasa.gov/" | ||
[[ "$do_map_key" == 1 ]] && | ||
url="https://firms.modaps.eosdis.nasa.gov/api/map_key/" | ||
[[ "$do_area_api" == 1 ]] && | ||
url="https://firms.modaps.eosdis.nasa.gov/api/area/" | ||
[[ -z "$api" ]] && | ||
url="https://firms.modaps.eosdis.nasa.gov/api/$api/" | ||
|
||
abcli_browse $url | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters