Skip to content

Commit 200ee3d

Browse files
Quarto output
1 parent 00094cf commit 200ee3d

File tree

5 files changed

+9
-21
lines changed

5 files changed

+9
-21
lines changed

notebooks/courses/microwave-remote-sensing.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"# Microwave Remote Sensing\n",
99
"\n",
1010
"\n",
11-
"This course at the TU Wien teaches course, students are able to read, visualize and analyze Synthetic Aperture Radar (SAR) data. This will aid interpretation of SAR data based upon a physical understanding of sensing principles and the interaction of microwaves with natural objects.\n",
11+
"This course at the TU Wien teaches students to read, visualize and analyze Synthetic Aperture Radar (SAR) data. This will aid interpretation of SAR data based upon a physical understanding of sensing principles and the interaction of microwaves with natural objects.\n",
1212
"\n",
1313
":::{note}\n",
1414
"These notebooks contain interactive elements. The full interactive elements can only be viewed on Binder by clicking on the Binder badge or 🚀 button.\n",

notebooks/courses/microwave-remote-sensing.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,20 @@ dependencies:
77
- cmcrameri
88
- dask
99
- datashader
10-
- eomaps
1110
- folium
1211
- graphviz
1312
- holoviews
1413
- huggingface_hub
1514
- hvplot
1615
- intake
1716
- intake-xarray
18-
- ipywidgets
19-
- ipympl
2017
- jupyter
2118
- jupyter_bokeh
2219
- mamba
2320
- matplotlib
2421
- nodejs
25-
- netcdf4
2622
- numpy
2723
- odc-stac
28-
- pip
2924
- pyproj
3025
- pystac-client
3126
- python=3.11
@@ -35,8 +30,5 @@ dependencies:
3530
- scipy
3631
- seaborn
3732
- snaphu
38-
- stackstac
3933
- xarray
40-
- zarr
41-
- pip:
42-
- graphviz
34+
- zarr=2.18.4

notebooks/courses/microwave-remote-sensing/02_in_class_exercise.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"lonmin, lonmax = 16, 17\n",
6666
"bounds = (lonmin, latmin, lonmax, latmax)\n",
6767
"\n",
68-
"time_range = \"2022-01-01/2022-12-30\"\n",
68+
"time_range = \"2022-07-01/2022-07-31\"\n",
6969
"\n",
7070
"items = (\n",
7171
" pystac_client.Client.open(\"https://stac.eodc.eu/api/v1\")\n",

notebooks/courses/microwave-remote-sensing/03_in_class_exercise.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"source": [
5151
"url = \"https://huggingface.co/datasets/martinschobben/microwave-remote-sensing/resolve/main/microwave-remote-sensing.yml\"\n",
5252
"cat = intake.open_catalog(url)\n",
53-
"gtc_dc = cat.gtc.read()\n",
53+
"gtc_dc = cat.gtc.read().compute()\n",
5454
"gtc_dc"
5555
]
5656
},
@@ -157,7 +157,7 @@
157157
"metadata": {},
158158
"outputs": [],
159159
"source": [
160-
"coef_dc = cat.coef.read()\n",
160+
"coef_dc = cat.coef.read().compute()\n",
161161
"coef_dc.hvplot.image(x=\"x\", y=\"y\", robust=True, data_aspect=1, cmap=\"Greys_r\",\n",
162162
" groupby=\"band\", rasterize=True).\\\n",
163163
" opts(frame_height=600, framewise=False, aspect=\"equal\")"
@@ -223,7 +223,7 @@
223223
"metadata": {},
224224
"outputs": [],
225225
"source": [
226-
"rtc_dc = cat.rtc.read()\n",
226+
"rtc_dc = cat.rtc.read().compute()\n",
227227
"\n",
228228
"# add to existing cube\n",
229229
"rtc_dc = xr.concat([coef_dc, rtc_dc], dim=\"band\")\n",

notebooks/courses/microwave-remote-sensing/08_in_class_exercise.ipynb

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"val_range = dict(vmin=0, vmax=255, cmap=\"gray\")\n",
9797
"\n",
9898
"for i, ds in enumerate(datasets):\n",
99-
" im = abs(ds.vv).plot(ax=ax[i], add_colorbar=False, **val_range)\n",
99+
" im = ds.intensity.plot(ax=ax[i], add_colorbar=False, **val_range)\n",
100100
" ax[i].tick_params(axis=\"both\", which=\"major\")\n",
101101
"\n",
102102
"cbar = fig.colorbar(im, ax=ax, orientation=\"horizontal\", shrink=0.9, pad=0.2)\n",
@@ -120,18 +120,14 @@
120120
"outputs": [],
121121
"source": [
122122
"# Compute the intensity and phase from complex data\n",
123-
"intensity = abs(iw2_ds.vv)\n",
124-
"phase = xr.apply_ufunc(\n",
125-
" np.angle, iw2_ds.vv, dask=\"parallelized\", output_dtypes=[float]\n",
126-
")\n",
127123
"cmap_hls = sns.hls_palette(as_cmap=True)\n",
128124
"\n",
129125
"fig, axes = plt.subplots(1, 2, figsize=(15, 6))\n",
130126
"\n",
131-
"intensity.plot(ax=axes[0], cmap=\"gray\", robust=True)\n",
127+
"ds.intensity.plot(ax=axes[0], cmap=\"gray\", robust=True)\n",
132128
"axes[0].set_title(\"Intensity Measurement of IW2\")\n",
133129
"\n",
134-
"phase.plot(ax=axes[1], cmap=cmap_hls)\n",
130+
"ds.phase.plot(ax=axes[1], cmap=cmap_hls)\n",
135131
"axes[1].set_title(\"Phase Measurement of IW2\")\n",
136132
"\n",
137133
"plt.tight_layout()"

0 commit comments

Comments
 (0)