Install dependent libraries?? #5

Closed
ronaldddilley opened this Issue Jun 1, 2015 · 12 comments

Comments

Projects
None yet
1 participant
@ronaldddilley
Member

ronaldddilley commented Jun 1, 2015

Hello.
I am having immense difficulty finding the correct dependent libraries listed in step
one of the the ledaps installation guide:

1. Install dependent libraries - HDF-EOS GCTP, HDF4, HDF-EOS2, TIFF, GeoTIFF

Google has not been my friend on this. I have spent virtually an entire day installing
and uninstalling several different libraries. A google search of ' "HDF-EOS GCTP" library'
turns up nothing other than the original install documentation for ledaps I cited above.


Below is a list of what I am guessing are the correct libraries but a nod from you
guys would go along way to me keeping my sanity.

HDF4 is the correct version  http://hdf-eos4.sourcearchive.com/downloads/2.17v1.00.dfsg.1-3/

HDF-EOS2 is this the correct version  ftp://edhs1.gsfc.nasa.gov/edhs/hdfeos/latest_release/HDF-EOS2.18v1.00.tar.Z

TIFF is this the correct version:  tiff-4.0.3.tar.gz from ftp://ftp.remotesensing.org/pub/libtiff


GeoTIFF is this the correct version: libgeotiff-1.3.0.tar.gz from here ftp://ftp.remotesensing.org/pub/geotiff/libgeotiff/
(I couldn't get 1.4.0 to build) 

Thanks in advance.
Geordie Hobart
ghobart@nrcan.gc.ca





Original issue reported on code.google.com by kayak2bliss on 2013-06-04 21:13:06

@ronaldddilley

This comment has been minimized.

Show comment
Hide comment
@ronaldddilley

ronaldddilley Jun 1, 2015

Member
Some extra information just in case it is needed. I am attempting to install this on
a Scientific Linux SL release 5.4 (Boron) box running the kernel 2.6.18-194.11.1.el5xen.

Original issue reported on code.google.com by kayak2bliss on 2013-06-05 16:32:43

Member

ronaldddilley commented Jun 1, 2015

Some extra information just in case it is needed. I am attempting to install this on
a Scientific Linux SL release 5.4 (Boron) box running the kernel 2.6.18-194.11.1.el5xen.

Original issue reported on code.google.com by kayak2bliss on 2013-06-05 16:32:43

@ronaldddilley

This comment has been minimized.

Show comment
Hide comment
@ronaldddilley

ronaldddilley Jun 1, 2015

Member
We are working up some wording to help you along with this...

Original issue reported on code.google.com by davehill75 on 2013-06-05 17:10:38

Member

ronaldddilley commented Jun 1, 2015

We are working up some wording to help you along with this...

Original issue reported on code.google.com by davehill75 on 2013-06-05 17:10:38

@ronaldddilley

This comment has been minimized.

Show comment
Hide comment
@ronaldddilley

ronaldddilley Jun 1, 2015

Member
Geordie - thanks for the questions. If the following information doesn't answer your
questions or solve your issues, just let us know.

The versions of the libraries which we used to build and test LEDAPS are as follows:

hdf-4.2.5
hdfeos2.17.v1.00  (GCTP library is included in this software)
tiff-3.8.2
geotiff-1.2.5
zlib-1.2.7 (if not available as part of your current Linux install)
szip-2.1 (if desired)

HDF4 libraries obtained from http://www.hdfgroup.org/downloads
HDF-EOS libraries obtained from http://hdfeos.org/software/library.php
TIFF libraries obtained from http://download.osgeo.org/libtiff
GeoTIFF libraries obtained from http://download.osgeo.org/geotiff/libgeotiff

My notes indicated that jpeg v7+ is not supported by HDF4, so we had to pull jpeg v6b
from ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz, just in case you run into issues
with this as well.

When building HDF, the following configure statement was used (pointing to the location
of my local zlib and jpeg libraries).  If you have system jpeg and zlib libraries,
then the --with-{whatever_library} options won't be needed.  And, if you want your
libraries to be written to /usr/lib, then you won't need the --prefix option.
./configure --with-zlib=/home/gschmidt/zlib-1.2.7 --with-jpeg=/home/gschmidt/jpeg-6b
--prefix=/home/gschmidt/hdf-4.2.5

When building HDF-EOS, the following configure statement was used.
./configure --prefix=/home/gschmidt/hdfeos2.17v1.00/hdfeos --with-hdf4=/home/gschmidt/hdf-4.2.5
--with-jpeg=/home/gschmidt/jpeg-6b --enable-install-include

Original issue reported on code.google.com by schmidtga00 on 2013-06-06 14:30:25

Member

ronaldddilley commented Jun 1, 2015

Geordie - thanks for the questions. If the following information doesn't answer your
questions or solve your issues, just let us know.

The versions of the libraries which we used to build and test LEDAPS are as follows:

hdf-4.2.5
hdfeos2.17.v1.00  (GCTP library is included in this software)
tiff-3.8.2
geotiff-1.2.5
zlib-1.2.7 (if not available as part of your current Linux install)
szip-2.1 (if desired)

HDF4 libraries obtained from http://www.hdfgroup.org/downloads
HDF-EOS libraries obtained from http://hdfeos.org/software/library.php
TIFF libraries obtained from http://download.osgeo.org/libtiff
GeoTIFF libraries obtained from http://download.osgeo.org/geotiff/libgeotiff

My notes indicated that jpeg v7+ is not supported by HDF4, so we had to pull jpeg v6b
from ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz, just in case you run into issues
with this as well.

When building HDF, the following configure statement was used (pointing to the location
of my local zlib and jpeg libraries).  If you have system jpeg and zlib libraries,
then the --with-{whatever_library} options won't be needed.  And, if you want your
libraries to be written to /usr/lib, then you won't need the --prefix option.
./configure --with-zlib=/home/gschmidt/zlib-1.2.7 --with-jpeg=/home/gschmidt/jpeg-6b
--prefix=/home/gschmidt/hdf-4.2.5

When building HDF-EOS, the following configure statement was used.
./configure --prefix=/home/gschmidt/hdfeos2.17v1.00/hdfeos --with-hdf4=/home/gschmidt/hdf-4.2.5
--with-jpeg=/home/gschmidt/jpeg-6b --enable-install-include

Original issue reported on code.google.com by schmidtga00 on 2013-06-06 14:30:25

@ronaldddilley

This comment has been minimized.

Show comment
Hide comment
@ronaldddilley

ronaldddilley Jun 1, 2015

Member
Thanks very much for your efforts. 

Original issue reported on code.google.com by kayak2biss on 2013-06-06 15:26:08

Member

ronaldddilley commented Jun 1, 2015

Thanks very much for your efforts. 

Original issue reported on code.google.com by kayak2biss on 2013-06-06 15:26:08

@ronaldddilley

This comment has been minimized.

Show comment
Hide comment
@ronaldddilley

ronaldddilley Jun 1, 2015

Member
Hi 
Thanks for the help. I was able to get ledaps up and running yesterday on my Sci linux
box.
I generated an SR image and compared it to one I ordered through https://espa.cr.usgs.gov.
The values were nearly identical but not exactly the same. (off by one in some bands)
I'm hoping this is machine specific issue due different architectures. Do you have
any thoughts on this?
I was also curious ... Is there any options and switches that I could use with the
leadaps programs that I could use to limit my outputs ( I only need SR). I have not
been successful in finding an useful documentation describing these processes' options.
With that in mind do I need to run all four programs ( lndcal,lndth, lndcsm, and lndsr
) to get surface reflectance?
On final question. My linux solution is network bound because it is not possible for
me to co-locate my executable and the data. Is it possible to install and run ledaps
on a Windows 7 64 bit machine? Is there any documentation/manual for a windows install?
Thanks for all your help.
Geordie

Original issue reported on code.google.com by kayak2biss on 2013-06-07 20:11:48

Member

ronaldddilley commented Jun 1, 2015

Hi 
Thanks for the help. I was able to get ledaps up and running yesterday on my Sci linux
box.
I generated an SR image and compared it to one I ordered through https://espa.cr.usgs.gov.
The values were nearly identical but not exactly the same. (off by one in some bands)
I'm hoping this is machine specific issue due different architectures. Do you have
any thoughts on this?
I was also curious ... Is there any options and switches that I could use with the
leadaps programs that I could use to limit my outputs ( I only need SR). I have not
been successful in finding an useful documentation describing these processes' options.
With that in mind do I need to run all four programs ( lndcal,lndth, lndcsm, and lndsr
) to get surface reflectance?
On final question. My linux solution is network bound because it is not possible for
me to co-locate my executable and the data. Is it possible to install and run ledaps
on a Windows 7 64 bit machine? Is there any documentation/manual for a windows install?
Thanks for all your help.
Geordie

Original issue reported on code.google.com by kayak2biss on 2013-06-07 20:11:48

@ronaldddilley

This comment has been minimized.

Show comment
Hide comment
@ronaldddilley

ronaldddilley Jun 1, 2015

Member
Thanks for the information/feedback on the install.  I'm glad you have the software
built and running.  The off by one could simply be the differences in architectures.

Regarding the LEDAPS processing itself, there are script files in the ledapsSrc/bin
directory which run the LEDAPS apps.  If you use that script, it will handle running
through all the LEDAPS applications for you.  do_ledaps.py --help will provide you
with the necessary inputs required to run the Python script.  Mainly, you need to have
the LEDAPS binaries in your PATH, then run "do_ledaps.py --metafile metafile.mtl".
 This will call lndpm, lndcal, lndsr, and finally lndsrbm.  The output from this will
include various header and text files used for processing, the lndth.hdf file, and
the lndsr.hdf file.  The lndth.hdf file can be thrown away if you don't want it, as
the thermal band in that file is copied to the lndsr.hdf file as part of the lndsrbm
processing.

Original issue reported on code.google.com by schmidtga00 on 2013-06-11 13:28:39

Member

ronaldddilley commented Jun 1, 2015

Thanks for the information/feedback on the install.  I'm glad you have the software
built and running.  The off by one could simply be the differences in architectures.

Regarding the LEDAPS processing itself, there are script files in the ledapsSrc/bin
directory which run the LEDAPS apps.  If you use that script, it will handle running
through all the LEDAPS applications for you.  do_ledaps.py --help will provide you
with the necessary inputs required to run the Python script.  Mainly, you need to have
the LEDAPS binaries in your PATH, then run "do_ledaps.py --metafile metafile.mtl".
 This will call lndpm, lndcal, lndsr, and finally lndsrbm.  The output from this will
include various header and text files used for processing, the lndth.hdf file, and
the lndsr.hdf file.  The lndth.hdf file can be thrown away if you don't want it, as
the thermal band in that file is copied to the lndsr.hdf file as part of the lndsrbm
processing.

Original issue reported on code.google.com by schmidtga00 on 2013-06-11 13:28:39

@ronaldddilley

This comment has been minimized.

Show comment
Hide comment
@ronaldddilley

ronaldddilley Jun 1, 2015

Member
Hi again. 
Thanks for your response.

Do you know if anyone has successfully built leadaps as a windows executable? If yes
is there any documentation or hints that you can give me on how to achieve this?

Best regards
Geordie

Original issue reported on code.google.com by kayak2biss on 2013-06-11 13:56:01

Member

ronaldddilley commented Jun 1, 2015

Hi again. 
Thanks for your response.

Do you know if anyone has successfully built leadaps as a windows executable? If yes
is there any documentation or hints that you can give me on how to achieve this?

Best regards
Geordie

Original issue reported on code.google.com by kayak2biss on 2013-06-11 13:56:01

@ronaldddilley

This comment has been minimized.

Show comment
Hide comment
@ronaldddilley

ronaldddilley Jun 1, 2015

Member
If you have Cygwin installed then you should be able to build the software on Windows
in a similar manner as Linux.  I have not built this software on Windows other than
using Cygwin.

Original issue reported on code.google.com by schmidtga00 on 2013-06-11 13:58:32

Member

ronaldddilley commented Jun 1, 2015

If you have Cygwin installed then you should be able to build the software on Windows
in a similar manner as Linux.  I have not built this software on Windows other than
using Cygwin.

Original issue reported on code.google.com by schmidtga00 on 2013-06-11 13:58:32

@ronaldddilley

This comment has been minimized.

Show comment
Hide comment
@ronaldddilley

ronaldddilley Jun 1, 2015

Member
Going to close this issue at this point.

Original issue reported on code.google.com by schmidtga00 on 2013-07-23 18:29:36

Member

ronaldddilley commented Jun 1, 2015

Going to close this issue at this point.

Original issue reported on code.google.com by schmidtga00 on 2013-07-23 18:29:36

@ronaldddilley

This comment has been minimized.

Show comment
Hide comment
@ronaldddilley

ronaldddilley Jun 1, 2015

Member
Can you provide a links for all the dependent libraries and some detail about the installation
of LEDAPS 2.1.0 or 2.2.0? I still have some problems about the installation about the
newest version.

Original issue reported on code.google.com by Bangqian.Chen on 2015-01-09 11:14:06

Member

ronaldddilley commented Jun 1, 2015

Can you provide a links for all the dependent libraries and some detail about the installation
of LEDAPS 2.1.0 or 2.2.0? I still have some problems about the installation about the
newest version.

Original issue reported on code.google.com by Bangqian.Chen on 2015-01-09 11:14:06

@ronaldddilley

This comment has been minimized.

Show comment
Hide comment
@ronaldddilley

ronaldddilley Jun 1, 2015

Member
Hi there.
Thanks fore the email.
I have not installed 2.0 as of yet so I can't answer your questions.
Gail and the dev team has been fantastic at responding to my queries but
they may not be monitoring this thread as it is quite dated.
If you do not receive a response from them in a couple of days I would
start a new issue.
Best of luck.
Geordie

Original issue reported on code.google.com by kayak2bliss on 2015-01-09 13:27:16

Member

ronaldddilley commented Jun 1, 2015

Hi there.
Thanks fore the email.
I have not installed 2.0 as of yet so I can't answer your questions.
Gail and the dev team has been fantastic at responding to my queries but
they may not be monitoring this thread as it is quite dated.
If you do not receive a response from them in a couple of days I would
start a new issue.
Best of luck.
Geordie

Original issue reported on code.google.com by kayak2bliss on 2015-01-09 13:27:16

@ronaldddilley

This comment has been minimized.

Show comment
Hide comment
@ronaldddilley

ronaldddilley Jun 1, 2015

Member
The installation and dependencies information has been updated on the Wikis for versions
2.0.0 and 2.2.0.

Here is the link to LIBXML2 webpage: http://xmlsoft.org/. RPMs are usually available
for Linux systems.

Hopefully this helps move you forward...

Original issue reported on code.google.com by schmidtga00 on 2015-01-12 17:51:04

Member

ronaldddilley commented Jun 1, 2015

The installation and dependencies information has been updated on the Wikis for versions
2.0.0 and 2.2.0.

Here is the link to LIBXML2 webpage: http://xmlsoft.org/. RPMs are usually available
for Linux systems.

Hopefully this helps move you forward...

Original issue reported on code.google.com by schmidtga00 on 2015-01-12 17:51:04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment