Skip to content

Commit de0b43b

Browse files
author
Alexey Pechnikov
committed
Try to install the recent upstream GMTSAR
1 parent dd6138f commit de0b43b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pygmtsar/pygmtsar/data/google_colab.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ if [ "$count" -eq 0 ]; then
1313
update-alternatives --config gcc
1414
gcc --version | head -n 1
1515
git config --global advice.detachedHead false
16-
cd /usr/local && git clone -q --branch master https://github.com/gmtsar/gmtsar GMTSAR
16+
# limit clone depth when git checkout disabled
17+
cd /usr/local && git clone --depth=1 -q --branch master https://github.com/gmtsar/gmtsar GMTSAR
1718
# revert recent broken commit
18-
cd /usr/local/GMTSAR && git checkout e98ebc0f4164939a4780b1534bac186924d7c998 > /dev/null
19+
#cd /usr/local/GMTSAR && git checkout e98ebc0f4164939a4780b1534bac186924d7c998 > /dev/null
1920
cd /usr/local/GMTSAR && autoconf > /dev/null
2021
cd /usr/local/GMTSAR && ./configure --with-orbits-dir=/tmp > /dev/null
21-
cd /usr/local/GMTSAR && make 1>/dev/null 2>/dev/null
22+
cd /usr/local/GMTSAR && make -j$(nproc) 1>/dev/null 2>/dev/null
2223
cd /usr/local/GMTSAR && make install >/dev/null
2324
# test one GMTSAR binary
2425
/usr/local/GMTSAR/bin/make_s1a_tops 2>&1 | head -n 2

0 commit comments

Comments
 (0)