diff options
author | MuQun Yang <ymuqun@hdfgroup.org> | 2000-11-08 23:14:41 (GMT) |
---|---|---|
committer | MuQun Yang <ymuqun@hdfgroup.org> | 2000-11-08 23:14:41 (GMT) |
commit | a219b97a88ffbc8d1641b1a1de7897823e7716ae (patch) | |
tree | 3a886a5dbe741f76056fa06869a6894c3e11eca5 /tools/h4toh5pal.c | |
parent | 34b23b7dfab6cfdc6d38d05b8c5cf4dde60a2059 (diff) | |
download | hdf5-a219b97a88ffbc8d1641b1a1de7897823e7716ae.zip hdf5-a219b97a88ffbc8d1641b1a1de7897823e7716ae.tar.gz hdf5-a219b97a88ffbc8d1641b1a1de7897823e7716ae.tar.bz2 |
[svn-r2839]
Purpose:
check in beta release h4toh5 converter
Description:
1. add copy right and other comments to all .h and .c files
2. fix bugs on sds unlimited dimension, hdf5 dimensional scale attribute and vdata translating
from h4 to h5.
Solution:
2.
1) for sds with unlimited dimension to be converted into extensible hdf5 dataset,
on hdf5 side, has to set a default chunk size even though the corresponding hdf4 file is not
chunked.
2) in this version, if sds object doesn't have dimensional scale data, we will not show
the default hdf4 dimensional name ("fakedim0", etc.) in the new hdf5 dimensional scale
name attribute.
3) fix a bug transferring vdata of which the field includes a character array. Make it correctly transfer into the corresponding hdf5 compound data type.
Platforms tested:
eirene,arabica,baldric,hawkwind,paz,gondolin on new set of hdf4 test files.
Diffstat (limited to 'tools/h4toh5pal.c')
-rw-r--r-- | tools/h4toh5pal.c | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/tools/h4toh5pal.c b/tools/h4toh5pal.c index fc59cce..9fc1ec7 100644 --- a/tools/h4toh5pal.c +++ b/tools/h4toh5pal.c @@ -1,3 +1,31 @@ +/*------------------------------------------------------------------------- + * + * Copyright (C) 2000 National Center for Supercomputing Applications. + * All rights reserved. + * + *------------------------------------------------------------------------- + */ + +/****************************************************************************** + + Description: + +1. converter + +See HDF4 to HDF5 mapping specification at +(http://hdf.ncsa.uiuc.edu/HDF5/papers/h4toh5) for the default mapping +from HDF4 object to HDF5 object. + +The whole converter includes 10 files, h4toh5util.h, h4toh5main.h, h4toh5util.c, h4toh5main.c, h4toh5sds.c, h4toh5image.c,h4toh5vdata.c,h4toh5vgroup.c,h4toh5pal.c and h4toh5anno.c. + +2. this file + +Converting an hdf4 palette object into a hdf5 dataset. +Author: Kent Yang(ymuqun@ncsa.uiuc.edu) + + +*****************************************************************************/ + #include "h4toh5main.h" @@ -62,7 +90,7 @@ int Palette_h4_to_h5(int32 file_id,int32 pal_id,hid_t h5g,char*pal_name) { uint8. */ if (h5type == H5T_STRING) { - if(h5string_to_int(DFNT_UCHAR8,&h5memtype,h4memsize,&h5type)==FAIL) { + if(h5string_to_int(pal_type,&h5memtype,h4memsize,&h5type)==FAIL) { fprintf(stderr,"failed to translate H5T_STRING to int8."); return FAIL; } |