|
145 | 145 | "dataset = \"NISAR\" # Dataset type: 'NISAR_sample', 'ARIA_S1', 'ARIA_S1_new'\n", |
146 | 146 | "\n", |
147 | 147 | "\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", |
150 | 150 | "custom_sites = \"/home/jovyan/my_nisar_sites.txt\" # Path to custom site metadata\n", |
151 | 151 | "\n", |
152 | 152 | "# === Username Detection / Creation ===\n", |
|
309 | 309 | { |
310 | 310 | "cell_type": "code", |
311 | 311 | "execution_count": null, |
312 | | - "metadata": {}, |
| 312 | + "metadata": { |
| 313 | + "scrolled": true |
| 314 | + }, |
313 | 315 | "outputs": [], |
314 | 316 | "source": [ |
315 | 317 | "# Formulate ifgramStack file\n", |
|
456 | 458 | " print(f\"{pair[0].strftime('%Y%m%d')}-{pair[1].strftime('%Y%m%d')}\")" |
457 | 459 | ] |
458 | 460 | }, |
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 | | - }, |
484 | 461 | { |
485 | 462 | "cell_type": "markdown", |
486 | 463 | "metadata": {}, |
|
545 | 522 | " singleStack = False" |
546 | 523 | ] |
547 | 524 | }, |
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 | | - }, |
573 | 525 | { |
574 | 526 | "cell_type": "markdown", |
575 | 527 | "metadata": {}, |
|
834 | 786 | "if site_info.get('do_tropo') != \"False\":\n", |
835 | 787 | " print('#'*10, 'Visualize tropospheric corrections', '#'*10)\n", |
836 | 788 | " view_opts = [tropo_stack_file,\n", |
837 | | - " '-c', 'RdBu_r',\n", |
| 789 | + " '-c', cmap_str,\n", |
838 | 790 | " '-m', msk_file,\n", |
839 | 791 | " '--noverbose',\n", |
840 | 792 | " ]\n", |
|
883 | 835 | "source": [ |
884 | 836 | "# Visualize the corrected interferograms\n", |
885 | 837 | "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", |
887 | 845 | "else: \n", |
888 | 846 | " print('#'*10, 'Troposphere Correction set to False', '#'*10)" |
889 | 847 | ] |
|
0 commit comments