Welcome to the BEAM Forum!

We encourage you to sign in our forum and participate in the BEAM community. The forum is maintained by the BEAM project team who will most likely answer your questions within 24 hours (except during common holidays) - if not done by other community members. Collaborate, share your knowledge and learn from other users!

If you don't find what you are looking for, please also consider the following external forums:

Combination View Flat View Tree View
Threads [ Previous | Next ]
no product writer for the 'HDF5' format available error
toggle
I work in IT Department of LOCEAN Laboratory ( https://www.locean-ipsl.upmc.fr/ ).
I'installed BEAM for one of our users.
The BEAM itself seems to work well, but the user want to use pconvert.sh utility to get HDF5 output.


However when we launch pconvert with h5 option we get an error : "error: failed to write product: no product writer for the 'HDF5' format available".

1> pconvert.sh -f h5 MER.N1
2[INFO] 2014-09-18T11:51:26.975+0200 - JAI tile scheduler parallelism set to 24
3reading file MER.N1
4writing a data product of size 1121 x 305 pixels to 'MER.h5'...
5error: failed to write product: no product writer for the 'HDF5' format available

And of course no h5 file was created.


If we launch it with "-d" options we get a little bit more information, i.e. java trace call.

 1org.esa.beam.framework.dataio.ProductIOException: no product writer for the 'HDF5' format available
 2    at org.esa.beam.framework.dataio.ProductIO.writeProduct(ProductIO.java:378)
 3    at org.esa.beam.pconvert.PConvertMain.convertToProduct(PConvertMain.java:702)
 4    at org.esa.beam.pconvert.PConvertMain.run(PConvertMain.java:505)
 5    at org.esa.beam.pconvert.PConvertMain.main(PConvertMain.java:208)
 6    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 7    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 8    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 9    at java.lang.reflect.Method.invoke(Unknown Source)
10    at com.bc.ceres.launcher.Launcher.launch(Launcher.java:154)
11    at com.bc.ceres.launcher.Launcher.main(Launcher.java:56)
12error: failed to write product: no product writer for the 'HDF5' format available


It's a little bit strange because hdf5 writer seems to be presented in beam's module directory. And a hdf library as well.
1
2> ls /opt/beam-5.0/modules/beam-hdf5-writer-5.0.jar
3/opt/beam-5.0/modules/beam-hdf5-writer-5.0.jar
4
5> ls /opt/beam-5.0/modules/lib-hdf-2.7.jar
6/opt/beam-5.0/modules/lib-hdf-2.7.jar


About OS : we use Scientific Linux 6.5 (it's very similar to CentOS 6.5)
About BEAM : we have VISAT Version 5.0 (build 6027 from 20140508)
1>pconvert.sh -?
2[INFO] 2014-09-18T11:46:57.619+0200 - JAI tile scheduler parallelism set to 24
3pconvert version 1.4


The Java version is :
1> java -version
2java version "1.7.0_55"
3Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
4Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)



I will be very appreciated for your help.
Flag Flag
RE: no product writer for the 'HDF5' format available error
9/19/14 9:56 AM as a reply to Paul Zakharov.
Hi Paul,

have you already started VISAT before using pconvert? If not, please start up VISAT once, close it again, and then try again.

In any case: have you tried to perfom the export from VISAT?

Cheers,
Thomas
Flag Flag
RE: no product writer for the 'HDF5' format available error
9/19/14 4:46 PM as a reply to Thomas Storm.
Thomas Storm:
Hi Paul,

have you already started VISAT before using pconvert? If not, please start up VISAT once, close it again, and then try again.


It does not work for me.


In any case: have you tried to perfom the export from VISAT?

Cheers,
Thomas


I can't find hdf5 export anymore in the 5.0 version of visat.
For the previous versions, I was using visat to export in hdf5, but it is not very convenient to export dozens of images....
Flag Flag
RE: no product writer for the 'HDF5' format available error
9/22/14 1:08 PM as a reply to Julien Brajard.
Hello Julien, hello Paul,

I think there is somthing wrong with the pconvert.sh script file.

It contains the following two lines:
1    "-Dncsa.hdf.hdflib.HDFLibrary.hdflib=$BEAM4_HOME/modules/lib-hdf-2.7/lib/libjhdf.jnilib"
2    "-Dncsa.hdf.hdf5lib.H5.hdf5lib=$BEAM4_HOME/modules/lib-hdf-2.7/lib/libjhdf5.jnilib"

Actually these lines are valid for Mac.
Please open the file in an editor and replace the file extension 'jnilib' by 'so'.
Afterwards it should work.

cheers
Marco
Flag Flag
RE: no product writer for the 'HDF5' format available error
9/23/14 4:50 PM as a reply to Marco Peters.
Hello, Thomas, hello Marco

At first thank you very much. It works now...
Briefly, we had to do the two manipulations... launch GUI at first and change the path to library in pconvert.sh.

After that it starts to work.

I'll write the second message with a little bit more details.
Flag Flag
RE: no product writer for the 'HDF5' format available error
9/23/14 5:04 PM as a reply to Paul Zakharov.
So, about details...

There is one strange thing.
Indeed, to have it works one should launch the GUI visat at first (and modify path in pconvert.sh in second).

The strange thing is that at Linux it does not suffice to launch it as normal user.

When we launch it as normal user there is no HDF5 option in Export menu.

But if you launch it as root, HDF5 will appear and then, after that, if you launch it as normal user it will be present as well.
Normally, I never launch GUI software as root, so it was not natural for me that I should do it.


I did not check, but it seems that it's about linux rights problem.
Probably, when we launch visat GUI for the first time it make some changes in installation path (/opt/beam-5.0/...).
But, as this directory installed and belong to root, the normal user has not right to change it, so the changes have not been done.

I hope that it will help for others linux users.

And, as I said, thank you very much for your help.
Flag Flag