Skip to content

Commit

Permalink
Add count to collection
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgleith committed Feb 2, 2024
1 parent fc2f5a2 commit b20ff13
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 20 deletions.
22 changes: 3 additions & 19 deletions collections/dep_s1_mosaic.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,25 +121,9 @@
"nodata": -32767
},
{
"name": "mean_vv_vh",
"common_name": "vv_vh Annual Mean",
"description": "vv_vh Annual Mean",
"min": 0,
"max": 100,
"nodata": -32767
},
{
"name": "median_vv_vh",
"common_name": "vv_vh Annual Median",
"description": "vv_vh Annual Median",
"min": 0,
"max": 100,
"nodata": -32767
},
{
"name": "std_vv_vh",
"common_name": "vv_vh Annual Standard Deviation",
"description": "vv_vh Annual Standard Deviation",
"name": "count",
"common_name": "Observation Count",
"description": "Observation Count",
"min": 0,
"max": 100,
"nodata": -32767
Expand Down
9 changes: 8 additions & 1 deletion dep_collections/dep_s1_mosaic.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,21 @@
TemporalExtent([[datetime(1980, 1, 1, 0, 0, 0, 0, timezone.utc), None]]),
)

BANDS = ["vh", "vv", "vv_vh"]
BANDS = ["vh", "vv"]
S1_MOSAIC_BANDS = []

for band in BANDS:
S1_MOSAIC_BANDS.append((f"mean_{band}", f"{band} Annual Mean"))
S1_MOSAIC_BANDS.append((f"median_{band}", f"{band} Annual Median"))
S1_MOSAIC_BANDS.append((f"std_{band}", f"{band} Annual Standard Deviation"))

S1_MOSAIC_BANDS.append(
(
"count",
"Observation Count",
)
)

# Create a Collection
dep_s1_mosaic = Collection(
id="dep_s1_mosaic",
Expand Down

0 comments on commit b20ff13

Please sign in to comment.