Skip to content

Latest commit

 

History

History
74 lines (60 loc) · 4.8 KB

File metadata and controls

74 lines (60 loc) · 4.8 KB

Installation guide

  • Set $MINSAR_HOME in your .bashrc. You also need a .bash_profile to ensure your .bashrc is read.

  • Create an ~/accounts directory with your data download credentials (for contents see here). If you have access to the RSMAES accounts repo, clone it into your $HOME directory

How to install Miami InSAR code

Create an ~/accounts directory with your data download credentials (for contents see here). If you have access to the U of Miami accounts repo clone it into your /home or $WORK2 directory using SSH protocol (you need to copy the public key from your machine to github).

git clone git@github.com:geodesymiami/accounts.git ~/accounts ;
  • Go to the area where you want to install the code:
cd $WORK2/code
  • Clone the repo, goto the minsar dirrectory and run the install scripts (including miniforge3 python). Work as user circleci. It will install into a minsar environment. On stampede3 work on the development queue (idevdev):
git clone git@github.com:geodesymiami/minsar.git ;
cd minsar
env -i HOME=$HOME PATH=/usr/bin:/bin:/sbin SHELL=/bin/bash SCRATCH=$SCRATCH USER=circleci bash --noprofile --norc
set -eo pipefail
./setup/install_python.bash
./setup/install_minsar.bash
./setup/install_credential_files.bash
./setup/setup_orbit_dirs.bash

The install_python.bash command is here and install_minsar.bash is here and install_credential_files.bash is here. On Mac, as some packages are not available from conda-forge (isce2, pymaxflow) a minsar_env_MacOS.yml is created and used.


Test your installation

cd $SCRATCHDIR
wget http://149.165.154.65/data/circleci/ci_small_unittestGalapagosSenDT128.tar
tar xvf ci_small_unittestGalapagosSenDT128.tar
minsarApp.bash $SAMPLESDIR/circleci/ci_unittestGalapagosSenDT128.template --start dem

How not to loose your working installation

You can't be sure the new installation works until you have tested it. It is recommended to keep a copy of the working installation, for example, instead of removing minsar do mv minsar good_minsar. I have old versions in code_old, code_veryold directories which can be used in the case of unexpected problems.

#Orbits and aux files

This has created directories for the orbits for Sentinel-1 ($SENTINEL_ORBITS), which The can be downloaded using dloadOrbits.py. The IPF calibration files (SENTINEL_AUX) are downloaded from: https://qc.sentinel1.eo.esa.int/aux_cal/ .

#Keep copys in the case your $SCRATCHDIR gets purged

The $SENTINEL_ORBITS and miniconda3.tar are located on $SCRATCHDIR which gets purged every couple of weeks. minsarApp.bash uses $MINSAR_HOME/tools/miniconda3.tarand $WORKDIR/S1orbits.tar if files have been purged.

Next steps and possible problems

  • To check your installation, run the testdata as explained here. You need to have the testdata in your $TESTDATA_ISCE directory.
ls  $TESTDATA_ISCE
unittestGalapagosSenDT128  unittestKrakatoaSenAT171

ll $TESTDATA_ISCE/unittestGalapagosSenDT128/SLC/
total 17528848
-rw-rw--w-+ 1 famelung insarlab        782 Jan 17 17:10 files.csv
-rw-rw--w-+ 1 famelung insarlab        644 Jan 17 17:13 log
-rw-rw--w-+ 1 famelung insarlab        777 Jan 17 17:10 new_files.csv
-rw-rw-rw-+ 1 famelung insarlab 2382498740 Jan 17 17:08 S1A_IW_SLC__1SSV_20160605T114943_20160605T115018_011575_011AEF_98EA.zip
-rw-rw-rw-+ 1 famelung insarlab 2596328889 Jan 17 17:10 S1A_IW_SLC__1SSV_20160629T114944_20160629T115019_011925_0125EE_41E2.zip
-rw-rw-rw-+ 1 famelung insarlab 2538509057 Jan 17 17:08 S1A_IW_SLC__1SSV_20160711T114945_20160711T115020_012100_012BB7_AD1C.zip
-rw-rw-rw-+ 1 famelung insarlab 2658073568 Jan 17 17:08 S1A_IW_SLC__1SSV_20160723T114945_20160723T115021_012275_01315B_4BF1.zip
-rw-rw-rw-+ 1 famelung insarlab 2619635729 Jan 17 17:09 S1A_IW_SLC__1SSV_20160804T114946_20160804T115022_012450_01372F_C4E2.zip
-rw-rw-rw-+ 1 famelung insarlab 2576452600 Jan 17 17:09 S1A_IW_SLC__1SSV_20160816T114947_20160816T115022_012625_013CEA_AD2C.zip
-rw-rw-rw-+ 1 famelung insarlab 2578011015 Jan 17 17:09 S1A_IW_SLC__1SSV_20160828T114947_20160828T115023_012800_0142DE_D868.zip
drwxrws-w-+ 2 famelung insarlab       4096 Jan 17 16:58 test
//login4/nethome/dwg11/insarlab/TESTDATA_ISCE[59]
  • For possible problems, check here.