Jwely / ledaps

Automatically exported from code.google.com/p/ledaps
0 stars 1 forks source link

Install dependent libraries?? #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 kayak2bl...@gmail.com on 4 Jun 2013 at 9:13

GoogleCodeExporter commented 9 years ago
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 comment by kayak2bl...@gmail.com on 5 Jun 2013 at 4:32

GoogleCodeExporter commented 9 years ago
We are working up some wording to help you along with this...

Original comment by davehil...@gmail.com on 5 Jun 2013 at 5:10

GoogleCodeExporter commented 9 years ago
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 comment by schmidtg...@gmail.com on 6 Jun 2013 at 2:30

GoogleCodeExporter commented 9 years ago
Thanks very much for your efforts. 

Original comment by kayak2b...@gmail.com on 6 Jun 2013 at 3:26

GoogleCodeExporter commented 9 years ago
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 comment by kayak2b...@gmail.com on 7 Jun 2013 at 8:11

GoogleCodeExporter commented 9 years ago
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 comment by schmidtg...@gmail.com on 11 Jun 2013 at 1:28

GoogleCodeExporter commented 9 years ago
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 comment by kayak2b...@gmail.com on 11 Jun 2013 at 1:56

GoogleCodeExporter commented 9 years ago
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 comment by schmidtg...@gmail.com on 11 Jun 2013 at 1:58

GoogleCodeExporter commented 9 years ago
Going to close this issue at this point.

Original comment by schmidtg...@gmail.com on 23 Jul 2013 at 6:29

GoogleCodeExporter commented 9 years ago
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 comment by Bangqian...@gmail.com on 9 Jan 2015 at 11:14

GoogleCodeExporter commented 9 years ago
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 comment by kayak2bl...@gmail.com on 9 Jan 2015 at 1:27

GoogleCodeExporter commented 9 years ago
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 comment by schmidtg...@gmail.com on 12 Jan 2015 at 5:51