Skip to content

Commit b9e9daf

Browse files
committed
v8 through 2025q4; update resources for msft processing
1 parent c700e08 commit b9e9daf

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

src/rra_building_density/constants.py

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ def name(self) -> str:
4242
class MicrosoftVersion(BuiltVersion):
4343
provider: Literal["microsoft"] = "microsoft"
4444
version: Literal[
45-
"v2", "v3", "v4", "v5", "v6", "v7", "v7_1", "v7_1_d", "v7_1_h", "water_mask"
45+
"v2", "v3", "v4", "v5", "v6", "v7", "v7_1", "v7_1_d", "v7_1_h", "v8", "water_mask"
4646
]
4747
bands: dict[str, int]
4848

4949
def process_resources(self, resolution: str) -> tuple[str, str]:
5050
return {
51-
RESOLUTIONS.r40: ("5G", "30m"),
52-
RESOLUTIONS.r100: ("8G", "60m"),
51+
RESOLUTIONS.r40: ("4G", "10m"),
52+
RESOLUTIONS.r100: ("4G", "15m"),
5353
}[RESOLUTIONS(resolution)]
5454

5555

@@ -151,6 +151,18 @@ def process_resources(self, resolution: str) -> tuple[str, str]:
151151
"height": 2,
152152
},
153153
),
154+
"8": MicrosoftVersion(
155+
version="v8",
156+
time_points=[
157+
f"{y}q{q}" for y, q in itertools.product(range(2020, 2026), range(1, 5))
158+
][1:],
159+
input_template="predictions/{time_point}/12-39-p3_ensemble/*",
160+
raw_output_template="{time_point}/{tile_key}.tif",
161+
bands={
162+
"density": 1,
163+
"height": 2,
164+
},
165+
),
154166
"water_mask": MicrosoftVersion(
155167
version="water_mask",
156168
time_points=[""],
@@ -162,7 +174,7 @@ def process_resources(self, resolution: str) -> tuple[str, str]:
162174
),
163175
}
164176

165-
LATEST_MICROSOFT_VERSION = MICROSOFT_VERSIONS["7_1"]
177+
LATEST_MICROSOFT_VERSION = MICROSOFT_VERSIONS["8"]
166178

167179

168180
class GHSLVersion(BuiltVersion):

0 commit comments

Comments
 (0)