NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
I can reproduce the error. I tried to copy the file using mccoy, got the following: nccopy cmems_mod_nws_phy_anfc_0.027deg-3D_P1D-m_1727700325546.nc test.nc NetCDF: Not a valid data type or _FillValue type mismatch Location: file ?; fcn ? line 1408 hope this helps. -Roy > On Oct 2, 2024, at 10:46 AM, Chris Barker via netcdfgroup > <netcdfgroup@xxxxxxxxxxxxxxxx> wrote: > > 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 > <cmems_mod_nws_phy_anfc_0.027deg-3D_P1D-m_1727700325546.nc>_______________________________________________ > NOTE: All exchanges posted to Unidata maintained email lists are > recorded in the Unidata inquiry tracking system and made publicly > available through the web. Users who post to any of the lists we > maintain are reminded to remove any personal information that they > do not want to be made public. > > > netcdfgroup mailing list > netcdfgroup@xxxxxxxxxxxxxxxx > For list information or to unsubscribe, visit: > https://www.unidata.ucar.edu/mailing_lists/ ********************** "The contents of this message do not reflect any position of the U.S. Government or NOAA." ********************** Roy Mendelssohn Supervisory Operations Research Analyst NOAA/NMFS Environmental Research Division Southwest Fisheries Science Center ***Note new street address*** 110 McAllister Way Santa Cruz, CA 95060 Phone: (831)-420-3666 Fax: (831) 420-3980 e-mail: Roy.Mendelssohn@xxxxxxxx www: https://www.pfeg.noaa.gov/ "Old age and treachery will overcome youth and skill." "From those who have been given much, much will be expected" "the arc of the moral universe is long, but it bends toward justice" -MLK Jr.
netcdfgroup
archives: