Skip to content

Commit a9ba67b

Browse files
committed
remove unused/commented out cells and edit visualization
1 parent 343c989 commit a9ba67b

File tree

1 file changed

+13
-55
lines changed

1 file changed

+13
-55
lines changed

methods/transient/Transient_Requirement_Validation.ipynb

Lines changed: 13 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@
145145
"dataset = \"NISAR\" # Dataset type: 'NISAR_sample', 'ARIA_S1', 'ARIA_S1_new'\n",
146146
"\n",
147147
"\n",
148-
"rundate = \"20260217\" # Date of this Cal/Val run\n",
149-
"version = \"2\" # Version of this Cal/Val run\n",
148+
"rundate = \"20260218\" # Date of this Cal/Val run\n",
149+
"version = \"1\" # Version of this Cal/Val run\n",
150150
"custom_sites = \"/home/jovyan/my_nisar_sites.txt\" # Path to custom site metadata\n",
151151
"\n",
152152
"# === Username Detection / Creation ===\n",
@@ -309,7 +309,9 @@
309309
{
310310
"cell_type": "code",
311311
"execution_count": null,
312-
"metadata": {},
312+
"metadata": {
313+
"scrolled": true
314+
},
313315
"outputs": [],
314316
"source": [
315317
"# Formulate ifgramStack file\n",
@@ -456,31 +458,6 @@
456458
" print(f\"{pair[0].strftime('%Y%m%d')}-{pair[1].strftime('%Y%m%d')}\")"
457459
]
458460
},
459-
{
460-
"cell_type": "markdown",
461-
"metadata": {},
462-
"source": [
463-
"### Load data to memory in case of single interferogram"
464-
]
465-
},
466-
{
467-
"cell_type": "code",
468-
"execution_count": null,
469-
"metadata": {
470-
"tags": []
471-
},
472-
"outputs": [],
473-
"source": [
474-
"# # Construct dataset-layer names as lists\n",
475-
"# coherenceName = [f\"coherence-{date[0].strftime('%Y%m%d')}_{date[1].strftime('%Y%m%d')}\"\n",
476-
"# for date in ifgs_date]\n",
477-
"# unwName = [f\"unwrapPhase-{date[0].strftime('%Y%m%d')}_{date[1].strftime('%Y%m%d')}\"\n",
478-
"# for date in ifgs_date]\n",
479-
"# # Read average filtered spatial coherence\n",
480-
"# insar_phase, _ = readfile.read(ifgs_file, datasetName=unwName)\n",
481-
"# insar_coherence, _ = readfile.read(ifgs_file, datasetName=coherenceName)"
482-
]
483-
},
484461
{
485462
"cell_type": "markdown",
486463
"metadata": {},
@@ -545,31 +522,6 @@
545522
" singleStack = False"
546523
]
547524
},
548-
{
549-
"cell_type": "code",
550-
"execution_count": null,
551-
"metadata": {},
552-
"outputs": [],
553-
"source": [
554-
"# # Construct dataset-layer names as lists\n",
555-
"# coherenceName = [f\"coherence-{date[0].strftime('%Y%m%d')}_{date[1].strftime('%Y%m%d')}\"\n",
556-
"# for date in ifgs_date]\n",
557-
"# unwName = [f\"unwrapPhase-{date[0].strftime('%Y%m%d')}_{date[1].strftime('%Y%m%d')}\"\n",
558-
"# for date in ifgs_date]\n",
559-
"# # Read average filtered spatial coherence\n",
560-
"# insar_phase, _ = readfile.read(ifgs_file, datasetName=unwName)\n",
561-
"# insar_coherence, _ = readfile.read(ifgs_file, datasetName=coherenceName)"
562-
]
563-
},
564-
{
565-
"cell_type": "code",
566-
"execution_count": null,
567-
"metadata": {},
568-
"outputs": [],
569-
"source": [
570-
"# plt.imshow(insar_phase, interpolation='nearest', cmap='RdBu')"
571-
]
572-
},
573525
{
574526
"cell_type": "markdown",
575527
"metadata": {},
@@ -834,7 +786,7 @@
834786
"if site_info.get('do_tropo') != \"False\":\n",
835787
" print('#'*10, 'Visualize tropospheric corrections', '#'*10)\n",
836788
" view_opts = [tropo_stack_file,\n",
837-
" '-c', 'RdBu_r',\n",
789+
" '-c', cmap_str,\n",
838790
" '-m', msk_file,\n",
839791
" '--noverbose',\n",
840792
" ]\n",
@@ -883,7 +835,13 @@
883835
"source": [
884836
"# Visualize the corrected interferograms\n",
885837
"if site_info.get('do_tropo') != \"False\":\n",
886-
" view.main([ifgs_file, '-c', 'RdBu_r', '-m', msk_file])\n",
838+
" print('#'*10, 'Visualize corrected interferograms', '#'*10)\n",
839+
" view_opts = [ifgs_file,\n",
840+
" '-c', cmap_str,\n",
841+
" '-m', msk_file,\n",
842+
" '--noverbose',\n",
843+
" ]\n",
844+
" view.main(view_opts)\n",
887845
"else: \n",
888846
" print('#'*10, 'Troposphere Correction set to False', '#'*10)"
889847
]

0 commit comments

Comments
 (0)