Skip to content

Commit

Permalink
reformatted with black
Browse files Browse the repository at this point in the history
  • Loading branch information
megha-devaraju committed Aug 16, 2023
1 parent a4fbc84 commit 9420712
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions sentinelhub/ice_monitoring.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,8 @@
"\n",
"for idx, image in enumerate(data):\n",
" histogram, bin_edges = np.histogram(\n",
" 2.5 * image[:, :, 0], \n",
" bins=50, \n",
" range=(0.0000001, 1)\n",
" )\n",
" 2.5 * image[:, :, 0], bins=50, range=(0.0000001, 1)\n",
" )\n",
" ax = axs[idx // ncols][idx % ncols]\n",
" ax.plot(bin_edges[0:-1], histogram)\n",
" ax.set_xlabel(\"VV value\")\n",
Expand Down Expand Up @@ -500,12 +498,11 @@
"outputs": [],
"source": [
"def count_ice_pixels(image):\n",
"\n",
" ice_mask = image[:, :, 4]\n",
"\n",
" # Count the number of blue pixels\n",
" ice_pixel_count = np.sum(ice_mask)\n",
" \n",
"\n",
" # print(ice_pixel_count)\n",
"\n",
" return ice_pixel_count"
Expand Down

0 comments on commit 9420712

Please sign in to comment.