I have a user unable to use a netcdf file with our code. It turns out that the file works just fine when read, but if you try to open it for writing, it chokes: (this is the netCDF4 Python lib, version 1.6.5, which seems to be the latest release) I get: In [3]: netCDF4.Dataset(' cmems_mod_nws_phy_anfc_0.027deg-3D_P1D-m_1727700325546.nc', 'r+') --------------------------------------------------------------------------- OSError Traceback (most recent call last) Cell In[3], line 1 ----> 1 netCDF4.Dataset(' cmems_mod_nws_phy_anfc_0.027deg-3D_P1D-m_1727700325546.nc', 'r+') File src/netCDF4/_netCDF4.pyx:2469, in netCDF4._netCDF4.Dataset.__init__() File src/netCDF4/_netCDF4.pyx:2028, in netCDF4._netCDF4._ensure_nc_success() OSError: [Errno -103] NetCDF: Can't write file: ' cmems_mod_nws_phy_anfc_0.027deg-3D_P1D-m_1727700325546.nc' Any idea how I can get more info as to what's wrong with it? Again, we have had no problems reading the file. Thanks, - CHB File is 1.2MB, (not huge by today's standards?) so I've attached it here if anyone wants to take a look. -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker@xxxxxxxx
Attachment:
cmems_mod_nws_phy_anfc_0.027deg-3D_P1D-m_1727700325546.nc
Description: Binary data
netcdfgroup
archives: