Skip to content

Commit

Permalink
Merge pull request #4 from ASFOpenSARlab/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Alex-Lewandowski authored Apr 5, 2024
2 parents 7937b4a + 48f1836 commit d5b50ad
Show file tree
Hide file tree
Showing 12 changed files with 236 additions and 3,348 deletions.
3 changes: 2 additions & 1 deletion 2_CDS_Access.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"metadata": {},
"outputs": [],
"source": [
"from getpass import getpass\n",
"from pathlib import Path\n",
"\n",
"import opensarlab_lib as osl"
Expand Down Expand Up @@ -119,7 +120,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:.local-opensarlab_mintpy_recipe_book]",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "conda-env-.local-opensarlab_mintpy_recipe_book-py"
},
Expand Down
4 changes: 2 additions & 2 deletions 3_Access_HyP3_Data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
" except:\n",
" raise\n",
"else:\n",
" path = Path.cwd()\n",
" path = Path.home()\n",
" fc = FileChooser(path)\n",
" display(fc)"
]
Expand Down Expand Up @@ -664,7 +664,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:.local-opensarlab_mintpy_recipe_book]",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "conda-env-.local-opensarlab_mintpy_recipe_book-py"
},
Expand Down
29 changes: 20 additions & 9 deletions Error_Analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,17 @@
"\n",
"scp_args = f\"{mint_path}/velocity.h5 velocity -v {vmin} {vmax} --show-gps --ref-gps {gps_station.value} --gps-comp enu2los --gps-label --figsize 9 9\"\n",
"with osl.work_dir(mint_path):\n",
" view.main(scp_args.split())"
" try:\n",
" view.main(scp_args.split())\n",
" except IndexError:\n",
" raise Exception(\n",
" (\"\"\"\n",
" IndexError: Likely caused by data in more than one UTM.\n",
" MintPy's view.main --show-gps option currently only supports datasets that fall in a single UTM zone. \n",
" Many Sentinel-1 scenes fall across multiple UTM zones and are projected to the predominantly covered zone. \n",
" There is currently an assumption in the code that all lat/lon coordinates in the scene will be projected to the same CRS when using utm.from_latlon, which is not always the case.\n",
" \"\"\")\n",
" )"
]
},
{
Expand All @@ -298,13 +308,14 @@
"gps_enu2los_path = mint_path / 'gps_enu2los.csv'\n",
"vel_path = mint_path / 'velocity.h5'\n",
"msk_path = mint_path / 'maskTempCoh.h5'\n",
"pp.plot_insar_vs_gps_scatter(\n",
" vel_path,\n",
" ref_gps_site=gps_station.value,\n",
" csv_file=gps_enu2los_path,\n",
" msk_file=msk_path,\n",
" # vlim=[-2.5, 2], # option to prune sites that fall outside of a value range (cm)\n",
")"
"with osl.work_dir(plot_path):\n",
" pp.plot_insar_vs_gps_scatter(\n",
" vel_path,\n",
" ref_gps_site=gps_station.value,\n",
" csv_file=gps_enu2los_path,\n",
" msk_file=msk_path,\n",
" # vlim=[-2.5, 2], # option to prune sites that fall outside of a value range (cm)\n",
" )"
]
},
{
Expand All @@ -318,7 +329,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:.local-opensarlab_mintpy_recipe_book]",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "conda-env-.local-opensarlab_mintpy_recipe_book-py"
},
Expand Down
Loading

0 comments on commit d5b50ad

Please sign in to comment.