Discussion:
HDF error, and now what?
ezaron
2014-07-22 18:49:00 UTC
Permalink
Hi All,

I've been trying to understand and/or fix a problem where occasional "HDF
Error" is reported on reads from netcdf files. The errors are sporadic (but
reproducible) and necessitate a lot of "try/catch" type of structures to
deal with the few values that are apparently corrupt. I've got to read
terabytes of many small netcdf files and performance has been a problem in
matlab, so I'm switching to fortran and hoping I can find out what the
problem is and fix the netcdf, if possible.

There is an old thread, referenced in my subject line, which mentions a
function
nf_set_log_level
but this symbol seems to be missing from my netcdf library. Since it is
undocumented, I wonder if anyone here can help.

Netcdf Information: (nc-config --all)
This netCDF 4.3.1.1 has been built with the following features:

--cc -> /usr/bin/clang
--cflags -> -I/opt/local/include -I/opt/local/include -DNDEBUG
--libs -> -L/opt/local/lib -lnetcdf

--has-c++ -> no
--cxx ->
--has-c++4 -> no
--cxx4 ->

--fc -> /opt/local/bin/gfortran-mp-4.8
--fflags -> -pipe -Os -I/opt/local/include
--flibs -> -L/opt/local/lib -lnetcdff -L/opt/local/lib
-Wl,-headerpad_max_install_names -lnetcdf -lnet\
cdf
--has-f90 -> yes

--has-dap -> yes
--has-nc2 -> yes
--has-nc4 -> yes
--has-hdf5 -> yes
--has-hdf4 -> no
--has-pnetcdf-> no

--prefix -> /opt/local
--includedir-> /opt/local/include
--version -> netCDF 4.3.1.1


NB: The many files I am working with are huge enough that I am utilizing the
netcdf compression feature, which I believe are available only in netcdf 4.
If not for this, I would downgrade to netcdf 3.

-Ed




--
View this message in context: http://netcdf-group.1586084.n2.nabble.com/HDF-error-and-now-what-tp7575504.html
Sent from the NetCDF Group mailing list archive at Nabble.com.
Rob Latham
2014-07-24 14:16:10 UTC
Permalink
Post by ezaron
I've been trying to understand and/or fix a problem where occasional "HDF
Error" is reported on reads from netcdf files.
It would be quite helpful if you would include the HDF eror -- it's
probably two screenfuls of nonsense but it might give an indication of
what went wrong.

==rob

The errors are sporadic (but
Post by ezaron
reproducible) and necessitate a lot of "try/catch" type of structures to
deal with the few values that are apparently corrupt. I've got to read
terabytes of many small netcdf files and performance has been a problem in
matlab, so I'm switching to fortran and hoping I can find out what the
problem is and fix the netcdf, if possible.
There is an old thread, referenced in my subject line, which mentions a
function
nf_set_log_level
but this symbol seems to be missing from my netcdf library. Since it is
undocumented, I wonder if anyone here can help.
Netcdf Information: (nc-config --all)
--cc -> /usr/bin/clang
--cflags -> -I/opt/local/include -I/opt/local/include -DNDEBUG
--libs -> -L/opt/local/lib -lnetcdf
--has-c++ -> no
--cxx ->
--has-c++4 -> no
--cxx4 ->
--fc -> /opt/local/bin/gfortran-mp-4.8
--fflags -> -pipe -Os -I/opt/local/include
--flibs -> -L/opt/local/lib -lnetcdff -L/opt/local/lib
-Wl,-headerpad_max_install_names -lnetcdf -lnet\
cdf
--has-f90 -> yes
--has-dap -> yes
--has-nc2 -> yes
--has-nc4 -> yes
--has-hdf5 -> yes
--has-hdf4 -> no
--has-pnetcdf-> no
--prefix -> /opt/local
--includedir-> /opt/local/include
--version -> netCDF 4.3.1.1
NB: The many files I am working with are huge enough that I am utilizing the
netcdf compression feature, which I believe are available only in netcdf 4.
If not for this, I would downgrade to netcdf 3.
-Ed
--
View this message in context: http://netcdf-group.1586084.n2.nabble.com/HDF-error-and-now-what-tp7575504.html
Sent from the NetCDF Group mailing list archive at Nabble.com.
_______________________________________________
netcdfgroup mailing list
For list information or to unsubscribe, visit: http://www.unidata.ucar.edu/mailing_lists/
--
Rob Latham
Mathematics and Computer Science Division
Argonne National Lab, IL USA
ezaron
2014-07-24 16:26:27 UTC
Permalink
Thanks, Rob.

The frustrating thing about it is that the error message is completely
opaque.

I wrap my netcdf calls in a function that reports the error. If the return
code is not equal to NF_NOERR, then I call nf_strerror. The error occurs on
a call to nf_get_vara_int, which returns a status of -101. The nf_strerror
reports this as
"NetCDF: HDF error"

In case you (or a netcdf developer) can take a look, I have posted an
example file here:

http://maki.cee.pdx.edu/~ezaron/NETCDF4examplefailure/ncom_relo_amseas_2010072600_t015.nc4

The error occurs with a call like the following:
nf_get_vara_int(ncid,varid,istart4,icount4,tmp)
istart4 = (384,371,1,1)
icount4 = (2,2,40,1)
varid corresponds to the "water_temp" variable

It is a very strange error. If I open the file in ncview, for example, I can
view the other variables without problems. But if I try to view the
water_temp variable, ncview crashes and reports "NetCDF: HDF error" also.

ncks reports the same error when I try to extract water_temp.

But if use "ncdump -v water_temp", the values are extracted from the file
without any problems up to a certain point when the program crashes,
reporting:
NetCDF: HDF error
Location: file vardata.c; line 479

I see this bug mentioned on the ncks release notes:
netCDF #HZY-708311
http://www.unidata.ucar.edu/mailing_lists/archives/netcdfgroup/2014/msg00045.html
and wonder if it is the same problem.

-Ed





--
View this message in context: http://netcdf-group.1586084.n2.nabble.com/HDF-error-and-now-what-tp7575504p7575506.html
Sent from the NetCDF Group mailing list archive at Nabble.com.
David W. Pierce
2014-07-24 16:44:50 UTC
Permalink
Seems like the null hypothesis is simply that the files are corrupted,
perhaps because of disk or copying errors. A few bad values in many
terabytes of data seem consistent with that at first glance. Have you
tried remaking the source files on a separate disk, if that is
possible? Or are there other copies elsewhere that can be checksummed
and compared to your copy?

Or perhaps I'm misunderstanding, and your basic point is that the HDF
layer should cope with disk errors more gracefully? I don't know how
the compression works in detail, but I've always imagined that once
you get a error in a compressed file you can't recover the subsequent
data very easily. If you *could* recover data subsequent to an error,
that would imply some level of repeated information, which presumably
the compression is supposed to remove in the first place.

Regards,

--Dave
Post by ezaron
Thanks, Rob.
The frustrating thing about it is that the error message is completely
opaque.
I wrap my netcdf calls in a function that reports the error. If the return
code is not equal to NF_NOERR, then I call nf_strerror. The error occurs on
a call to nf_get_vara_int, which returns a status of -101. The nf_strerror
reports this as
"NetCDF: HDF error"
In case you (or a netcdf developer) can take a look, I have posted an
http://maki.cee.pdx.edu/~ezaron/NETCDF4examplefailure/ncom_relo_amseas_2010072600_t015.nc4
nf_get_vara_int(ncid,varid,istart4,icount4,tmp)
istart4 = (384,371,1,1)
icount4 = (2,2,40,1)
varid corresponds to the "water_temp" variable
It is a very strange error. If I open the file in ncview, for example, I can
view the other variables without problems. But if I try to view the
water_temp variable, ncview crashes and reports "NetCDF: HDF error" also.
ncks reports the same error when I try to extract water_temp.
But if use "ncdump -v water_temp", the values are extracted from the file
without any problems up to a certain point when the program crashes,
NetCDF: HDF error
Location: file vardata.c; line 479
netCDF #HZY-708311
http://www.unidata.ucar.edu/mailing_lists/archives/netcdfgroup/2014/msg00045.html
and wonder if it is the same problem.
-Ed
--
View this message in context: http://netcdf-group.1586084.n2.nabble.com/HDF-error-and-now-what-tp7575504p7575506.html
Sent from the NetCDF Group mailing list archive at Nabble.com.
_______________________________________________
netcdfgroup mailing list
For list information or to unsubscribe, visit: http://www.unidata.ucar.edu/mailing_lists/
--
David W. Pierce
Division of Climate, Atmospheric Science, and Physical Oceanography
Scripps Institution of Oceanography, La Jolla, California, USA
(858) 534-8276 (voice) / (858) 534-8561 (fax) ***@ucsd.edu
Russ Rew
2014-07-24 17:29:24 UTC
Permalink
Ed,

Getting at the HDF5 error messages is possible, but not easy:

If you build
​the ​
netCDF
​C library ​
with
​ the​
--enable-logging
​ configure option​, rebuild the netCDF Fortran library using that C
library (or maybe it will just work if its a shared library)
, then
​
put the following
​in your code ​
​somewhere before the HDF error occurs

​ ​
n
​f​
_set_log_level(3)

​y
ou will get
​lots
of output
​, including various messages on the HDF5 error stack when the error occurs​
.
​If you change
the "3" to a "1"
​, you​
get less output, or to a
​"​
5
​", you​
get more.

​Sometimes this can be helpful in debugging a problem in the HDF5 layer or
a bug in how it's called.

--Russ​
Post by David W. Pierce
Seems like the null hypothesis is simply that the files are corrupted,
perhaps because of disk or copying errors. A few bad values in many
terabytes of data seem consistent with that at first glance. Have you
tried remaking the source files on a separate disk, if that is
possible? Or are there other copies elsewhere that can be checksummed
and compared to your copy?
Or perhaps I'm misunderstanding, and your basic point is that the HDF
layer should cope with disk errors more gracefully? I don't know how
the compression works in detail, but I've always imagined that once
you get a error in a compressed file you can't recover the subsequent
data very easily. If you *could* recover data subsequent to an error,
that would imply some level of repeated information, which presumably
the compression is supposed to remove in the first place.
Regards,
--Dave
Post by ezaron
Thanks, Rob.
The frustrating thing about it is that the error message is completely
opaque.
I wrap my netcdf calls in a function that reports the error. If the
return
Post by ezaron
code is not equal to NF_NOERR, then I call nf_strerror. The error occurs
on
Post by ezaron
a call to nf_get_vara_int, which returns a status of -101. The
nf_strerror
Post by ezaron
reports this as
"NetCDF: HDF error"
In case you (or a netcdf developer) can take a look, I have posted an
http://maki.cee.pdx.edu/~ezaron/NETCDF4examplefailure/ncom_relo_amseas_2010072600_t015.nc4
Post by ezaron
nf_get_vara_int(ncid,varid,istart4,icount4,tmp)
istart4 = (384,371,1,1)
icount4 = (2,2,40,1)
varid corresponds to the "water_temp" variable
It is a very strange error. If I open the file in ncview, for example, I
can
Post by ezaron
view the other variables without problems. But if I try to view the
water_temp variable, ncview crashes and reports "NetCDF: HDF error" also.
ncks reports the same error when I try to extract water_temp.
But if use "ncdump -v water_temp", the values are extracted from the file
without any problems up to a certain point when the program crashes,
NetCDF: HDF error
Location: file vardata.c; line 479
netCDF #HZY-708311
http://www.unidata.ucar.edu/mailing_lists/archives/netcdfgroup/2014/msg00045.html
Post by ezaron
and wonder if it is the same problem.
-Ed
--
http://netcdf-group.1586084.n2.nabble.com/HDF-error-and-now-what-tp7575504p7575506.html
Post by ezaron
Sent from the NetCDF Group mailing list archive at Nabble.com.
_______________________________________________
netcdfgroup mailing list
http://www.unidata.ucar.edu/mailing_lists/
--
David W. Pierce
Division of Climate, Atmospheric Science, and Physical Oceanography
Scripps Institution of Oceanography, La Jolla, California, USA
_______________________________________________
netcdfgroup mailing list
http://www.unidata.ucar.edu/mailing_lists/
ezaron
2014-07-24 18:07:08 UTC
Permalink
Thank you for your help, Russ and David.

1) Re: log level
This is a great tip. I saw reference to the nf_set_log_level function on a listserv, but I could not find the symbol in the library. Somehow I missed the build option.

2) Re: corrupted file
Yes, some bits in the file seem to be corrupted. I can re-download the file, and compress it, and it appears fixed. But it seems that many data values in the file are not corrupted, and it is a pain to have to re-download the whole file (about 24 min per file). The somewhat worrisome part is that nccopy will happily compress the original netcdf without throwing an error. It would be nice if the library provided a little more information for me to read around the bad bits. I suppose that is what I do now, but I wonder if I am throwing out more than necessary.

Regards,

Ed
Ed,
If you build ​the ​netCDF ​C library ​with​ the​ --enable-logging​ configure option​, rebuild the netCDF Fortran library using that C library (or maybe it will just work if its a shared library) , then ​put the following ​in your code ​ ​somewhere before the HDF error occurs
​ ​n​f​_set_log_level(3)
​you will get ​lots of output ​, including various messages on the HDF5 error stack when the error occurs​. ​If you change the "3" to a "1" ​, you​ get less output, or to a ​"​5​", you​ get more.
​Sometimes this can be helpful in debugging a problem in the HDF5 layer or a bug in how it's called.
--Russ​
Seems like the null hypothesis is simply that the files are corrupted,
perhaps because of disk or copying errors. A few bad values in many
terabytes of data seem consistent with that at first glance. Have you
tried remaking the source files on a separate disk, if that is
possible? Or are there other copies elsewhere that can be checksummed
and compared to your copy?
Or perhaps I'm misunderstanding, and your basic point is that the HDF
layer should cope with disk errors more gracefully? I don't know how
the compression works in detail, but I've always imagined that once
you get a error in a compressed file you can't recover the subsequent
data very easily. If you *could* recover data subsequent to an error,
that would imply some level of repeated information, which presumably
the compression is supposed to remove in the first place.
Regards,
--Dave
Post by ezaron
Thanks, Rob.
The frustrating thing about it is that the error message is completely
opaque.
I wrap my netcdf calls in a function that reports the error. If the return
code is not equal to NF_NOERR, then I call nf_strerror. The error occurs on
a call to nf_get_vara_int, which returns a status of -101. The nf_strerror
reports this as
"NetCDF: HDF error"
In case you (or a netcdf developer) can take a look, I have posted an
http://maki.cee.pdx.edu/~ezaron/NETCDF4examplefailure/ncom_relo_amseas_2010072600_t015.nc4
nf_get_vara_int(ncid,varid,istart4,icount4,tmp)
istart4 = (384,371,1,1)
icount4 = (2,2,40,1)
varid corresponds to the "water_temp" variable
It is a very strange error. If I open the file in ncview, for example, I can
view the other variables without problems. But if I try to view the
water_temp variable, ncview crashes and reports "NetCDF: HDF error" also.
ncks reports the same error when I try to extract water_temp.
But if use "ncdump -v water_temp", the values are extracted from the file
without any problems up to a certain point when the program crashes,
NetCDF: HDF error
Location: file vardata.c; line 479
netCDF #HZY-708311
http://www.unidata.ucar.edu/mailing_lists/archives/netcdfgroup/2014/msg00045.html
and wonder if it is the same problem.
-Ed
--
View this message in context: http://netcdf-group.1586084.n2.nabble.com/HDF-error-and-now-what-tp7575504p7575506.html
Sent from the NetCDF Group mailing list archive at Nabble.com.
_______________________________________________
netcdfgroup mailing list
For list information or to unsubscribe, visit: http://www.unidata.ucar.edu/mailing_lists/
--
David W. Pierce
Division of Climate, Atmospheric Science, and Physical Oceanography
Scripps Institution of Oceanography, La Jolla, California, USA
_______________________________________________
netcdfgroup mailing list
For list information or to unsubscribe, visit: http://www.unidata.ucar.edu/mailing_lists/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Edward D. Zaron
Research Assistant Professor
Department of Civil and Environmental Engineering
Portland State University
Portland, OR 97207-0751
Phone: (503)-725-2435
FAX: (503)-725-5950
***@pdx.edu
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dave Allured - NOAA Affiliate
2014-07-24 19:30:54 UTC
Permalink
Ed,

The HDF group has diagnostic tools for HDF5 files. They should also work
for netcdf4 files.

http://www.hdfgroup.org/products/hdf5_tools/

I found this sequence to be helpful with your sample file:

h5dump ncom_relo_amseas_2010072600_t015.nc4 >& dump2
grep -n '[^ ()0-9,.:-]' dump2 > no-data.2

This found a problem in the variable water_temp, and everything else seemed
okay.

Would these tools help your debugging strategy and reduce your need to
enhance diagnostics in the Netcdf library?

--Dave
Post by ezaron
Thank you for your help, Russ and David.
1) Re: log level
This is a great tip. I saw reference to the nf_set_log_level function on
a listserv, but I could not find the symbol in the library. Somehow I
missed the build option.
Post by ezaron
2) Re: corrupted file
Yes, some bits in the file seem to be corrupted. I can re-download the
file, and compress it, and it appears fixed. But it seems that many data
values in the file are not corrupted, and it is a pain to have to
re-download the whole file (about 24 min per file). The somewhat worrisome
part is that nccopy will happily compress the original netcdf without
throwing an error. It would be nice if the library provided a little more
information for me to read around the bad bits. I suppose that is what I do
now, but I wonder if I am throwing out more than necessary.
Post by ezaron
Regards,
Ed
Ed,
If you build
the
netCDF
C library
with
the
--enable-logging
configure option, rebuild the netCDF Fortran library using that C library
(or maybe it will just work if its a shared library)
Post by ezaron
, then
put the following
in your code
somewhere before the HDF error occurs
n
f
_set_log_level(3)
y
ou will get
lots
of output
, including various messages on the HDF5 error stack when the error occurs
.
If you change
the "3" to a "1"
, you
get less output, or to a
"
5
", you
get more.
Sometimes this can be helpful in debugging a problem in the HDF5 layer or
a bug in how it's called.
Post by ezaron
--Russ
Post by David W. Pierce
Seems like the null hypothesis is simply that the files are corrupted,
perhaps because of disk or copying errors. A few bad values in many
terabytes of data seem consistent with that at first glance. Have you
tried remaking the source files on a separate disk, if that is
possible? Or are there other copies elsewhere that can be checksummed
and compared to your copy?
Or perhaps I'm misunderstanding, and your basic point is that the HDF
layer should cope with disk errors more gracefully? I don't know how
the compression works in detail, but I've always imagined that once
you get a error in a compressed file you can't recover the subsequent
data very easily. If you *could* recover data subsequent to an error,
that would imply some level of repeated information, which presumably
the compression is supposed to remove in the first place.
Regards,
--Dave
Post by ezaron
Thanks, Rob.
The frustrating thing about it is that the error message is completely
opaque.
I wrap my netcdf calls in a function that reports the error. If the return
code is not equal to NF_NOERR, then I call nf_strerror. The error occurs on
a call to nf_get_vara_int, which returns a status of -101. The nf_strerror
reports this as
"NetCDF: HDF error"
In case you (or a netcdf developer) can take a look, I have posted an
http://maki.cee.pdx.edu/~ezaron/NETCDF4examplefailure/ncom_relo_amseas_2010072600_t015.nc4
Post by ezaron
Post by David W. Pierce
Post by ezaron
nf_get_vara_int(ncid,varid,istart4,icount4,tmp)
istart4 = (384,371,1,1)
icount4 = (2,2,40,1)
varid corresponds to the "water_temp" variable
It is a very strange error. If I open the file in ncview, for example, I can
view the other variables without problems. But if I try to view the
water_temp variable, ncview crashes and reports "NetCDF: HDF error" also.
ncks reports the same error when I try to extract water_temp.
But if use "ncdump -v water_temp", the values are extracted from the file
without any problems up to a certain point when the program crashes,
NetCDF: HDF error
Location: file vardata.c; line 479
netCDF #HZY-708311
http://www.unidata.ucar.edu/mailing_lists/archives/netcdfgroup/2014/msg00045.html
Post by ezaron
Post by David W. Pierce
Post by ezaron
and wonder if it is the same problem.
-Ed
--
http://netcdf-group.1586084.n2.nabble.com/HDF-error-and-now-what-tp7575504p7575506.html
Post by ezaron
Post by David W. Pierce
Post by ezaron
Sent from the NetCDF Group mailing list archive at Nabble.com.
_______________________________________________
netcdfgroup mailing list
http://www.unidata.ucar.edu/mailing_lists/
Post by ezaron
Post by David W. Pierce
--
David W. Pierce
Division of Climate, Atmospheric Science, and Physical Oceanography
Scripps Institution of Oceanography, La Jolla, California, USA
_______________________________________________
netcdfgroup mailing list
http://www.unidata.ucar.edu/mailing_lists/
Post by ezaron
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Edward D. Zaron
Research Assistant Professor
Department of Civil and Environmental Engineering
Portland State University
Portland, OR 97207-0751
Phone: (503)-725-2435
FAX: (503)-725-5950
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
netcdfgroup mailing list
http://www.unidata.ucar.edu/mailing_lists/
ezaron
2014-07-24 21:10:35 UTC
Permalink
Thanks, Dave. I'm not an hdf5 power user (yet), but I will check it out.

