~mil/mepo

ref: 041d978478ae78e241802ca9d750677e101c3f5b mepo/scripts/mepo_ui_menu_dbg_queuedownloadnoninteractive.sh -rwxr-xr-x 441 bytes
041d9784Miles Alan Show progress in % complete for transfer datum on tiles while downloading 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env sh
DISPLAYNAME=" Download: current bounding-box (non-interactive)"
HOTKEY=Q
BOUND_LOWER=1
BOUND_UPPER=19

main() {
  ZOOM_MIN=$MEPO_ZOOM
  ZOOM_MAX="$(printf %b "19\n$MEPO_ZOOM" | sort -rn | head -n1)"

  echo "
    cache_dlbbox
      $MEPO_BR_LAT
      $MEPO_TL_LON
      $MEPO_TL_LAT
      $MEPO_BR_LON
      $ZOOM_MIN
      $ZOOM_MAX 
    ;

    prefset_n download_bar 1;
  "
}

if [ -n "$1" ]; then "$@"; else main; fi