This package is for people who are processing SBAS InSAR data with MintPy from ASF Vertex. If these things mean nothing to you then this is probably not the best place to start.
- Docker image containing the relevant software
- Some basic scripts to link everything together
- Install docker and have it running on your computer.
- In Docker, pull the image we need with the command
docker pull benjym/insar:latest. This will take a long time the first time you do it (10-15 mins?). While this is running, do the following steps. - Clone this repository (or just download it as a zip file and unzip it if cloning sounds too hard).
- In the
loginsfolder, duplicate the filenetrc.copyand rename the new filenetrc. Register aturs.earthdata.nasa.govand put your login details (username and password) into the relevant locations in the filenetrc. - In the
loginsfolder, duplicate the filemodel.copyand rename the new filemodel.cfg. Create a new account on the CDS website if you don't have a user account yet. After activating your account use your new account to log in. Your user name will be show in the top right corner. You can now enter your user profile by clicking on your user name. On the profile you’ll find your user id (UID) and your personal API Key. Add the UID and key to themodel.cfgfile. You must then accept the license terms here. - (Optional, currently not necessary) In the
loginsfolder, duplicate the fileasf.copyand rename the new fileasf.ini. Register athttps://asf.alaska.edu/. Copy your login details (username and password) and put them into the relevant locations inasf.ini. - (Optional, currently not necessary) In the
loginsfolder, duplicate the fileecmwfand rename the new fileecmwfapirc. Register athttps://apps.ecmwf.int/registration/. Copy your login details (email address and this key) and put them into the relevant locations inecmwfapirc. After you have registered, you need to sign the agreement. Full instructions here. - Once the Docker image from step 2 is finished downloading, run that docker image as a container. Under
Optional Settings, put the path to the local version of this folder inHost pathand/home/work/in theContainer path. Also put8888as theLocal Host. This will open a terminal running linux that has all the necessary packages installed and ready to go. - (Optional) If you would like to check if the
model.cfgfile is working, you can test if this is working by runningpython scripts/test_ECMWF.pywhich will try to download some files.
-
Request and download processed InSAR products using
hyp3_sdkor via the ASF Vertex website. Full instructions are here.Note: You need to enable the sliders for "Include DEM" and "Include Inc. Angle Map" before submitting the job.
Once the data is processed, download it. Move the data you want to analyse into the
/home/work/data/hyp3/folder. This folder should contain one folder per granule, with the foldername the same as the granule ID, i.e. once you have unzipped the file, just drag the unzipped folder into theinterferogramsfolder. -
Clip the DEM and all interferograms to the same area by running
python scripts/trim.py. NOTE: This will trim every relevant tif file in all subfolders within/home/work/data/hyp3/to the same area, so make sure only files you want are in this folder and subfolders. -
Run MintPy with the command
smallbaselineApp.py data/mintpy/default.txt -
To view the timeseries data, run
./open_visualisations. This will start a web server that you can open in your browser. In the command line it will print some lines, one of which will be similar to:http://127.0.0.1:8888/lab?token=653782a1b156bb037fba6a30c3d345ae4f2ece536f01497b. Copy and paste this link into your browser to access the visualisations. To usetsview, open this file, then in the second code block replace~/work/FernandinaSenDT128/mintpywith/home/work/andtimeseries_ECMWF_ramp_demErr.h5with, for exampletimeseries_ERA5.h5.