Skip to content

Commit

Permalink
Spatial resample edits (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
LuddaLudwig authored Aug 23, 2024
2 parents 60d9ab2 + d45e947 commit 4693578
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions eddy_footprint/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def __init__(
template_y=template_y,
workers=workers,
)
timestep_ds = timestep_ds.fillna(0)
timestep_ds = timestep_ds.expand_dims(dim={"time": [timestep.values]})
datasets.append(timestep_ds)
self.footprints = xr.concat(datasets, dim="time")
Expand Down
2 changes: 1 addition & 1 deletion eddy_footprint/spatial.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def rotate_domain(da, *, wind_direction):


def build_domain(*, domain_length: int, resolution: int, time: np.ndarray):
x = np.linspace(1, domain_length, int(domain_length / resolution))
x = np.linspace(0, domain_length, int(domain_length / resolution))
y = np.linspace(
-domain_length / 2, domain_length / 2, int(domain_length / resolution)
)
Expand Down

0 comments on commit 4693578

Please sign in to comment.