Skip to content

Commit 14ea4ee

Browse files
committed
check if cache change works
1 parent e779728 commit 14ea4ee

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cmip7_prep/regrid.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,10 @@ def _make_dummy_grids(mapfile: Path) -> tuple[xr.Dataset, xr.Dataset]:
323323
lat_out_1d, lon_out_1d = _get_dst_latlon_1d()
324324

325325
# --- Dummy INPUT grid (unstructured → represent as 2D with length-1 lat) ---
326-
lat_in = np.arange(nlat_in, dtype="f8") # e.g., [0], length can be 1
327-
lon_in = np.arange(nlon_in, dtype="f8")
326+
lat_in = np.arange(
327+
-180.0, 180.0, 360.0 / nlat_in, dtype="f8"
328+
) # e.g., [0], length can be 1
329+
lon_in = np.arange(0.5, 360.5, 360.0 / nlon_in, dtype="f8")
328330
ds_in = xr.Dataset(
329331
data_vars={
330332
"lat_bnds": (

0 commit comments

Comments
 (0)