Home > Net >  Read hdf5 file
Read hdf5 file

Time:11-12

Using HDF5DotNet. DLL read hdf5 file, the result error:
H5D. Read:
Failed to read the data to the data set with 5000000 status - 1

H5DataTypeId returns a value of 1, is this normal? Below is the wrong picture

The code is as follows:
 
Private float [and] GetAreaFromH5 (string fullfileName, string GroupName, string DsName)
{
Float [and] area=new float [2048, 1656].
Try
{
H5FileId count=H5F. Open (fullfileName, H5F. OpenMode. ACC_RDONLY);
H5GroupId groupID=H5G. Open (a count, GroupName);
H5DataSetId dataset=H5D. Open (groupID, DsName/* "*/");
H5DataTypeId tid1=new H5DataTypeId (H5T. H5Type. NATIVE_FLOAT);

H5D. Read (the dataset, tid1, new H5Array & lt; Float> (area));

H5D. Close (dataset);
H5G. Close (groupID);
H5F. Close (count);
}
The catch (H5DreadException ex)
{
Throw the ex.
}
The return area;
}


Feel nothing wrong, ladies and gentlemen, please give advice or comments,

CodePudding user response:

See HDF5DotNet came in, before do the weather bureau project used the satellite data to read, but to leave for a long time, what code are forgotten, purely DingTie the for you,

CodePudding user response:

refer to 1st floor however reply:
see HDF5DotNet came in, before do the weather bureau project used the satellite data to read, but to leave for a long time, the code of what is forgotten, is simply to help you DingTie,

Thank you, well, this question is very strange, is accidental, sometimes because the sequence of operation change will appear, very strange,

CodePudding user response:

The problem is, alas, hasn't been solved, is there a teacher can guide the

CodePudding user response:

5000000 this is valid, check to see,
  •  Tags:  
  • C#
  • Related