Prev: Gosper Curve (where am i going wrong)?
Next: Better coding: "make input and output modules" for a function
From: Ash on 4 May 2010 11:19 Hello everyone, I am trying to export a Matlab array containing some values into an existing HDF4 file. This HDF4 file is from NASA's MODIS-Aqua sensor. I followed the steps in the MATLAB documentation in creating a dataset in the HDF4 file and exporting the Matlab array into the dataset. Naturally, there is no problem exporting the data from Matlab. There are no errors or any warnings. However, the dataset does not show up on the HDF4 file. What I mean is that the dataset is not visible in the HDF4 file. Initially, I thought that there was something wrong in the export process. To test this, I created a new empty HDF4 file instead of trying to use the existing HDF4 file. And it worked! The new HDF4 file shows the dataset and the values of the MATLAB array. So it seems that there is a problem in using the existing HDF4 file. Any thoughts? I appreciate any help. Thank you. Ash
From: John Evans on 5 May 2010 13:10
Hi Ash, could you post your code? How are you opening the existing file? Ash wrote: > Hello everyone, > > I am trying to export a Matlab array containing some values into an > existing HDF4 file. This HDF4 file is from NASA's MODIS-Aqua sensor. > > I followed the steps in the MATLAB documentation in creating a dataset in > the HDF4 file and exporting the Matlab array into the dataset. Naturally, > there is no problem exporting the data from Matlab. There are no errors or > any warnings. However, the dataset does not show up on the HDF4 file. What > I mean is that the dataset is not visible in the HDF4 file. > > Initially, I thought that there was something wrong in the export process. > To test this, I created a new empty HDF4 file instead of trying to use the > existing HDF4 file. And it worked! The new HDF4 file shows the dataset and > the values of the MATLAB array. > > So it seems that there is a problem in using the existing HDF4 file. Any > thoughts? > > I appreciate any help. Thank you. > > Ash |