Hi, Roel! Thanks for your reply. I hope someone can write an easy-to-use GUI tool like MS Excel for HDF data array manipulation you described in near future.
If you're not limited to GUI tool, I think script-language tool like NCL (free) IDL/MATLAB (commercial) can do the array manipulation you described. For example, you can easily read & subset HDF5 array [1], reshape the array [2], and save it [3] in NetCDF-4 (which is HDF5 under the hood) in NCL. The only drawback of NCL compared to IDL/MATLAB is that it doesn't run on Windows but it supports Cygwin so you may want to try it. [1] http://hdfeos.org/zoo/NSIDC/GLAH13_633_2103_001_1317_0_01_0001.h5.ncl [2] http://hdfeos.org/zoo/LaRC/MISR_AM1_GRP_ELLIPSOID_GM_P117_O058421_BA_F03_0024_Blue_Radiance_RDQI.ncl [3] http://www.ncl.ucar.edu/Applications/netcdf4.shtml -- HDF: Software that Powers Science On Wed, May 15, 2013 at 5:10 AM, Roel Vanhout <rvanh...@riks.nl> wrote: > Hello, > > Thanks for the replies. In response to H. Joe Lee, my application is in > earth sciences, more specifically in land use modeling, and my data is > configuration data for the model. It is in that sense that I may be using > hdf5 in an untypical way, it is not data that is acquired by sensors or > such, but the data in my hdf5 files represents calibration parameters for > the model. Hence the need to be able to easily edit them, and to resize > arrays - for example when you want to change the number of land use classes > in a specific simulation, you need to be able to resize a 10x500x600 array > to 8x500x600 (for example). We now use a multitude of solutions - xml files, > 2d matrices in single files where the number of files is the 3rd dimension, > etc. > > As for the question below, it is mostly (2), and sometimes (1). Example of > (2) I gave earlier, an example of (1) is time series of 2d data - in some > cases you enter values for e.g. 2000 and 2030, and the software interpolates > the values for the years between that, but a user may enter data for 2000, > 2010, 2020 and 2030. In that case, the length of that dimension of the array > would be 4, whereas in the first case it would be 2. > > regards > > Roel > > > > ________________________________ > From: Hdf-forum [mailto:hdf-forum-boun...@hdfgroup.org] On Behalf Of Peter > Cao > Sent: Friday, May 10, 2013 17:17 > To: hdf-forum@hdfgroup.org > Subject: Re: [Hdf-forum] Tools to edit hdf5 files? > > Could you be more specific on resizing data? Is it any of the following? > > 1) you defined your data as variable size and add/delete data from it, > 2) you define fixed length of dimensions and extend/shrink the dimensions, > or > 3) you define as 2D and change it to 1D, 3D, etc. > > Thanks > --pc > > On 5/8/2013 4:00 AM, Roel Vanhout wrote: > > Hello, > > Apologies if this is a question with an obvious answer, I've searched the > web and archives long and hard and couldn't find an answer. > > I'm looking to replace some of the data files of our software with hdf5 to > make it easier to edit them with external tools. Specifically, I need a way > to edit multi-dimensional arrays of numeric data, for which I figures hdf5 > would be a natural fit. However what I need are arrays with variable sizes. > It seems to be complicated to do that through the API, none of the popular > tools (HDFView, HDF Explorer) seem to support resizing data, and ViTables I > haven't been able to get to run on Windows. > > So my question is - is hdf5 suitable as a data format for data with varying > dimensions? What tools will let me work with that? Thanks. > > regards, > > Roel > > > > > _______________________________________________ > Hdf-forum is for HDF software users discussion. > Hdf-forum@hdfgroup.org > http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org > > > > _______________________________________________ > Hdf-forum is for HDF software users discussion. > Hdf-forum@hdfgroup.org > http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org > _______________________________________________ Hdf-forum is for HDF software users discussion. Hdf-forum@hdfgroup.org http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org