openclimatefix / MetOfficeDataHub

Python wrapper around MetOffice Atmospheric Model Data REST API
MIT License
3 stars 0 forks source link

Netcdf file is of zero size #64

Closed peterdudfield closed 1 year ago

peterdudfield commented 1 year ago

the new netcdf file is differet. Used to be able to open it with

with fsspec.open(zarr_path, mode="rb") as file:
   file_bytes = file.read()

with io.BytesIO(file_bytes) as file:
    nwp = xr.load_dataset(file, engine="h5netcdf")

Would be great to know now how to open the file from s3

Ive switched over to using the zarr file in the nowcasting forecast. We could just permantely switch over to this

@simlmx I'll tag you as you made the changes.

peterdudfield commented 1 year ago

Solved, must have been something i did, also im svaing using h5netcdf now