We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e779728 commit 14ea4eeCopy full SHA for 14ea4ee
cmip7_prep/regrid.py
@@ -323,8 +323,10 @@ def _make_dummy_grids(mapfile: Path) -> tuple[xr.Dataset, xr.Dataset]:
323
lat_out_1d, lon_out_1d = _get_dst_latlon_1d()
324
325
# --- 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")
+ lat_in = np.arange(
+ -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")
330
ds_in = xr.Dataset(
331
data_vars={
332
"lat_bnds": (
0 commit comments