Skip to content

Commit

Permalink
make cloud thresh constants
Browse files Browse the repository at this point in the history
  • Loading branch information
lillythomas committed Mar 25, 2024
1 parent f8c062d commit 9f74332
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions docs/patch_level_cloud_cover.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,9 @@
" #print(f\"Chunk {key}: {value}\")\n",
"\n",
"# Print indices where cloud percentages exceed some interesting threshold\n",
"cloud_threshold = 50 \n",
"for key, value in cloud_pcts.items():\n",
" if value > 50:\n",
" if value > cloud_threshold:\n",
" print(f\"Chunk {key}: Cloud percentage = {value}\")\n",
"\n"
]
Expand Down Expand Up @@ -711,6 +712,16 @@
"Let's remind ourselves which patches have clouds in them."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "94607dbf-c61f-4ffe-b3d6-d18f26fdacf5",
"metadata": {},
"outputs": [],
"source": [
"cloud_threshold = 80"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -722,7 +733,7 @@
"# exceed some interesting threshold\n",
"cloudy_indices = []\n",
"for key, value in cloud_pcts.items():\n",
" if value > 80:\n",
" if value > cloud_threshold:\n",
" print(f\"Chunk {key}: Cloud percentage = {value}\")\n",
" cloudy_indices.append(key)"
]
Expand Down Expand Up @@ -755,6 +766,16 @@
"Now let's set up a filtered search for patches that have very little cloud coverage."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "7f000eec-6a74-4f51-8f88-eb5108dcb46a",
"metadata": {},
"outputs": [],
"source": [
"cloud_threshold = 10"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -768,7 +789,7 @@
"# do not exceed some interesting threshold\n",
"non_cloudy_indices = []\n",
"for key, value in cloud_pcts.items():\n",
" if value < 10:\n",
" if value < cloud_threshold:\n",
" #print(f\"Chunk {key}: Cloud percentage = {value}\")\n",
" non_cloudy_indices.append(key)"
]
Expand Down

0 comments on commit 9f74332

Please sign in to comment.