Skip to content

Commit

Permalink
fix units
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed Apr 3, 2024
1 parent 27b32b8 commit 28474e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions notebooks/wp4/cmip6_sea_ice_thickness_evaluation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
"\n",
" # Compute output\n",
" dataarrays = {}\n",
" dataarrays[\"sithick_bias\"] = sit_diff.mean(dims)\n",
" dataarrays[\"sithick_bias\"] = sit_diff.mean(dim=dims)\n",
" dataarrays[\"sithick_bias\"].attrs = {\n",
" \"standard_name\": \"sea_ice_thickness_bias\",\n",
" \"units\": \"m\",\n",
Expand All @@ -187,10 +187,10 @@
" \"long_name\": \"Sea ice thickness root mean square error\",\n",
" }\n",
"\n",
" dataarrays[\"rms_sit_obs_error\"] = (sit_obs_err**2).mean(dims) ** (1 / 2)\n",
" dataarrays[\"rms_sit_obs_error\"] = (sit_obs_err**2).mean(dim=dims) ** (1 / 2)\n",
" dataarrays[\"rms_sit_obs_error\"].attrs = {\n",
" \"standard_name\": \"root_mean_square_sea_ice_thickness_observation_error\",\n",
" \"units\": \"%\",\n",
" \"units\": \"m\",\n",
" \"long_name\": \"Root mean square sea ice thickness observation error\",\n",
" }\n",
"\n",
Expand Down Expand Up @@ -280,7 +280,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.7"
"version": "3.11.8"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 28474e2

Please sign in to comment.