diff --git a/smallbaselineApp_aria.ipynb b/smallbaselineApp_aria.ipynb index 8149296..0d46d01 100644 --- a/smallbaselineApp_aria.ipynb +++ b/smallbaselineApp_aria.ipynb @@ -25,7 +25,7 @@ "\n", "References: The detailed algorithms implemented in MintPy can be found in the following manuscript: \n", "\n", - "+ Yunjun, Z., H. Fattahi, F. Amelung (2019), Small baseline InSAR time series analysis: Unwrapping error correction and noise reduction, Computers & Geosciences, 133, 104331, doi:[10.1016/j.cageo.2019.104331](https://doi.org/10.1016/j.cageo.2019.104331), [ArXiv](https://eartharxiv.org/9sz6m/)." + "+ Yunjun, Z., H. Fattahi, F. Amelung (2019), Small baseline InSAR time series analysis: Unwrapping error correction and noise reduction, _Computers & Geosciences, 133,_ 104331, doi:[10.1016/j.cageo.2019.104331](https://doi.org/10.1016/j.cageo.2019.104331), [ArXiv](https://eartharxiv.org/9sz6m/)." ] }, { @@ -48,11 +48,19 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 4, "metadata": { "hidden": true }, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Go to work directory: /Users/yunjunz/data/SanAndreas/SanFranSenDT42\n" + ] + } + ], "source": [ "%matplotlib inline\n", "import os\n", @@ -61,13 +69,7 @@ "from mintpy import view, tsview, plot_network, plot_transection, plot_coherence_matrix\n", "\n", "# define the work directory\n", - "work_dir = os.path.abspath(os.getcwd())\n", - "\n", - "#The Path to the folder where ARIA data after running ariaTSsetup.py is stored\n", - "aria_dir = os.path.join(os.getenv(\"HOME\"),'work/04_ariaTSprep')\n", - "\n", - "print(\"Work directory: \", work_dir)\n", - "print(\"The path to the directory with ARIA data after running ariaTSsetup:\", aria_dir)\n", + "work_dir = os.path.join(os.getenv(\"HOME\"),'data/SanAndreas/SanFranSenDT42')\n", "\n", "if not os.path.isdir(work_dir):\n", " os.makedirs(work_dir)\n", @@ -98,7 +100,14 @@ "* correcting unwrapping errors and inverting for the raw phase time-series (blue ovals),\n", "* correcting for noise from different sources to obtain the displacement time-series (green ovals).\n", "\n", - "Some steps are optional, which are switched off by default (marked by dashed boundaries). Configuration parameters for each step are initiated with default values in a customizable text file: [smallbaselineApp.cfg](https://github.com/insarlab/MintPy/blob/master/mintpy/defaults/smallbaselineApp.cfg). In this notebook, we will walk through the various steps." + "Some steps are optional, which are switched off by default (marked by dashed boundaries). Configuration parameters for each step are initiated with default values in a customizable text file: [smallbaselineApp.cfg](https://github.com/insarlab/MintPy/blob/master/mintpy/defaults/smallbaselineApp.cfg). In this notebook, we will walk through the various steps.\n", + "\n", + "
\n",
+ "
\n",
+ "
\n", + " (Figure from Yunjun et al., 2019)\n", + "
" ] }, { @@ -121,11 +130,73 @@ }, { "cell_type": "code", - "execution_count": null, - "metadata": { - "hidden": true - }, - "outputs": [], + "execution_count": 5, + "metadata": { + "hidden": true + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "usage: smallbaselineApp.py [-h] [--dir WORKDIR] [-g] [-H] [-v] [--noplot]\r\n", + " [--start STEP] [--end STEP] [--dostep STEP]\r\n", + " [customTemplateFile]\r\n", + "\r\n", + "Routine Time Series Analysis for Small Baseline InSAR Stack\r\n", + "\r\n", + "positional arguments:\r\n", + " customTemplateFile custom template with option settings.\r\n", + " ignored if the default smallbaselineApp.cfg is input.\r\n", + "\r\n", + "optional arguments:\r\n", + " -h, --help show this help message and exit\r\n", + " --dir WORKDIR specify custom working directory. The default is:\r\n", + " a) current directory, OR\r\n", + " b) $SCRATCHDIR/$projectName/mintpy, if:\r\n", + " 1) autoPath == True in $MINTPY_HOME/mintpy/defaults/auto_path.py AND\r\n", + " 2) environment variable $SCRATCHDIR exists AND\r\n", + " 3) customTemplateFile is specified (projectName.*)\r\n", + " -g generate default template (if it does not exist) and exit.\r\n", + " -H print the default template file and exit.\r\n", + " -v, --version print software version and exit\r\n", + " --noplot do not plot results at the end of the processing.\r\n", + "\r\n", + "steps processing (start/end/dostep):\r\n", + " Command line options for steps processing with names are chosen from the following list:\r\n", + " \r\n", + " ['load_data', 'modify_network', 'reference_point', 'correct_unwrap_error', 'stack_interferograms']\r\n", + " ['invert_network', 'correct_LOD', 'correct_troposphere', 'deramp', 'correct_topography']\r\n", + " ['residual_RMS', 'reference_date', 'velocity', 'geocode', 'google_earth', 'hdfeos5']\r\n", + " \r\n", + " In order to use either --start or --dostep, it is necessary that a\r\n", + " previous run was done using one of the steps options to process at least\r\n", + " through the step immediately preceding the starting step of the current run.\r\n", + "\r\n", + " --start STEP start processing at the named step (default: load_data).\r\n", + " --end STEP, --stop STEP\r\n", + " end processing at the named step (default: hdfeos5)\r\n", + " --dostep STEP run processing at the named step only\r\n", + "\r\n", + "reference:\r\n", + " Yunjun, Z., H. Fattahi, and F. Amelung (2019), Small baseline InSAR time series analysis: \r\n", + " Unwrapping error correction and noise reduction, Computers & Geosciences, 133, 104331,\r\n", + " doi:10.1016/j.cageo.2019.104331.\r\n", + "\r\n", + "example:\r\n", + " smallbaselineApp.py #run with default template 'smallbaselineApp.cfg'\r\n", + " smallbaselineApp.py