Skip to content

RuntimeError: NetCDF: HDF error #1029

@DEHewitt

Description

@DEHewitt

Hi,

I am having some trouble running simulations for one year of the the 10-year oceanographic model that I have (daily outputs). The simulation appears to run for a little while

INFO: Compiled random ==> /scratch/pbs.1186449[136].kman.restech.unsw.edu.au/parcels-15278054/parcels_random_e6ee00a3-2127-41b4-9bb0-4c81c7aa0c4e.so
INFO: Compiled SampleParticleSampleInitialAdvectionRK4_3D_alternativeSampleAgeSampleDistanceDiffusionUniformKhSampleTempSampleBathyResetDepthSampleParticleDepthlarvalBuoyancySampleVelocitiesUnbeaching ==> /scratch/pbs.1186449[136].kman.restech.unsw.edu.au/parcels-15278054/b88a7ab377d8d6399793821c889b487f_0.so
WARNING: dt or runtime are zero, or endtime is equal to Particle.time. The kernels will be executed once, without incrementing time
  0% |                                                                        |
  1% |                                                                        |
  2% |#                                                                       |
WARNING: Deleting particle because of bug in #749 and #737
  3% |##                                                                      |
  4% |###                                                                     |
  6% |####                                                                    |
  7% |#####                                                                   |
  8% |######                                                                  |
  9% |#######                                                                 |
 10% |#######                                                                 |
 12% |########                                                                |
 13% |#########                                                               |
 14% |##########                                                              |
 15% |###########                                                             |
 17% |############                                                            |
 18% |#############                                                           |
 19% |##############                                                          |
 20% |##############                                                          |
 21% |###############                                                         |
 23% |################                                                        |
 24% |#################                                                       |
 25% |##################                                                      |
 26% |###################                                                     |
 28% |####################                                                    |
 29% |#####################                                                   |
 30% |#####################                                                   |
 31% |######################                                                  |

Then I get the following:

HDF5-DIAG: Error detected in HDF5 (1.10.5) thread 46940387305216:
  #000: H5Dio.c line 199 in H5Dread(): can't read data
    major: Dataset
    minor: Read failed
  #001: H5Dio.c line 601 in H5D__read(): can't read data
    major: Dataset
    minor: Read failed
  #002: H5Dchunk.c line 2259 in H5D__chunk_read(): unable to read raw data chunk
    major: Low-level I/O
    minor: Read failed
  #003: H5Dchunk.c line 3624 in H5D__chunk_lock(): data pipeline read failed
    major: Dataset
    minor: Filter operation failed
  #004: H5Z.c line 1326 in H5Z_pipeline(): filter returned failure during read
    major: Data filters
    minor: Read failed
  #005: H5Zdeflate.c line 123 in H5Z_filter_deflate(): inflate() failed
    major: Data filters
    minor: Unable to initialize object

followed by a more familiar Python error:

Traceback (most recent call last):
  File "portunid_particle_tracking.py", line 350, in <module>
    recovery={ErrorCode.ErrorOutOfBounds: DeleteParticle})
  File "/home/z5278054/python_parcels/lib/python3.6/site-packages/parcels/particleset.py", line 642, in execute
    execute_once=execute_once)
  File "/home/z5278054/python_parcels/lib/python3.6/site-packages/parcels/kernel.py", line 431, in execute
    self.execute_jit(pset, endtime, dt)
  File "/home/z5278054/python_parcels/lib/python3.6/site-packages/parcels/kernel.py", line 245, in execute_jit
    f.chunk_data()
  File "/home/z5278054/python_parcels/lib/python3.6/site-packages/parcels/field.py", line 1089, in chunk_data
    self.data_chunks[block_id] = np.array(self.data.blocks[(slice(self.grid.tdim),) + block])
  File "/home/z5278054/python_parcels/lib/python3.6/site-packages/dask/array/core.py", line 1365, in __array__
    x = self.compute()
  File "/home/z5278054/python_parcels/lib/python3.6/site-packages/dask/base.py", line 167, in compute
    (result,) = compute(self, traverse=False, **kwargs)
  File "/home/z5278054/python_parcels/lib/python3.6/site-packages/dask/base.py", line 452, in compute
    results = schedule(dsk, keys, **kwargs)
  File "/home/z5278054/python_parcels/lib/python3.6/site-packages/dask/threaded.py", line 84, in get
    **kwargs
  File "/home/z5278054/python_parcels/lib/python3.6/site-packages/dask/local.py", line 486, in get_async
    raise_exception(exc, tb)
  File "/home/z5278054/python_parcels/lib/python3.6/site-packages/dask/local.py", line 316, in reraise
    raise exc
  File "/home/z5278054/python_parcels/lib/python3.6/site-packages/dask/local.py", line 222, in execute_task
    result = _execute_task(task, data)
  File "/home/z5278054/python_parcels/lib/python3.6/site-packages/dask/core.py", line 121, in _execute_task
    return func(*(_execute_task(a, cache) for a in args))
  File "/home/z5278054/python_parcels/lib/python3.6/site-packages/dask/array/core.py", line 102, in getter
    c = np.asarray(c)
  File "/home/z5278054/python_parcels/lib/python3.6/site-packages/numpy/core/_asarray.py", line 83, in asarray
    return array(a, dtype, copy=False, order=order)
  File "/home/z5278054/python_parcels/lib/python3.6/site-packages/xarray/core/indexing.py", line 495, in __array__
    return np.asarray(self.array, dtype=dtype)
  File "/home/z5278054/python_parcels/lib/python3.6/site-packages/numpy/core/_asarray.py", line 83, in asarray
    return array(a, dtype, copy=False, order=order)
  File "/home/z5278054/python_parcels/lib/python3.6/site-packages/xarray/core/indexing.py", line 655, in __array__
    return np.asarray(self.array, dtype=dtype)
  File "/home/z5278054/python_parcels/lib/python3.6/site-packages/numpy/core/_asarray.py", line 83, in asarray
    return array(a, dtype, copy=False, order=order)
  File "/home/z5278054/python_parcels/lib/python3.6/site-packages/xarray/core/indexing.py", line 560, in __array__
    return np.asarray(array[self.key], dtype=None)
  File "/home/z5278054/python_parcels/lib/python3.6/site-packages/xarray/backends/netCDF4_.py", line 73, in __getitem__
    key, self.shape, indexing.IndexingSupport.OUTER, self._getitem
  File "/home/z5278054/python_parcels/lib/python3.6/site-packages/xarray/core/indexing.py", line 845, in explicit_indexing_adapter
    result = raw_indexing_method(raw_key.tuple)
  File "/home/z5278054/python_parcels/lib/python3.6/site-packages/xarray/backends/netCDF4_.py", line 85, in _getitem
    array = getitem(original_array, key)
  File "netCDF4/_netCDF4.pyx", line 4452, in netCDF4._netCDF4.Variable.__getitem__
  File "netCDF4/_netCDF4.pyx", line 5394, in netCDF4._netCDF4.Variable._get
  File "netCDF4/_netCDF4.pyx", line 1928, in netCDF4._netCDF4._ensure_nc_success
RuntimeError: NetCDF: HDF error

I suspect the initial error (the HDF5-DIAG error) is causing the second error, as my simulations for other years work as expected. I have done a few searches but the returned errors are beyond my knowledge.

Any help would be so great!

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions