Skip to content

Commit 255b2b2

Browse files
Precommit
1 parent 039f3e4 commit 255b2b2

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

resources/inference/configs/forecaster_no_trimedge_with_global.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ output:
2222
templates:
2323
samples: resources/templates_index_ifs.yaml
2424
post_processors:
25-
- extract_mask:
26-
mask: "lam_0/cutout_mask"
25+
- extract_mask:
26+
mask: "lam_0/cutout_mask"
2727
as_slice: true
28-
inverse: true # removes lam points
28+
inverse: true # removes lam points
2929
- assign_mask:
3030
mask: "global/cutout_mask" # fill local/global overlapping points with nan
3131

resources/inference/configs/forecaster_with_global.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ output:
2525
templates:
2626
samples: resources/templates_index_ifs.yaml
2727
post_processors:
28-
- extract_mask:
29-
mask: "lam_0/cutout_mask"
28+
- extract_mask:
29+
mask: "lam_0/cutout_mask"
3030
as_slice: true
31-
inverse: true # removes lam points
31+
inverse: true # removes lam points
3232
- assign_mask:
3333
mask: "global/cutout_mask" # fill local/global overlapping points with nan
3434

resources/inference/configs/interpolator_stretched_with_global.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ output:
108108
templates:
109109
samples: resources/templates_index_ifs.yaml
110110
post_processors:
111-
- extract_mask:
112-
mask: "lam_0/cutout_mask"
111+
- extract_mask:
112+
mask: "lam_0/cutout_mask"
113113
as_slice: true
114-
inverse: true # removes lam points
114+
inverse: true # removes lam points
115115
- assign_mask:
116116
mask: "global/cutout_mask" # fill local/global overlapping points with nan
117117

src/plotting/compat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ def load_state_from_raw(
5757
reftime = datetime.strptime(file.parents[1].name, "%Y%m%d%H%M")
5858
validtime = datetime.strptime(file.stem, "%Y%m%d%H%M%S")
5959
state = {}
60-
lons = _state["longitudes"]
60+
lons = _state["longitudes"]
6161
if max(lons) > 180:
62-
lons = ((lons + 180) % 360) - 180
62+
lons = ((lons + 180) % 360) - 180
6363
state["longitudes"] = lons
6464
state["latitudes"] = _state["latitudes"]
6565
state["valid_time"] = validtime

workflow/scripts/plot_forecast_frame.mo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,11 @@ def _(
185185
outfn.parent,
186186
)
187187
from cartopy import crs as ccrs
188+
188189
fig = plotter.init_geoaxes(
189190
nrows=1,
190191
ncols=1,
191-
projection=ccrs.PlateCarree(),#REGIONS[region]["projection"],
192+
projection=ccrs.PlateCarree(), # REGIONS[region]["projection"],
192193
bbox=REGIONS[region]["extent"],
193194
name=region,
194195
size=(6, 6),

0 commit comments

Comments
 (0)