Skip to content

Commit

Permalink
for extremes-dt, change to reduced grid on stream wave
Browse files Browse the repository at this point in the history
  • Loading branch information
mathleur committed Jan 24, 2025
1 parent ecc36ec commit ab6a85f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions polytope_server/common/datasource/polytope.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,15 @@ def change_grids(self, request, config):
if request["activity"] in ["baseline", "projections", "scenariomip"]:
res = 1024

if request.get("dataset", None) == "extremes-dt":
if request["stream"] == "wave":
for mappings in config["options"]["axis_config"]:
for sub_mapping in mappings["transformations"]:
if sub_mapping["name"] == "mapper":
sub_mapping["type"] == "reduced_ll"
sub_mapping["resolution"] = 3601
return config

# Only assign new resolution if it was changed here
if res:
# Find the mapper transformation
Expand All @@ -171,9 +180,6 @@ def change_hash(self, request, config):
)
hash = "1c409f6b78e87eeaeeb4a7294c28add7"
return self.change_config_grid_hash(config, hash)
if request["stream"] == "wave":
hash = "386742a2dd1201b67f2d19ed421353ea"
return self.change_config_grid_hash(config, hash)

# This only holds for operational data
if request.get("dataset", None) is None:
Expand Down

0 comments on commit ab6a85f

Please sign in to comment.