diff --git a/methods/coseismic/Coseismic_Requirement_Validation.ipynb b/methods/coseismic/Coseismic_Requirement_Validation.ipynb
index dc4c4a4..d990640 100644
--- a/methods/coseismic/Coseismic_Requirement_Validation.ipynb
+++ b/methods/coseismic/Coseismic_Requirement_Validation.ipynb
@@ -146,7 +146,7 @@
"dataset = \"ARIA_S1_new\" # Dataset type: 'ARIA_S1', 'ARIA_S1_new'\n",
"aria_gunw_version = \"3_0_1\"\n",
"\n",
- "rundate = \"20250512\" # Date of this Cal/Val run\n",
+ "rundate = \"20250820\" # Date of this Cal/Val run\n",
"version = \"1\" # Version of this Cal/Val run\n",
"custom_sites = \"/home/jovyan/my_sites.txt\" # Path to custom site metadata\n",
"\n",
@@ -198,6 +198,11 @@
"mintpy_dir = os.path.join(work_dir, \"MintPy\")\n",
"weather_dir = os.path.join(site_dir)\n",
"\n",
+ "# === Home directory for saving reports ===\n",
+ "home_dir = os.path.join(\"/home/jovyan/validation/\", site, requirement, rundate, f\"v{version}\")\n",
+ "if not os.path.exists(home_dir):\n",
+ " os.makedirs(home_dir)\n",
+ "\n",
"# === Log Directory Paths ===\n",
"print(f\" Work directory: {work_dir}\")\n",
"print(f\" GUNW directory: {gunw_dir}\")\n",
@@ -211,12 +216,12 @@
"else:\n",
" os.chdir(mintpy_dir)\n",
"\n",
- " # === Set Expected MintPy Filenames ===\n",
- " geom_file = os.path.join(mintpy_dir, \"inputs\", \"geometryGeo.h5\")\n",
- " msk_file = os.path.join(mintpy_dir, \"maskTempCoh.h5\") # alt: maskConnComp.h5\n",
- " ts_file = os.path.join(mintpy_dir, \"timeseries.h5\")\n",
- " vel_file = os.path.join(mintpy_dir, \"velocity.h5\")\n",
- " config_file = os.path.join(mintpy_dir, site_info.get('calval_location') + '.cfg')"
+ "# === Set Expected MintPy Filenames ===\n",
+ "geom_file = os.path.join(mintpy_dir, \"inputs\", \"geometryGeo.h5\")\n",
+ "msk_file = os.path.join(mintpy_dir, \"maskTempCoh.h5\") # alt: maskConnComp.h5\n",
+ "ts_file = os.path.join(mintpy_dir, \"timeseries.h5\")\n",
+ "vel_file = os.path.join(mintpy_dir, \"velocity.h5\")\n",
+ "config_file = os.path.join(mintpy_dir, site_info.get('calval_location') + '.cfg')"
]
},
{
@@ -1487,6 +1492,10 @@
" 'validation_table': validation_table_method1,\n",
" 'ts_functions': ts_functions,\n",
"}\n",
+ "save_results(**save_params)\n",
+ "\n",
+ "# Save the report in the home directory as well\n",
+ "save_params['save_dir'] = home_dir\n",
"save_results(**save_params)"
]
},
@@ -1784,6 +1793,10 @@
" 'validation_table': validation_table_method2,\n",
" 'ts_functions': ts_functions,\n",
"}\n",
+ "save_results(**save_params)\n",
+ "\n",
+ "# Save the report in the home directory as well\n",
+ "save_params['save_dir'] = home_dir\n",
"save_results(**save_params)"
]
},
diff --git a/methods/secular/Secular_Requirement_Validation.ipynb b/methods/secular/Secular_Requirement_Validation.ipynb
index 923adc3..6257a6d 100644
--- a/methods/secular/Secular_Requirement_Validation.ipynb
+++ b/methods/secular/Secular_Requirement_Validation.ipynb
@@ -149,7 +149,7 @@
"dataset = \"ARIA_S1_new\" # Dataset type: 'ARIA_S1', 'ARIA_S1_new'\n",
"aria_gunw_version = \"3_0_1\"\n",
"\n",
- "rundate = \"20250602\" # Date of this Cal/Val run\n",
+ "rundate = \"20250820\" # Date of this Cal/Val run\n",
"version = \"1\" # Version of this Cal/Val run\n",
"custom_sites = \"/home/jovyan/my_sites.txt\" # Path to custom site metadata\n",
"\n",
@@ -204,6 +204,11 @@
"mintpy_dir = os.path.join(work_dir, \"MintPy\")\n",
"weather_dir = os.path.join(site_dir)\n",
"\n",
+ "# === Home directory for saving reports ===\n",
+ "home_dir = os.path.join(\"/home/jovyan/validation/\", site, requirement, rundate, f\"v{version}\")\n",
+ "if not os.path.exists(home_dir):\n",
+ " os.makedirs(home_dir)\n",
+ "\n",
"# === Log Directory Paths ===\n",
"print(f\" Work directory: {work_dir}\")\n",
"print(f\" GUNW directory: {gunw_dir}\")\n",
@@ -217,12 +222,12 @@
"else:\n",
" os.chdir(mintpy_dir)\n",
"\n",
- " # === Set Expected MintPy Filenames ===\n",
- " geom_file = os.path.join(mintpy_dir, \"inputs\", \"geometryGeo.h5\")\n",
- " msk_file = os.path.join(mintpy_dir, \"maskTempCoh.h5\") # alt: maskConnComp.h5\n",
- " ts_file = os.path.join(mintpy_dir, \"timeseries.h5\")\n",
- " vel_file = os.path.join(mintpy_dir, \"velocity.h5\")\n",
- " config_file = os.path.join(mintpy_dir, site_info.get('calval_location') + '.cfg')"
+ "# === Set Expected MintPy Filenames ===\n",
+ "geom_file = os.path.join(mintpy_dir, \"inputs\", \"geometryGeo.h5\")\n",
+ "msk_file = os.path.join(mintpy_dir, \"maskTempCoh.h5\") # alt: maskConnComp.h5\n",
+ "ts_file = os.path.join(mintpy_dir, \"timeseries.h5\")\n",
+ "vel_file = os.path.join(mintpy_dir, \"velocity.h5\")\n",
+ "config_file = os.path.join(mintpy_dir, site_info.get('calval_location') + '.cfg')"
]
},
{
@@ -517,7 +522,7 @@
" \"-c\", cmap_str,\n",
" \"-u\", \"mm\",\n",
" \"-v\", str(vmin), str(vmax),\n",
- " \"--title\", velocity_filename.split('/')[-1],\n",
+ " \"--title\", 'Velocity after correction for SET',\n",
" \"--noverbose\"\n",
" ]\n",
" view.main(view_opts)\n",
@@ -626,6 +631,10 @@
"source": [
"# Visualize velocity\n",
"if site_info.get('do_iono') != \"False\":\n",
+ " \n",
+ " if site_info.get('do_SET') != \"False\":\n",
+ " titlestr = 'Velocity after correcting for SET and iono'\n",
+ " \n",
" view_opts = [\n",
" velocity_filename, \"velocity\",\n",
" \"-m\", msk_file,\n",
@@ -637,7 +646,7 @@
" \"-c\", cmap_str,\n",
" \"-u\", \"mm\",\n",
" \"-v\", str(vmin), str(vmax),\n",
- " \"--title\", velocity_filename.split('/')[-1],\n",
+ " \"--title\", titlestr,\n",
" \"--noverbose\"\n",
" ]\n",
" view.main(view_opts)\n",
@@ -745,6 +754,13 @@
"source": [
"# Visualize velocity\n",
"if site_info.get('do_tropo') != \"False\":\n",
+ " if site_info.get('do_iono') == \"True\" and site_info.get('do_SET') == \"True\":\n",
+ " titlestr = 'Velocity after correcting for SET, iono, and tropo'\n",
+ " elif site_info.get('do_iono') == \"True\":\n",
+ " titlestr = 'Velocity after correcting for iono and tropo'\n",
+ " elif site_info.get('do_SET') == \"True\":\n",
+ " titlestr = 'Velocity after correcting for SET and tropo'\n",
+ " \n",
" view_opts = [\n",
" velocity_filename, \"velocity\",\n",
" \"-m\", msk_file,\n",
@@ -756,7 +772,7 @@
" \"-c\", cmap_str,\n",
" \"-u\", \"mm\",\n",
" \"-v\", str(vmin), str(vmax),\n",
- " \"--title\", velocity_filename.split('/')[-1],\n",
+ " \"--title\", titlestr,\n",
" \"--noverbose\"\n",
" ]\n",
" view.main(view_opts)\n",
@@ -1534,6 +1550,10 @@
" 'validation_table': validation_table_method1,\n",
" 'ts_functions': ts_functions,\n",
"}\n",
+ "save_results(**save_params)\n",
+ "\n",
+ "# Save the report in the home directory as well\n",
+ "save_params['save_dir'] = home_dir\n",
"save_results(**save_params)"
]
},
@@ -1714,6 +1734,10 @@
" 'validation_table': validation_table_method2,\n",
" 'ts_functions': ts_functions,\n",
"}\n",
+ "save_results(**save_params)\n",
+ "\n",
+ "# Save the report in the home directory as well\n",
+ "save_params['save_dir'] = home_dir\n",
"save_results(**save_params)"
]
},
diff --git a/methods/transient/Transient_Requirement_Validation.ipynb b/methods/transient/Transient_Requirement_Validation.ipynb
index 3a66661..9352e97 100644
--- a/methods/transient/Transient_Requirement_Validation.ipynb
+++ b/methods/transient/Transient_Requirement_Validation.ipynb
@@ -37,8 +37,9 @@
"[**1. Download and Prepare Interferograms**](#prep_ifg)\n",
"[Executed in ARIA_prep]\n",
"\n",
- "[**2. Generate Interferogram Stack**](#transient_gen_ifg)\n",
+ "[**2. Selection of Interferograms**](#transient_select_ifg)\n",
"- [2.1. Validate/Modify Interferogram Network](#transient_crop_ifg)\n",
+ "- [2.2. Modify Reference Point](#transient_ref_pt)\n",
"\n",
"[**3. Optional Corrections**](#opt_correction)\n",
"- [3.1. Solid Earth Tide Correction](#solid_earth)\n",
@@ -116,6 +117,7 @@
"from solid_utils.sampling import load_geo, samp_pair\n",
"from solid_utils.plotting import display_validation_table, \\\n",
" display_coseismic_validation as display_transient_validation\n",
+ "from solid_utils.configs import update_reference_point\n",
"from solid_utils.corrections import run_cmd, pairwise_stack_from_timeseries\n",
"from solid_utils.saving import save_results"
]
@@ -141,7 +143,7 @@
"dataset = 'ARIA_S1_new' # For Sentinel-1 testing with aria-tools\n",
"aria_gunw_version = \"3_0_1\"\n",
"\n",
- "rundate = \"20240909\" # Date of this Cal/Val run\n",
+ "rundate = \"20250820\" # Date of this Cal/Val run\n",
"version = \"1\" # Version of this Cal/Val run\n",
"custom_sites = \"/home/jovyan/my_sites.txt\" # Path to custom site metadata\n",
"\n",
@@ -193,6 +195,11 @@
"mintpy_dir = os.path.join(work_dir, \"MintPy\")\n",
"weather_dir = os.path.join(site_dir)\n",
"\n",
+ "# === Home directory for saving reports ===\n",
+ "home_dir = os.path.join(\"/home/jovyan/validation/\", site, requirement, rundate, f\"v{version}\")\n",
+ "if not os.path.exists(home_dir):\n",
+ " os.makedirs(home_dir)\n",
+ "\n",
"# === Log Directory Paths ===\n",
"print(f\" Work directory: {work_dir}\")\n",
"print(f\" GUNW directory: {gunw_dir}\")\n",
@@ -206,16 +213,19 @@
"else:\n",
" os.chdir(mintpy_dir)\n",
"\n",
- " # === Set Expected MintPy Filenames ===\n",
- " ifgs_file = os.path.join(mintpy_dir, \"inputs/ifgramStack.h5\")\n",
- " geom_file = os.path.join(mintpy_dir, \"inputs\", \"geometryGeo.h5\")\n",
- " config_file = os.path.join(mintpy_dir, site_info.get('calval_location') + '.cfg')"
+ "# === Set Expected MintPy Filenames ===\n",
+ "ifgs_file = os.path.join(mintpy_dir, \"inputs/ifgramStack.h5\")\n",
+ "geom_file = os.path.join(mintpy_dir, \"inputs\", \"geometryGeo.h5\")\n",
+ "msk_file = os.path.join(work_dir, \"mask\", \"esa_world_cover_2021.msk\")\n",
+ "config_file = os.path.join(mintpy_dir, site_info.get('calval_location') + '.cfg')"
]
},
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "scrolled": true
+ },
"outputs": [],
"source": [
"configs = readfile.read_template(config_file)\n",
@@ -243,8 +253,8 @@
"
\n",
"