-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConexiones_Aisladas.sh
More file actions
57 lines (37 loc) · 1.43 KB
/
Copy pathConexiones_Aisladas.sh
File metadata and controls
57 lines (37 loc) · 1.43 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
parent_dir=$(basename "$(dirname "$(pwd)")")
current_dir=$(basename "$(pwd)")
if [ -n "$1" ]; then
# Caso 1: argumento entregado → usarlo
name=$(cat NameVolcano.txt 2>/dev/null)
subsetnumero=$1
elif [ -s NameVolcano.txt ]; then
# Caso 2: No hay $1, pero existe NameVolcano.txt
name=$(cat NameVolcano.txt)
if [ -s SubsetID.txt ]; then
# Si también hay SubsetID.txt
subsetnumero=$(cat SubsetID.txt)
else
# Si no hay SubsetID.txt → calcular con Python
subsetnumero=$(python3 VER_Nombre_volcan_V2.py "$name" | tr -d '[]')
fi
else
# Caso 3: No hay $1 ni NameVolcano.txt válido
echo "NameVolcano.txt is missing or empty"
subsetnumero=$(python3 VER_Nombre_volcan_V2.py "$parent_dir" | tr -d '[]')
exit 1
fi
output="IFSforLiCSBAS_${current_dir}_${parent_dir}_${subsetnumero}.txt"
echo "conexiones aisladas"
python conexiones_aisladas.py
line_count=$(wc -l < interferogramasnoaislados.txt)
echo "📄 Número total de combinaciones generadas: $line_count"
framebatch_gapfill.sh -l -N -I ${PWD}/interferogramasnoaislados.txt 5 200 7 2
cat interferogramasnoaislados.txt >> $output
# Sort the file in-place (overwrite)
sort -o "$output" "$output"
python Check_noloop_GEOC.py
framebatch_gapfill.sh -l -N -I ${PWD}/minimal_loops_GEOC.txt 5 200 7 2
cat minimal_loops_GEOC.txt >> $output
# Sort the file in-place (overwrite)
sort -o "$output" "$output"