Skip to content

Commit

Permalink
record regrid plot
Browse files Browse the repository at this point in the history
  • Loading branch information
acse-ww721 committed Sep 3, 2023
1 parent 3e1a5e5 commit f14a3a0
Show file tree
Hide file tree
Showing 2 changed files with 7,416 additions and 1,219 deletions.
6 changes: 5 additions & 1 deletion src/preprocessing/asos_regrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ def krige_regrid(
def north_south_drift(lat, lon):
return lat

# 4. Drift term
def polynomial_drift(lat, lon):
return [1, lat, lon, lat**2, lon**2, lat * lon]

unique_times = df["time"].unique()

# Iterate over each time
Expand All @@ -120,7 +124,7 @@ def north_south_drift(lat, lon):
model=model,
cond_pos=(lat, lon),
cond_val=t2m,
drift_functions=north_south_drift,
drift_functions=polynomial_drift,
)

uk.set_pos((g_lat, g_lon), mesh_type="structured")
Expand Down
Loading

0 comments on commit f14a3a0

Please sign in to comment.