Skip to content

Commit

Permalink
fix missin age
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed Apr 11, 2024
1 parent 1321424 commit 3a4e6c9
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion notebooks/wp5/satellite_sea_ice_type.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
" conc_myi = ds_nersc[\"conc_2yi\"]\n",
" n = 3\n",
" while (varname := f\"conc_{n}yi\") in ds_nersc.variables:\n",
" conc_myi += ds_nersc[varname]\n",
" conc_myi += ds_nersc[varname].fillna(0)\n",
" n += 1\n",
"\n",
" if not use_fyi:\n",
Expand Down Expand Up @@ -491,6 +491,32 @@
" facet.fig.suptitle(f\"{use_ambiguous=}\")\n",
" plt.show()"
]
},
{
"cell_type": "markdown",
"id": "19",
"metadata": {},
"source": [
"## Plot bias"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "20",
"metadata": {},
"outputs": [],
"source": [
"with xr.set_options(keep_attrs=True):\n",
" bias = (ds_cds - ds_nersc)[\"percentage\"]\n",
"bias.attrs[\"long_name\"] = \"Bias of\" + bias.attrs[\"long_name\"]\n",
"for use_ambiguous, da in bias.groupby(\"use_ambiguous\", squeeze=False):\n",
" facet = plot_maps(\n",
" da, cmap=cmocean.cm.balance, center=0, coastline_color=\"k\", robust=True\n",
" )\n",
" facet.fig.suptitle(f\"CDS - NERSC; {use_ambiguous=}\")\n",
" plt.show()"
]
}
],
"metadata": {
Expand Down

0 comments on commit 3a4e6c9

Please sign in to comment.