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: