Skip to content

Commit

Permalink
Doing some pre commit cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dabail10 committed Sep 27, 2024
1 parent 79c98f2 commit 9df91bc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions examples/nblibrary/ice/seaice.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -643,8 +643,12 @@
"source": [
"print(ds1[\"aice\"])\n",
"\n",
"aice1_month = (\n"," ds1[\"aice\"][1535:1955, :, :].groupby(\"time.month\").mean(dim=\"time\", skipna=True)\n",")\n",
"aice2_month = (\n"," ds2[\"aice\"][923:1343, :, :].groupby(\"time.month\").mean(dim=\"time\", skipna=True)\n",")\n",
"aice1_month = (\n",
" ds1[\"aice\"][1535:1955, :, :].groupby(\"time.month\").mean(dim=\"time\", skipna=True)\n",
")\n",
"aice2_month = (\n",
" ds2[\"aice\"][923:1343, :, :].groupby(\"time.month\").mean(dim=\"time\", skipna=True)\n",
")\n",
"\n",
"mask_tmp1 = np.where(np.logical_and(aice1_month > 0.15, ds1[\"TLAT\"] > 0), 1.0, 0.0)\n",
"mask_tmp2 = np.where(np.logical_and(aice2_month > 0.15, ds1[\"TLAT\"] > 0), 1.0, 0.0)\n",
Expand Down

0 comments on commit 9df91bc

Please sign in to comment.