I’am performing the tutorial with ERS images on S1TBX (California subsidence)
I have downloaded the ERS images and uploaded in SNAP.
But when I was applying orbit Information I was not able to finish the procedure, because there has been an error:
The message is:
A problem occurred during the target product initialisation.
Type: OperatorExcepion
Message: org.jblas.NativeBlas.dgemM(CCIIID[DII[DIID[DII)V
well it’s a heavy problem.
currently it is impossible to run SNAP with Ubuntu 20.04 because libgfortran3 is no more available.
I have downloaded with the browser the package but after its installation the problem continues to go on because of the loss of some dependencies.
So I wiil return to 18.04 in the next week
Interesting. Debian-based distributions, which include Ubuntu, provide many different dynamically loaded libraries for the Basic Linear Algebra Subprograms (BLAS), using the “alternatives” mechanism to choose the one that will be used. With Ubuntu 20.04, the R stats package stopped working because the installation had set the BLAS alternative to a version that conflicted with the standard R installation.
If users don’t start using Focal Fossa and finding (and reporting) problems, they won’t get fixed.
After more research, I’m not sure the jblas.jar will use the Intel MKS. The documents explicitly say it uses either the netlib reference BLAS or Atlas optimized BLAS. Ubuntu 20.04 has a jblas package that uses a newer gfortran library:
I can reproduce the error on my system, which does have the Intel MKL installed. I have two Ubuntu 20.04 systems. On the one without SNAP installed, the distro jblas package
passes the self-test, but on the one with SNAP installed the test fails. I don’t think this has anything to do with SNAP, as other packages have installed different BLAS libraries. There are many reports of the org.jblas CONFIG BLAS native library not found in path. problem. I’m continuing to investigate.
jblas.jar has a simple test which(as expected) fails:
~/snap/jre/bin/java -jar ~/snap/s1tbx/modules/ext/org.jlinda.jlinda-core/org-jblas/jblas.jar
-- org.jblas INFO jblas version is 1.2.4
Simple benchmark for jblas
Running sanity benchmarks.
checking vector addition... ok
-- org.jblas CONFIG BLAS native library not found in path. Copying native library from the archive. Consider installing the library somewhere in the path (for Windows: PATH, for Linux: LD_LIBRARY_PATH).
-- org.jblas CONFIG ArchFlavor native library not found in path. Copying native library libjblas_arch_flavor from the archive. Consider installing the library somewhere in the path (for Windows: PATH, for Linux: LD_LIBRARY_PATH).
-- org.jblas CONFIG Loading libjblas_arch_flavor.so from /lib/static/Linux/amd64/, copying to libjblas_arch_flavor.so.
-- org.jblas ERROR Couldn't load copied link file: java.lang.UnsatisfiedLinkError: /tmp/jblas8826054659035303574/libjblas_arch_flavor.so: libgfortran.so.3: cannot open shared object file: No such file or directory.
On Linux 64bit, you need additional support libraries.
You need to install libgfortran3.
For example for debian or Ubuntu, type "sudo apt-get install libgfortran3"
For more information, see https://github.com/mikiobraun/jblas/wiki/Missing-Libraries
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.jblas.NativeBlas.dgemm(CCIIID[DII[DIID[DII)V
at org.jblas.NativeBlas.dgemm(Native Method)
at org.jblas.SimpleBlas.gemm(SimpleBlas.java:247)
at org.jblas.DoubleMatrix.mmuli(DoubleMatrix.java:1781)
at org.jblas.DoubleMatrix.mmul(DoubleMatrix.java:3138)
at org.jblas.util.SanityChecks.checkMatrixMultiplication(SanityChecks.java:91)
at org.jblas.util.SanityChecks.main(SanityChecks.java:182)
at org.jblas.benchmark.Main.main(Main.java:114)
-- org.jblas INFO Deleting /tmp/jblas8826054659035303574/libjblas_arch_flavor.so
-- org.jblas INFO Deleting /tmp/jblas8826054659035303574
The line: -- org.jblas CONFIG BLAS native library not found in path. Copying native library from the archive. Consider installing the library somewhere in the path (for Windows: PATH, for Linux: LD_LIBRARY_PATH) indicates that jblas first looks for a suitable BLAS library already installed. If that fails it attempts to use the library from the jar archive, whch has the libgfortran dependency.
‘libfortran3’ from NASA’s OCSSW software “works for me”. The NASA software is distributed as git bundles, but libgfortran.so.3 was added to the git repository after the bundle was created, so you need to download and extract the bundle and then git pull to get libgfortran.so.3:
Install these packages using this command (installation in root preferable )
sudo dpkg -i <package.deb>
first install gcc and then libfortran3 using above command.