-
Notifications
You must be signed in to change notification settings - Fork 2
/
l8.sh
24 lines (20 loc) · 888 Bytes
/
l8.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Buscando datos de LANDSAT
# Ubico la escena para Venezuela
# busco con search.remotepixel.ca
firefox https://search.remotepixel.ca/#5/7/-66
URL=https://landsat-pds.s3.amazonaws.com/c1/L8/006/054/LC08_L1TP_006054_20180303_20180319_01_T1/LC08_L1TP_006054_20180303_20180319_01_T1_
# Descargar toda la escena con metadatos y evaluación de calidad
A=$( printf %s B{1..11}.TIF, )BQA.TIF,MTL.txt
$( eval echo "wget --mirror --convert-links --page-requisites --no-parent -c \
${URL}{${A}}" )
# Ya tengo toda la escena, si quiero algunas partes nada mas
# Solo las Bandas espectrales
A=$(echo B{1..11}.TIF,)
A=${A%,*}
A=${A// /}
$( eval echo "wget --mirror --convert-links --page-requisites --no-parent -c \
${URL}${A}" )
# Metadatos y evaluación de calidad
A=BQA.TIF,MTL.txt
$( eval echo "wget --mirror --convert-links --page-requisites --no-parent -c \
${URL}{${A}}" )