Skip to content

Commit

Permalink
drop_vars
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed May 13, 2024
1 parent 675c8b2 commit 9bd6f66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notebooks/wp5/tropopause.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
" attrs = {\"long_name\": \"WMO Lapse-Rate Tropopause\", \"units\": \"km\"}\n",
"\n",
" # sort and drop\n",
" ds = ds.swap_dims(index=\"altitude\").drop(\"index\").sortby(\"altitude\")\n",
" ds = ds.swap_dims(index=\"altitude\").drop_vars(\"index\").sortby(\"altitude\")\n",
" ds = (\n",
" ds.where(ds[\"altitude\"].notnull())\n",
" .dropna(\"altitude\", how=\"any\")\n",
Expand Down

0 comments on commit 9bd6f66

Please sign in to comment.