Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERA5 sea surface temperatures all NaN #161

Open
markmbaum opened this issue May 25, 2024 · 1 comment
Open

ERA5 sea surface temperatures all NaN #161

markmbaum opened this issue May 25, 2024 · 1 comment

Comments

@markmbaum
Copy link

markmbaum commented May 25, 2024

Some of the era5 sea surface temperatures are all NaN. You can verify by running:

import numpy as np
import gcsfs
import xarray as xr

fs = gcsfs.GCSFileSystem(token="anon")
for path in fs.ls("weatherbench2/datasets/era5"):
    if ".zarr" in path:
        try:
            mapper = fs.get_mapper(path)
            ds = xr.open_zarr(mapper)
        except FileNotFoundError:
            print(f"issue opening {path}")
        else:
            sst_slice = ds["sea_surface_temperature"].isel(time=-1).values
            if np.all(np.isnan(sst_slice)):
                print(f"all NaN SST: {path}")

which prints the following datasets:

all NaN SST: weatherbench2/datasets/era5/1959-2022-1h-240x121_equiangular_with_poles_conservative.zarr
all NaN SST: weatherbench2/datasets/era5/1959-2022-1h-360x181_equiangular_with_poles_conservative.zarr
all NaN SST: weatherbench2/datasets/era5/1959-2022-6h-128x64_equiangular_conservative.zarr
all NaN SST: weatherbench2/datasets/era5/1959-2022-6h-64x32_equiangular_conservative.zarr
all NaN SST: weatherbench2/datasets/era5/1959-2022-6h-64x33.zarr

It doesn't seem to matter which time slice is checked.

This might be related to #124.

@Plomo-02
Copy link

Plomo-02 commented Nov 4, 2024

Hi, can I be assigned to this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants