[VTKHDF][ImageData] issue with reading field data
I was trying to create VTKHDF files of type ImageData
, but unfortunately I am not able to read in those files because it seems that the field data cannot be read, although the field data format I am using is the same as what I have successfully used with the VTKHDF-UnstructuredGrid format. Here is the data I was testing:
-
ImageData
file with field data (not working): imagedata.hdf - The same file but without field data (working): imagedata_no_field_data.hdf
-
UnstructuredGrid
file with field data (working): unstructured.hdf
My guess is that the error comes from this part of the code: https://gitlab.kitware.com/vtk/vtk/-/blob/master/IO/HDF/vtkHDFReader.cxx#L519
It looks like field data is attempted to be read with the extents of the image, however, I thought that FieldData
is used for data that cannot be associated with points or cells (e.g. metadata) (see https://examples.vtk.org/site/Cxx/PolyData/FieldData/).
I believe the loop in the above code should only go over point & cell data as done for the other grid types, since AddFieldArrays
is called at the end, anyway?