Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed Dec 23, 2024
1 parent fa55cc6 commit bc68805
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notebooks/wp5/insitu_gruan_reference_network.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
" if (profile[\"altitude\"].diff(\"altitude\") > 2_000).any():\n",
" continue\n",
"\n",
" profile = profile.interp(altitude=range(50, 30001, 50))\n",
" profile = profile.interp(altitude=range(50, 30_001, 50))\n",
" profiles.append(profile.expand_dims(time=[time]))\n",
"ds_profiles = xr.concat(profiles, \"time\")\n",
"\n",
Expand All @@ -172,7 +172,7 @@
"metadata": {},
"outputs": [],
"source": [
"plot_kwargs = {\"y\": \"altitude\", \"ylim\": [ds[\"altitude\"].min(), ds[\"altitude\"].max()]}\n",
"plot_kwargs = {\"y\": \"altitude\", \"ylim\": [0, ds[\"altitude\"].max()]}\n",
"for var, da in ds_profiles.data_vars.items():\n",
" da.plot(hue=\"time\", add_legend=False, **plot_kwargs)\n",
" mean = da.mean(\"time\", keep_attrs=True)\n",
Expand Down

0 comments on commit bc68805

Please sign in to comment.