-Ed
Ed,
The HDF group has diagnostic tools for HDF5 files. They should also work for netcdf4 files.
http://www.hdfgroup.org/products/hdf5_tools/
h5dump ncom_relo_amseas_2010072600_t015.nc4 >& dump2
grep -n '[^ ()0-9,.:-]' dump2 > no-data.2
This found a problem in the variable water_temp, and everything else seemed okay.
Would these tools help your debugging strategy and reduce your need to enhance diagnostics in the Netcdf library?
--Dave
Post by ezaron
Thank you for your help, Russ and David.
1) Re: log level
This is a great tip. I saw reference to the nf_set_log_level function on a listserv, but I could not find the symbol in the library. Somehow I missed the build option.
2) Re: corrupted file
Yes, some bits in the file seem to be corrupted. I can re-download the file, and compress it, and it appears fixed. But it seems that many data values in the file are not corrupted, and it is a pain to have to re-download the whole file (about 24 min per file). The somewhat worrisome part is that nccopy will happily compress the original netcdf without throwing an error. It would be nice if the library provided a little more information for me to read around the bad bits. I suppose that is what I do now, but I wonder if I am throwing out more than necessary.
Regards,
Ed
Ed,
If you build
the
netCDF
C library
with
the
--enable-logging
configure option, rebuild the netCDF Fortran library using that C library (or maybe it will just work if its a shared library)
, then
put the following
in your code
somewhere before the HDF error occurs
n
f
_set_log_level(3)
y
ou will get
lots
of output
, including various messages on the HDF5 error stack when the error occurs
.
If you change
the "3" to a "1"
, you
get less output, or to a
"
5
", you
get more.
Sometimes this can be helpful in debugging a problem in the HDF5 layer or a bug in how it's called.
--Russ
Post by David W. Pierce
Seems like the null hypothesis is simply that the files are corrupted,
perhaps because of disk or copying errors. A few bad values in many
terabytes of data seem consistent with that at first glance. Have you
tried remaking the source files on a separate disk, if that is
possible? Or are there other copies elsewhere that can be checksummed
and compared to your copy?
Or perhaps I'm misunderstanding, and your basic point is that the HDF
layer should cope with disk errors more gracefully? I don't know how
the compression works in detail, but I've always imagined that once
you get a error in a compressed file you can't recover the subsequent
data very easily. If you *could* recover data subsequent to an error,
that would imply some level of repeated information, which presumably
the compression is supposed to remove in the first place.
Regards,
--Dave
Post by ezaron
Thanks, Rob.
The frustrating thing about it is that the error message is completely
opaque.
I wrap my netcdf calls in a function that reports the error. If the return
code is not equal to NF_NOERR, then I call nf_strerror. The error occurs on
a call to nf_get_vara_int, which returns a status of -101. The nf_strerror
reports this as
"NetCDF: HDF error"
In case you (or a netcdf developer) can take a look, I have posted an
http://maki.cee.pdx.edu/~ezaron/NETCDF4examplefailure/ncom_relo_amseas_2010072600_t015.nc4
nf_get_vara_int(ncid,varid,istart4,icount4,tmp)
istart4 = (384,371,1,1)
icount4 = (2,2,40,1)
varid corresponds to the "water_temp" variable
It is a very strange error. If I open the file in ncview, for example, I can
view the other variables without problems. But if I try to view the
water_temp variable, ncview crashes and reports "NetCDF: HDF error" also.
ncks reports the same error when I try to extract water_temp.
But if use "ncdump -v water_temp", the values are extracted from the file
without any problems up to a certain point when the program crashes,
NetCDF: HDF error
Location: file vardata.c; line 479
netCDF #HZY-708311
http://www.unidata.ucar.edu/mailing_lists/archives/netcdfgroup/2014/msg00045.html
and wonder if it is the same problem.
-Ed
--
View this message in context: http://netcdf-group.1586084.n2.nabble.com/HDF-error-and-now-what-tp7575504p7575506.html
Sent from the NetCDF Group mailing list archive at Nabble.com.
_______________________________________________
netcdfgroup mailing list
For list information or to unsubscribe, visit: http://www.unidata.ucar.edu/mailing_lists/
--
David W. Pierce
Division of Climate, Atmospheric Science, and Physical Oceanography
Scripps Institution of Oceanography, La Jolla, California, USA
_______________________________________________
netcdfgroup mailing list
For list information or to unsubscribe, visit: http://www.unidata.ucar.edu/mailing_lists/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Edward D. Zaron
Research Assistant Professor
Department of Civil and Environmental Engineering
Portland State University
Portland, OR 97207-0751
Phone: (503)-725-2435
FAX: (503)-725-5950
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
netcdfgroup mailing list
For list information or to unsubscribe, visit: http://www.unidata.ucar.edu/mailing_lists/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Edward D. Zaron
Research Assistant Professor
Department of Civil and Environmental Engineering
Portland State University
Portland, OR 97207-0751
Phone: (503)-725-2435
FAX: (503)-725-5950
***@pdx.edu
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Loading...