Hello Javier,
The CSK images are known to cause errors in a few cases. Sometimes, GDAL
fails to interpret datasets with 3 dimensions (multi-band datasets), and
the number of detected bands is mistaken with one of the 2D buffer
dimensions. I think a patch has already been submitted to GDAL.
In order to detail your problem, could you send the results of the
application *otbcli_ReadImageInfo* on your .h5 image (also print the
keywordlist).
You could also check what *gdalinfo *is reporting (might be a bit
verbose with all the metadata).
Regards,
Guillaume
Le 17/07/2014 08:30, Javier a écrit :
Dear,
I installed OTB 4in Linux, for which I installed GDAL 1.11. I am
working with L1 images both optical and SAR and I've found that hdf5
(.h5) images of CSK produce an error when trying to access its
metadata. Using the Ortho-rectification program I obtain the next error.
OTB-4.0.0/Code/Projections/otbImageToGenericRSOutputParameters.txx:50:
itk::ERROR: ImageToGenericRSOutputParameters(0x15af480): No
information in the metadata, please set an image with non empty metadata
At the end of the program execution I obtain the next error:
$ otbgui_OrthoRectification
HDF5-DIAG: Error detected in HDF5 (1.8.5-patch1) thread 0:
#000: ../../src/H5D.c line 377 in H5Dclose(): not a dataset
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.5-patch1) thread 0:
#000: ../../src/H5S.c line 365 in H5Sclose(): not a dataspace
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.5-patch1) thread 0:
#000: ../../src/H5T.c line 1721 in H5Tclose(): not a datatype
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.5-patch1) thread 0:
#000: ../../src/H5T.c line 1721 in H5Tclose(): not a datatype
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.5-patch1) thread 0:
#000: ../../src/H5G.c line 711 in H5Gclose(): not a group
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.5-patch1) thread 0:
#000: ../../src/H5F.c line 1957 in H5Fclose(): invalid file identifier
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.5-patch1) thread 0:
#000: ../../src/H5T.c line 1721 in H5Tclose(): not a datatype
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.5-patch1) thread 0:
#000: ../../src/H5T.c line 1721 in H5Tclose(): not a datatype
major: Invalid arguments to routine
minor: Inappropriate type
[SAR\jmartin@workstationrh5 build]$ otbgui_Convert
Warning 1: Lost metadata writing to GeoTIFF ... too large to fit in tag.
HDF5-DIAG: Error detected in HDF5 (1.8.5-patch1) thread 0:
#000: ../../src/H5D.c line 377 in H5Dclose(): not a dataset
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.5-patch1) thread 0:
#000: ../../src/H5S.c line 365 in H5Sclose(): not a dataspace
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.5-patch1) thread 0:
#000: ../../src/H5T.c line 1721 in H5Tclose(): not a datatype
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.5-patch1) thread 0:
#000: ../../src/H5T.c line 1721 in H5Tclose(): not a datatype
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.5-patch1) thread 0:
#000: ../../src/H5G.c line 711 in H5Gclose(): not a group
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.5-patch1) thread 0:
#000: ../../src/H5F.c line 1957 in H5Fclose(): invalid file identifier
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.5-patch1) thread 0:
#000: ../../src/H5T.c line 1721 in H5Tclose(): not a datatype
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.5-patch1) thread 0:
#000: ../../src/H5T.c line 1721 in H5Tclose(): not a datatype
major: Invalid arguments to routine
minor: Inappropriate type
GDAL configuration is the next:
./configure --prefix=/usr/local --with-libtiff=internal
--with-geotiff=internal --with-rename-internal-libtiff-symbols=yes
--with-rename-internal-libgeotiff-symbols=yes --with-hdf4 --with-hdf5
The report configuration:
...
LIBTIFF support: internal (BigTIFF=yes)
LIBGEOTIFF support: internal
...
HDF4 support: yes
HDF5 support: yes
...
I solved one error in the GDAL frmts/hdf5 hdf5dataset.cpp, the
MAX_METADATA_LEN definition is 32768, this caused the metadata
truncation. The problem was solved by Increasing this MAX_METADATA_LEN
to 1 MByte. Still the metadata reading problem persists. Do you have
any idea?
Best regards.
Javier.
--
--
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html
You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
---
You received this message because you are subscribed to the Google
Groups "otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.
--
<www.c-s.fr> *Guillaume PASERO*
Ingénieur d'études et développement
*Business Unit E-SPACE & Geo Information*
<https://thor.si.c-s.fr/blogs/cs-blogs-business/>*- Département
APPLICATIONS*
*CS Systèmes d'Information*
Parc de la Grande Plaine - 5, Rue Brindejonc des Moulinais - BP 15872
31506 Toulouse Cedex 05 - FRANCE
+33 561 17 64 21 - [email protected]
--
--
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html
You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
---
You received this message because you are subscribed to the Google Groups "otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.