Skip to content

Commit

Permalink
Patch 08302024 (#28)
Browse files Browse the repository at this point in the history
* added code to write forcings into edges store

* patched a copy paste error:
  • Loading branch information
taddyb authored Aug 31, 2024
1 parent 750cc55 commit 010742c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions marquette/merit/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,19 +402,19 @@ def format_lstm_forcings(cfg: DictConfig, edges: zarr.Group) -> None:
log.info("Writing outputs to zarr")
edges.array(
name="precip_comid",
data=np.median(precip_full_zone, axis=0),
data=precip_full_zone,
)
edges.array(
name="pet_comid",
data=np.std(pet_full_zone, axis=0),
data=pet_full_zone,
)
edges.array(
name="ndvi_comid",
data=np.percentile(ndvi_full_zone, 90, axis=0),
data=ndvi_full_zone,
)
edges.array(
name="aridity_comid",
data=np.percentile(aridity_full_zone, 10, axis=0),
data=aridity_full_zone,
)


0 comments on commit 010742c

Please sign in to comment.