# UAVSAR Stack processing - ISCE2 :airplane: * :notebook: This binnacle gives us the steps to follow to built the UAVSAR interferograms stack in ISCE2. ## Prepare working directory :construction_worker: > Working directory ```javascript=python /local3/nacho/UAVSAR/Salton/26515/S02_proc ``` ## Download UAVSAR SLC files. :arrow_down: ```javascript=python !mkdir SLCd ``` ```javascript=python cd SLCd/ ``` * :notebook: Downloaded images are cointained in `SLCd`: *.slc* and *.ann* files. Create :new: directory ```javascript=python !mkdir SLC ``` ```javascript=python !mv salton* ./SLCd ``` Move the dop file contained in /SLCd/ to the working directory: ```javascript=python !mv ./SLCd/*.dop . ``` * :notebook: `S02_proc/` content: ```javascript=python ls ``` ```javascript=python SLC/ SLCd/ salton_26515_02_BC.dop ``` ## ISCE Processing (*prepareUAVSAR*) :computer: ```javascript=Python # !prepareUAVSARcoregStack.py -h !prepareUAVSAR_coregStack.py -i ./SLCd/ -o ./SLC/ -d salton_26515_02_BC.dop -s 2 ``` * :notebook: Some directory setup needs to be done before we can run `stackStripMap.py` ```javascript=python ls ``` ```javascript=python SLC/ SLCd/ dop.txt isce.log salton_26515_02_BC.dop ``` Create :new: directory ```javascript=python !mkdir merged ``` ```javascript=python cd merged ``` */local3/nacho/UAVSAR/Salton/26515/S02proc/merged/* ```javascript=python !ln -s ../SLC ``` ```javascript=python cd .. ``` ```javascript=python Link /*DEM/*to working directory ``` */local3/nacho/UAVSAR/Salton/26515/S02proc/* ## Run `stackStripMap.py` :computer: ```javascript=python # !stackStripMap.py -h !stackStripMap.py -s SLC/ -d ./DEM/dem*.dem.wgs84 -a 8 -r 2 -W interferogram --nofocus -S uavsar_stack -t 550 --filter_strength 0.2 ``` * :notebook: After running `stackStripMap.py` a directory named `run_files` is created. ### Execute run files :computer: ```javascript=python ls run_files ``` ```javascript=python run_01_reference run_05_invertMisreg run_01_reference.job run_05_invertMisreg.job run_02_focus_split run_06_fineResamp run_02_focus_split.job run_06_fineResamp.job run_03_geo2rdr_coarseResamp run_07_grid_baseline run_03_geo2rdr_coarseResamp.job run_07_grid_baseline.job run_04_refineSecondaryTiming run_08_igram run_04_refineSecondaryTiming.job run_08_igram.job ``` * :notebook: To execute the Run Files is necessary to use `run.py`. For **UAVSAR** data only steps **1** and **8** need to be run (coregister DEM and create interferograms). ```javascript=python # !run.py -h ``` ```javascript=python # !run.py -i ./run_files/run_01_reference ``` Processing time will depend on the amount of data. Nonetheless, this is not a long process. ```javascript=python # !run.py -i ./run_files/run_08_igram -p 1 ``` This process will take on average from 50 to 60 minutes per interferogram. The final stack is created on `./Igrams` directory: */local3/nacho/UAVSAR/Salton/26515/S02proc/Igrams/* * :notebook: Finally, we obtained the UAVSAR stack. This whole process must be performed to every segment of each UAVSAR flight line. Read the log files, if generated, to see the complet process per step. [Reference](https://github.com/forrestfwilliams/UAVSAR_InSAR/blob/main/.ipynb_checkpoints/interferogram_processing-checkpoint.ipynb) > [TOC]