I am using code that used to work with the old CDS API. I have updated the .cdsapirc file as instructed here. The code runs successfully and downloads a netCDF file that is about the right size, but I cannot read the file in xarray or MATLAB. The issue happens the same way on Linux and Windows Subsystem for Linux. When I download from the web interface, the file is fine. Any ideas?
I may have figured it out… Somewhere I had read that there may be issues with netCDF file generation when one requests both atmospheric and wave data products (because they are on different grids). If I leave the wave product out, it generates a valid file. However, this did work before (with the other CDS API).