Skip to content

Commit

Permalink
Increment dep-tools with nodata fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgleith committed Jan 16, 2024
1 parent 2f18e4d commit e35e640
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 26 deletions.
47 changes: 22 additions & 25 deletions Test_GeoMAD_Landsat.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -41,29 +41,18 @@
"metadata": {},
"outputs": [],
"source": [
"# Issues\n",
"# region_code = \"66,19\" # BBOX is bad, baby\n",
"# region_code = \"46,31\" # Connection reset?\n",
"# Other failed nodes\n",
"region_code = 25,57\n",
"# 32,31\n",
"# 27,32\n",
"# 25,58\n",
"# 23,33\n",
"# 39,33\n",
"# 20,33\n",
"# 41,31\n",
"# 46,31\n",
"# 42,32\n",
"# 26,59\n",
"# 40,33\n",
"# 29,30\n",
"# 21,38\n",
"# 62,33\n",
"# 26,33\n",
"\n",
"# Study site configuration\n",
"region_code = \"66,19\"\n",
"\n",
"# Issues\n",
"# Cloudy island\n",
"# https://deppcpublicstorage.blob.core.windows.net/output/dep_ls_geomad/0-1-0/099/022/2023/dep_ls_geomad_099_022_2023.stac-item.json\n",
"region_code = \"99,22\"\n",
"# Noisy tile\n",
"# https://deppcpublicstorage.blob.core.windows.net/output/dep_ls_geomad/0-1-0/063/020/2023/dep_ls_geomad_063_020_2023.stac-item.json\n",
"region_code=\"63,20\"\n",
"\n",
"\n",
"datetime = \"2023\"\n",
"item_id = region_code\n",
"\n",
Expand All @@ -88,6 +77,7 @@
" fail_on_error=False,\n",
" resolution=30,\n",
" # bands=[\"qa_pixel\", \"red\", \"green\", \"blue\", \"nir08\", \"swir16\", \"swir22\"],\n",
" groupby=\"solar_day\",\n",
" bands=[\"qa_pixel\", \"red\", \"green\", \"blue\"]\n",
" ),\n",
" exclude_platforms=[\"landsat-7\"],\n",
Expand Down Expand Up @@ -131,9 +121,16 @@
"metadata": {},
"outputs": [],
"source": [
"# Do the processing, all in memory\n",
"loaded = output_data.compute()\n",
"loaded"
"output_data[[\"red\", \"green\", \"blue\"]].squeeze().to_array().plot.imshow(size=10, vmin=7000, vmax=10000)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"output_data[\"count\"].plot.imshow(size=10)"
]
},
{
Expand Down Expand Up @@ -241,7 +238,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.6"
"version": "3.10.12"
}
},
"nbformat": 4,
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
typer
git+https://github.com/digitalearthpacific/dep-tools.git@ffae75a
git+https://github.com/digitalearthpacific/dep-tools.git@05b13b2
git+https://github.com/opendatacube/odc-algo.git@57316a8
odc-stac==0.3.8

--no-binary gdal
--no-binary rasterio

0 comments on commit e35e640

Please sign in to comment.