Hello,

I am using the high-level table API to read in a table from an HDF5 data file. 
I am using the h5tbget_field_info_f routine, which I need to supply with an 
empty array for the field names. Is there a robust way to find out what length 
to make the individual field names in the array? I found that in the case I am 
looking at, I need to define

  character(len=255),allocatable :: field_names(:)

If I do not use a value of 255, then the field_names have whitespace in the 
wrong places, and if the length is too short I even get malloc errors. 
Therefore, it seems that the length has to match the length used to store the 
data in the file. Therefore, is there a way to find out in advance the length 
needed for the field names before calling h5tbget_field_info_f?

Just to be clear, I am using h5tbget_table_info_f to get nfields which I can 
use to allocate field_names, but I am trying to find out the value for the 
length of each individual element in field_names(:)

Thanks in advance for any help,

Thomas


_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to