Skip to content

Commit

Permalink
Fixed config but in secular notebook and cleaned up aria prep (#64)
Browse files Browse the repository at this point in the history
katia-tymofyeyeva authored Sep 11, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 0782d4a commit 88f5eff
Showing 2 changed files with 1 addition and 33 deletions.
3 changes: 1 addition & 2 deletions methods/secular/Secular_Requirement_Validation.ipynb
Original file line number Diff line number Diff line change
@@ -266,10 +266,9 @@
},
"outputs": [],
"source": [
"config_file = os.path.join(mintpy_dir,site + '.cfg')\n",
"config_file = os.path.join(mintpy_dir, sitedata['sites'][site]['calval_location'] + '.cfg')\n",
"command = 'smallbaselineApp.py ' + str(config_file) + ' --dostep modify_network'\n",
"process = subprocess.run(command, shell=True)\n",
"\n",
"plot_network.main(['inputs/ifgramStack.h5'])"
]
},
31 changes: 0 additions & 31 deletions prep/ARIA_prep.ipynb
Original file line number Diff line number Diff line change
@@ -38,7 +38,6 @@
"- [1.2. Crop Interferograms](#prep_crop_ifg)\n",
"- [1.3. Set Up MintPy Configuration file](#prep_setup_config)\n",
"- [1.4. Load Data into MintPy](#prep_load_data)\n",
"- [1.5. Clean Up](#prep_clean_up)\n",
"\n",
"<hr/>"
]
@@ -450,36 +449,6 @@
"print('Mintpy input files:')\n",
"[x for x in os.listdir('inputs') if x.endswith('.h5')]"
]
},
{
"cell_type": "markdown",
"id": "7401afd1-f04e-4c25-b1aa-e78ab871dd1f",
"metadata": {},
"source": [
"### 1.5. Clean up <a id='prep_clean_up'></a>\n",
"\n",
"Remove downloaded files if desired"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "b5bb17d4-9f68-4721-b91d-36ef4fca2bda",
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"print('Now that you have successfully created the MintPy data cube, you may want to clean up the downloaded products')\n",
"cleanup = input('Please type \"Yes\" if you want to delete the files in the \"products\" directory:')\n",
"if cleanup == \"Yes\" or cleanup == \"YES\" or cleanup == \"yes\":\n",
" import shutil\n",
" shutil.rmtree(gunw_dir)\n",
"elif cleanup == \"No\" or cleanup == \"NO\" or cleanup == \"no\":\n",
" print('Keeping your downloaded files')\n",
"else: \n",
" print('ERROR: Please try again. Type \"Yes\" or \"No\"')"
]
}
],
"metadata": {

0 comments on commit 88f5eff

Please sign in to comment.