[pktools] 68/375: moved SensorModel.h from algorithms to models and introduced Prospect model
Bas Couwenberg
sebastic at xs4all.nl
Wed Dec 3 21:53:59 UTC 2014
This is an automated email from the git hooks/post-receive script.
sebastic-guest pushed a commit to branch upstream-master
in repository pktools.
commit 5ada2b80afdfa51537969fc655d74e8b03de9644
Author: Pieter Kempeneers <kempenep at gmail.com>
Date: Mon Feb 25 16:19:59 2013 +0100
moved SensorModel.h from algorithms to models and introduced Prospect model
---
Makefile.am | 1 +
Makefile.in | 1 +
configure | 3 +-
configure.ac | 1 +
src/algorithms/Makefile.am | 2 +-
src/algorithms/Makefile.in | 8 +-
src/apps/Makefile.am | 4 +-
src/apps/Makefile.in | 27 +-
src/models/.deps/Prospect.Po | 127 ++++++
src/models/.deps/pktestProspect.Po | 748 +++++++++++++++++++++++++++++++
src/{algorithms => models}/Makefile.am | 20 +-
src/models/Prospect.cc | 31 ++
src/models/Prospect.h | 58 +++
src/{algorithms => models}/SensorModel.h | 0
src/models/dataspec_p5b.mod | 45 ++
src/models/pktestProspect.cc | 76 ++++
16 files changed, 1129 insertions(+), 23 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index daabe2a..790cb37 100755
--- a/Makefile.am
+++ b/Makefile.am
@@ -4,6 +4,7 @@ ACLOCAL_AMFLAGS = -I m4
# the subdirectories of the project to go into
SUBDIRS = src/base \
src/algorithms \
+ src/models \
src/imageclasses \
$(FILECLASSES_OPT) \
src/apps
diff --git a/Makefile.in b/Makefile.in
index 7146fbd..7a4005d 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -217,6 +217,7 @@ ACLOCAL_AMFLAGS = -I m4
# the subdirectories of the project to go into
SUBDIRS = src/base \
src/algorithms \
+ src/models \
src/imageclasses \
$(FILECLASSES_OPT) \
src/apps
diff --git a/configure b/configure
index 5ea37c6..2161137 100755
--- a/configure
+++ b/configure
@@ -5845,7 +5845,7 @@ fi
# files to generate via autotools (.am or .in source files)
ac_config_headers="$ac_config_headers config.h"
-ac_config_files="$ac_config_files Makefile src/base/Makefile src/algorithms/Makefile src/imageclasses/Makefile src/fileclasses/Makefile src/apps/Makefile"
+ac_config_files="$ac_config_files Makefile src/base/Makefile src/algorithms/Makefile src/models/Makefile src/imageclasses/Makefile src/fileclasses/Makefile src/apps/Makefile"
# generate the final Makefile etc.
@@ -6603,6 +6603,7 @@ do
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
"src/base/Makefile") CONFIG_FILES="$CONFIG_FILES src/base/Makefile" ;;
"src/algorithms/Makefile") CONFIG_FILES="$CONFIG_FILES src/algorithms/Makefile" ;;
+ "src/models/Makefile") CONFIG_FILES="$CONFIG_FILES src/models/Makefile" ;;
"src/imageclasses/Makefile") CONFIG_FILES="$CONFIG_FILES src/imageclasses/Makefile" ;;
"src/fileclasses/Makefile") CONFIG_FILES="$CONFIG_FILES src/fileclasses/Makefile" ;;
"src/apps/Makefile") CONFIG_FILES="$CONFIG_FILES src/apps/Makefile" ;;
diff --git a/configure.ac b/configure.ac
index f5ef3fb..dd1e2e5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -95,6 +95,7 @@ AC_CONFIG_FILES([
Makefile
src/base/Makefile
src/algorithms/Makefile
+src/models/Makefile
src/imageclasses/Makefile
src/fileclasses/Makefile
src/apps/Makefile
diff --git a/src/algorithms/Makefile.am b/src/algorithms/Makefile.am
index be84cb4..40d4bee 100644
--- a/src/algorithms/Makefile.am
+++ b/src/algorithms/Makefile.am
@@ -27,7 +27,7 @@ libalgorithms_a_HEADERS += myfann_cpp.h
endif
if USE_NLOPT
-libalgorithms_a_HEADERS += SensorModel.h OptFactory.h
+libalgorithms_a_HEADERS += OptFactory.h
endif
# the sources to add to the library and to add to the source distribution
diff --git a/src/algorithms/Makefile.in b/src/algorithms/Makefile.in
index a0dda50..a5e3600 100644
--- a/src/algorithms/Makefile.in
+++ b/src/algorithms/Makefile.in
@@ -36,7 +36,7 @@ PRE_UNINSTALL = :
POST_UNINSTALL = :
noinst_PROGRAMS = pktestStat$(EXEEXT)
@USE_FANN_TRUE at am__append_1 = myfann_cpp.h
- at USE_NLOPT_TRUE@am__append_2 = SensorModel.h OptFactory.h
+ at USE_NLOPT_TRUE@am__append_2 = OptFactory.h
subdir = src/algorithms
DIST_COMMON = $(am__libalgorithms_a_HEADERS_DIST) \
$(srcdir)/Makefile.am $(srcdir)/Makefile.in
@@ -56,8 +56,8 @@ libalgorithms_a_AR = $(AR) $(ARFLAGS)
libalgorithms_a_LIBADD =
am__libalgorithms_a_SOURCES_DIST = Egcs.h Filter2d.h Filter.h \
StatFactory.h ConfusionMatrix.h svm.h FeatureSelector.h \
- myfann_cpp.h SensorModel.h OptFactory.h Egcs.cc Filter2d.cc \
- Filter.cc ConfusionMatrix.cc svm.cpp
+ myfann_cpp.h OptFactory.h Egcs.cc Filter2d.cc Filter.cc \
+ ConfusionMatrix.cc svm.cpp
am__objects_1 =
am__objects_2 = $(am__objects_1) $(am__objects_1)
am_libalgorithms_a_OBJECTS = $(am__objects_2) Egcs.$(OBJEXT) \
@@ -89,7 +89,7 @@ DIST_SOURCES = $(am__libalgorithms_a_SOURCES_DIST) \
$(pktestStat_SOURCES)
am__libalgorithms_a_HEADERS_DIST = Egcs.h Filter2d.h Filter.h \
StatFactory.h ConfusionMatrix.h svm.h FeatureSelector.h \
- myfann_cpp.h SensorModel.h OptFactory.h
+ myfann_cpp.h OptFactory.h
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
diff --git a/src/apps/Makefile.am b/src/apps/Makefile.am
index c68e2a3..b7e1c0a 100644
--- a/src/apps/Makefile.am
+++ b/src/apps/Makefile.am
@@ -1,6 +1,6 @@
AM_CXXFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/base $(GDAL_CFLAGS) @AM_CXXFLAGS@
AM_LDFLAGS = $(GDAL_LDFLAGS) $(top_builddir)/src/algorithms/libalgorithms.a $(top_builddir)/src/imageclasses/libimageClasses.a @AM_LDFLAGS@
-LDADD = $(GDAL_LDFLAGS) $(top_builddir)/src/algorithms/libalgorithms.a $(top_builddir)/src/imageclasses/libimageClasses.a
+LDADD = $(GDAL_LDFLAGS) $(top_builddir)/src/algorithms/libalgorithms.a $(top_builddir)/src/models/libmodels.a $(top_builddir)/src/imageclasses/libimageClasses.a
###############################################################################
# THE PROGRAMS TO BUILD
###############################################################################
@@ -28,7 +28,7 @@ pklas2img_LDADD = -L$(top_builddir)/src/fileclasses -lfileClasses -llas $(AM_LDF
endif
if USE_NLOPT
bin_PROGRAMS += pksensormodel pkopt_svm
-pksensormodel_SOURCES = $(top_srcdir)/src/algorithms/SensorModel.h pksensormodel.h pksensormodel.cc
+pksensormodel_SOURCES = $(top_srcdir)/src/models/SensorModel.h pksensormodel.h pksensormodel.cc
pksensormodel_LDADD = $(GSL_LIBS) $(AM_LDFLAGS) -lnlopt -lm -lgslwrap
pkopt_svm_SOURCES = $(top_srcdir)/src/algorithms/OptFactory.h pkclassify_nn.h pkopt_svm.cc
pkopt_svm_LDADD = $(GSL_LIBS) $(AM_LDFLAGS) -lnlopt
diff --git a/src/apps/Makefile.in b/src/apps/Makefile.in
index 039a633..6b921aa 100644
--- a/src/apps/Makefile.in
+++ b/src/apps/Makefile.in
@@ -71,12 +71,14 @@ pkascii2img_LDADD = $(LDADD)
am__DEPENDENCIES_1 =
pkascii2img_DEPENDENCIES = $(am__DEPENDENCIES_1) \
$(top_builddir)/src/algorithms/libalgorithms.a \
+ $(top_builddir)/src/models/libmodels.a \
$(top_builddir)/src/imageclasses/libimageClasses.a
am_pkascii2ogr_OBJECTS = pkascii2ogr.$(OBJEXT)
pkascii2ogr_OBJECTS = $(am_pkascii2ogr_OBJECTS)
pkascii2ogr_LDADD = $(LDADD)
pkascii2ogr_DEPENDENCIES = $(am__DEPENDENCIES_1) \
$(top_builddir)/src/algorithms/libalgorithms.a \
+ $(top_builddir)/src/models/libmodels.a \
$(top_builddir)/src/imageclasses/libimageClasses.a
am__pkclassify_nn_SOURCES_DIST = \
$(top_srcdir)/src/algorithms/myfann_cpp.h pkclassify_nn.h \
@@ -96,48 +98,56 @@ pkclassify_svm_OBJECTS = $(am_pkclassify_svm_OBJECTS)
pkclassify_svm_LDADD = $(LDADD)
pkclassify_svm_DEPENDENCIES = $(am__DEPENDENCIES_1) \
$(top_builddir)/src/algorithms/libalgorithms.a \
+ $(top_builddir)/src/models/libmodels.a \
$(top_builddir)/src/imageclasses/libimageClasses.a
am_pkcreatect_OBJECTS = pkcreatect.$(OBJEXT)
pkcreatect_OBJECTS = $(am_pkcreatect_OBJECTS)
pkcreatect_LDADD = $(LDADD)
pkcreatect_DEPENDENCIES = $(am__DEPENDENCIES_1) \
$(top_builddir)/src/algorithms/libalgorithms.a \
+ $(top_builddir)/src/models/libmodels.a \
$(top_builddir)/src/imageclasses/libimageClasses.a
am_pkcrop_OBJECTS = pkcrop.$(OBJEXT)
pkcrop_OBJECTS = $(am_pkcrop_OBJECTS)
pkcrop_LDADD = $(LDADD)
pkcrop_DEPENDENCIES = $(am__DEPENDENCIES_1) \
$(top_builddir)/src/algorithms/libalgorithms.a \
+ $(top_builddir)/src/models/libmodels.a \
$(top_builddir)/src/imageclasses/libimageClasses.a
am_pkdiff_OBJECTS = pkdiff.$(OBJEXT)
pkdiff_OBJECTS = $(am_pkdiff_OBJECTS)
pkdiff_LDADD = $(LDADD)
pkdiff_DEPENDENCIES = $(am__DEPENDENCIES_1) \
$(top_builddir)/src/algorithms/libalgorithms.a \
+ $(top_builddir)/src/models/libmodels.a \
$(top_builddir)/src/imageclasses/libimageClasses.a
am_pkdsm2shadow_OBJECTS = pkdsm2shadow.$(OBJEXT)
pkdsm2shadow_OBJECTS = $(am_pkdsm2shadow_OBJECTS)
pkdsm2shadow_LDADD = $(LDADD)
pkdsm2shadow_DEPENDENCIES = $(am__DEPENDENCIES_1) \
$(top_builddir)/src/algorithms/libalgorithms.a \
+ $(top_builddir)/src/models/libmodels.a \
$(top_builddir)/src/imageclasses/libimageClasses.a
am_pkdumpimg_OBJECTS = pkdumpimg.$(OBJEXT)
pkdumpimg_OBJECTS = $(am_pkdumpimg_OBJECTS)
pkdumpimg_LDADD = $(LDADD)
pkdumpimg_DEPENDENCIES = $(am__DEPENDENCIES_1) \
$(top_builddir)/src/algorithms/libalgorithms.a \
+ $(top_builddir)/src/models/libmodels.a \
$(top_builddir)/src/imageclasses/libimageClasses.a
am_pkdumpogr_OBJECTS = pkdumpogr.$(OBJEXT)
pkdumpogr_OBJECTS = $(am_pkdumpogr_OBJECTS)
pkdumpogr_LDADD = $(LDADD)
pkdumpogr_DEPENDENCIES = $(am__DEPENDENCIES_1) \
$(top_builddir)/src/algorithms/libalgorithms.a \
+ $(top_builddir)/src/models/libmodels.a \
$(top_builddir)/src/imageclasses/libimageClasses.a
am_pkeditogr_OBJECTS = pkeditogr.$(OBJEXT)
pkeditogr_OBJECTS = $(am_pkeditogr_OBJECTS)
pkeditogr_LDADD = $(LDADD)
pkeditogr_DEPENDENCIES = $(am__DEPENDENCIES_1) \
$(top_builddir)/src/algorithms/libalgorithms.a \
+ $(top_builddir)/src/models/libmodels.a \
$(top_builddir)/src/imageclasses/libimageClasses.a
am_pkegcs_OBJECTS = pkegcs.$(OBJEXT)
pkegcs_OBJECTS = $(am_pkegcs_OBJECTS)
@@ -147,12 +157,14 @@ pkextract_OBJECTS = $(am_pkextract_OBJECTS)
pkextract_LDADD = $(LDADD)
pkextract_DEPENDENCIES = $(am__DEPENDENCIES_1) \
$(top_builddir)/src/algorithms/libalgorithms.a \
+ $(top_builddir)/src/models/libmodels.a \
$(top_builddir)/src/imageclasses/libimageClasses.a
am_pkfillnodata_OBJECTS = pkfillnodata.$(OBJEXT)
pkfillnodata_OBJECTS = $(am_pkfillnodata_OBJECTS)
pkfillnodata_LDADD = $(LDADD)
pkfillnodata_DEPENDENCIES = $(am__DEPENDENCIES_1) \
$(top_builddir)/src/algorithms/libalgorithms.a \
+ $(top_builddir)/src/models/libmodels.a \
$(top_builddir)/src/imageclasses/libimageClasses.a
am_pkfilter_OBJECTS = pkfilter.$(OBJEXT)
pkfilter_OBJECTS = $(am_pkfilter_OBJECTS)
@@ -174,12 +186,14 @@ pkgetmask_OBJECTS = $(am_pkgetmask_OBJECTS)
pkgetmask_LDADD = $(LDADD)
pkgetmask_DEPENDENCIES = $(am__DEPENDENCIES_1) \
$(top_builddir)/src/algorithms/libalgorithms.a \
+ $(top_builddir)/src/models/libmodels.a \
$(top_builddir)/src/imageclasses/libimageClasses.a
am_pkinfo_OBJECTS = pkinfo.$(OBJEXT)
pkinfo_OBJECTS = $(am_pkinfo_OBJECTS)
pkinfo_LDADD = $(LDADD)
pkinfo_DEPENDENCIES = $(am__DEPENDENCIES_1) \
$(top_builddir)/src/algorithms/libalgorithms.a \
+ $(top_builddir)/src/models/libmodels.a \
$(top_builddir)/src/imageclasses/libimageClasses.a
am__pklas2img_SOURCES_DIST = pklas2img.cc
@USE_LAS_TRUE at am_pklas2img_OBJECTS = pklas2img.$(OBJEXT)
@@ -190,12 +204,14 @@ pkmosaic_OBJECTS = $(am_pkmosaic_OBJECTS)
pkmosaic_LDADD = $(LDADD)
pkmosaic_DEPENDENCIES = $(am__DEPENDENCIES_1) \
$(top_builddir)/src/algorithms/libalgorithms.a \
+ $(top_builddir)/src/models/libmodels.a \
$(top_builddir)/src/imageclasses/libimageClasses.a
am_pkndvi_OBJECTS = pkndvi.$(OBJEXT)
pkndvi_OBJECTS = $(am_pkndvi_OBJECTS)
pkndvi_LDADD = $(LDADD)
pkndvi_DEPENDENCIES = $(am__DEPENDENCIES_1) \
$(top_builddir)/src/algorithms/libalgorithms.a \
+ $(top_builddir)/src/models/libmodels.a \
$(top_builddir)/src/imageclasses/libimageClasses.a
am__pkopt_svm_SOURCES_DIST = \
$(top_srcdir)/src/algorithms/OptFactory.h pkclassify_nn.h \
@@ -209,15 +225,17 @@ pkpolygonize_OBJECTS = $(am_pkpolygonize_OBJECTS)
pkpolygonize_LDADD = $(LDADD)
pkpolygonize_DEPENDENCIES = $(am__DEPENDENCIES_1) \
$(top_builddir)/src/algorithms/libalgorithms.a \
+ $(top_builddir)/src/models/libmodels.a \
$(top_builddir)/src/imageclasses/libimageClasses.a
am_pkreclass_OBJECTS = pkreclass.$(OBJEXT)
pkreclass_OBJECTS = $(am_pkreclass_OBJECTS)
pkreclass_LDADD = $(LDADD)
pkreclass_DEPENDENCIES = $(am__DEPENDENCIES_1) \
$(top_builddir)/src/algorithms/libalgorithms.a \
+ $(top_builddir)/src/models/libmodels.a \
$(top_builddir)/src/imageclasses/libimageClasses.a
am__pksensormodel_SOURCES_DIST = \
- $(top_srcdir)/src/algorithms/SensorModel.h pksensormodel.h \
+ $(top_srcdir)/src/models/SensorModel.h pksensormodel.h \
pksensormodel.cc
@USE_NLOPT_TRUE at am_pksensormodel_OBJECTS = pksensormodel.$(OBJEXT)
pksensormodel_OBJECTS = $(am_pksensormodel_OBJECTS)
@@ -228,12 +246,14 @@ pksetmask_OBJECTS = $(am_pksetmask_OBJECTS)
pksetmask_LDADD = $(LDADD)
pksetmask_DEPENDENCIES = $(am__DEPENDENCIES_1) \
$(top_builddir)/src/algorithms/libalgorithms.a \
+ $(top_builddir)/src/models/libmodels.a \
$(top_builddir)/src/imageclasses/libimageClasses.a
am_pksieve_OBJECTS = pksieve.$(OBJEXT)
pksieve_OBJECTS = $(am_pksieve_OBJECTS)
pksieve_LDADD = $(LDADD)
pksieve_DEPENDENCIES = $(am__DEPENDENCIES_1) \
$(top_builddir)/src/algorithms/libalgorithms.a \
+ $(top_builddir)/src/models/libmodels.a \
$(top_builddir)/src/imageclasses/libimageClasses.a
am_pkstat_OBJECTS = pkstat.$(OBJEXT)
pkstat_OBJECTS = $(am_pkstat_OBJECTS)
@@ -243,6 +263,7 @@ pkstatogr_OBJECTS = $(am_pkstatogr_OBJECTS)
pkstatogr_LDADD = $(LDADD)
pkstatogr_DEPENDENCIES = $(am__DEPENDENCIES_1) \
$(top_builddir)/src/algorithms/libalgorithms.a \
+ $(top_builddir)/src/models/libmodels.a \
$(top_builddir)/src/imageclasses/libimageClasses.a
DEFAULT_INCLUDES = -I. at am__isrc@ -I$(top_builddir)
depcomp = $(SHELL) $(top_srcdir)/depcomp
@@ -395,7 +416,7 @@ target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
-LDADD = $(GDAL_LDFLAGS) $(top_builddir)/src/algorithms/libalgorithms.a $(top_builddir)/src/imageclasses/libimageClasses.a
+LDADD = $(GDAL_LDFLAGS) $(top_builddir)/src/algorithms/libalgorithms.a $(top_builddir)/src/models/libmodels.a $(top_builddir)/src/imageclasses/libimageClasses.a
@USE_FANN_TRUE at pkclassify_nn_SOURCES = $(top_srcdir)/src/algorithms/myfann_cpp.h pkclassify_nn.h pkclassify_nn.cc
@USE_FANN_TRUE at pkclassify_nn_CXXFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/base $(FANN_CFLAGS) -I$(top_srcdir)/src/algorithms $(AM_CXXFLAGS)
@USE_FANN_TRUE at pkclassify_nn_LDADD = $(FANN_LIBS) $(FANN_CFLAGS) $(AM_LDFLAGS)
@@ -404,7 +425,7 @@ LDADD = $(GDAL_LDFLAGS) $(top_builddir)/src/algorithms/libalgorithms.a $(top_bui
@USE_FANN_TRUE at pkfs_nn_LDADD = $(GSL_LIBS) $(FANN_LIBS) $(FANN_CFLAGS) $(AM_LDFLAGS)
@USE_LAS_TRUE at pklas2img_SOURCES = pklas2img.cc
@USE_LAS_TRUE at pklas2img_LDADD = -L$(top_builddir)/src/fileclasses -lfileClasses -llas $(AM_LDFLAGS)
- at USE_NLOPT_TRUE@pksensormodel_SOURCES = $(top_srcdir)/src/algorithms/SensorModel.h pksensormodel.h pksensormodel.cc
+ at USE_NLOPT_TRUE@pksensormodel_SOURCES = $(top_srcdir)/src/models/SensorModel.h pksensormodel.h pksensormodel.cc
@USE_NLOPT_TRUE at pksensormodel_LDADD = $(GSL_LIBS) $(AM_LDFLAGS) -lnlopt -lm -lgslwrap
@USE_NLOPT_TRUE at pkopt_svm_SOURCES = $(top_srcdir)/src/algorithms/OptFactory.h pkclassify_nn.h pkopt_svm.cc
@USE_NLOPT_TRUE at pkopt_svm_LDADD = $(GSL_LIBS) $(AM_LDFLAGS) -lnlopt
diff --git a/src/models/.deps/Prospect.Po b/src/models/.deps/Prospect.Po
new file mode 100644
index 0000000..30200fd
--- /dev/null
+++ b/src/models/.deps/Prospect.Po
@@ -0,0 +1,127 @@
+Prospect.o: Prospect.cc Prospect.h /usr/include/assert.h \
+ /usr/include/features.h /usr/include/bits/predefs.h \
+ /usr/include/sys/cdefs.h /usr/include/bits/wordsize.h \
+ /usr/include/gnu/stubs.h /usr/include/gnu/stubs-32.h /usr/include/math.h \
+ /usr/include/bits/huge_val.h /usr/include/bits/huge_valf.h \
+ /usr/include/bits/huge_vall.h /usr/include/bits/inf.h \
+ /usr/include/bits/nan.h /usr/include/bits/mathdef.h \
+ /usr/include/bits/mathcalls.h /usr/include/bits/mathinline.h \
+ /usr/include/c++/4.5/vector /usr/include/c++/4.5/bits/stl_algobase.h \
+ /usr/include/c++/4.5/i686-linux-gnu/bits/c++config.h \
+ /usr/include/c++/4.5/i686-linux-gnu/bits/os_defines.h \
+ /usr/include/c++/4.5/i686-linux-gnu/bits/cpu_defines.h \
+ /usr/include/c++/4.5/cstddef \
+ /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/include/stddef.h \
+ /usr/include/c++/4.5/bits/functexcept.h \
+ /usr/include/c++/4.5/exception_defines.h \
+ /usr/include/c++/4.5/bits/cpp_type_traits.h \
+ /usr/include/c++/4.5/ext/type_traits.h \
+ /usr/include/c++/4.5/ext/numeric_traits.h \
+ /usr/include/c++/4.5/bits/stl_pair.h /usr/include/c++/4.5/bits/move.h \
+ /usr/include/c++/4.5/bits/concept_check.h \
+ /usr/include/c++/4.5/bits/stl_iterator_base_types.h \
+ /usr/include/c++/4.5/bits/stl_iterator_base_funcs.h \
+ /usr/include/c++/4.5/bits/stl_iterator.h \
+ /usr/include/c++/4.5/debug/debug.h /usr/include/c++/4.5/bits/allocator.h \
+ /usr/include/c++/4.5/i686-linux-gnu/bits/c++allocator.h \
+ /usr/include/c++/4.5/ext/new_allocator.h /usr/include/c++/4.5/new \
+ /usr/include/c++/4.5/exception /usr/include/c++/4.5/bits/stl_construct.h \
+ /usr/include/c++/4.5/bits/stl_uninitialized.h \
+ /usr/include/c++/4.5/bits/stl_vector.h \
+ /usr/include/c++/4.5/initializer_list \
+ /usr/include/c++/4.5/bits/stl_bvector.h \
+ /usr/include/c++/4.5/bits/vector.tcc
+
+Prospect.h:
+
+/usr/include/assert.h:
+
+/usr/include/features.h:
+
+/usr/include/bits/predefs.h:
+
+/usr/include/sys/cdefs.h:
+
+/usr/include/bits/wordsize.h:
+
+/usr/include/gnu/stubs.h:
+
+/usr/include/gnu/stubs-32.h:
+
+/usr/include/math.h:
+
+/usr/include/bits/huge_val.h:
+
+/usr/include/bits/huge_valf.h:
+
+/usr/include/bits/huge_vall.h:
+
+/usr/include/bits/inf.h:
+
+/usr/include/bits/nan.h:
+
+/usr/include/bits/mathdef.h:
+
+/usr/include/bits/mathcalls.h:
+
+/usr/include/bits/mathinline.h:
+
+/usr/include/c++/4.5/vector:
+
+/usr/include/c++/4.5/bits/stl_algobase.h:
+
+/usr/include/c++/4.5/i686-linux-gnu/bits/c++config.h:
+
+/usr/include/c++/4.5/i686-linux-gnu/bits/os_defines.h:
+
+/usr/include/c++/4.5/i686-linux-gnu/bits/cpu_defines.h:
+
+/usr/include/c++/4.5/cstddef:
+
+/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/include/stddef.h:
+
+/usr/include/c++/4.5/bits/functexcept.h:
+
+/usr/include/c++/4.5/exception_defines.h:
+
+/usr/include/c++/4.5/bits/cpp_type_traits.h:
+
+/usr/include/c++/4.5/ext/type_traits.h:
+
+/usr/include/c++/4.5/ext/numeric_traits.h:
+
+/usr/include/c++/4.5/bits/stl_pair.h:
+
+/usr/include/c++/4.5/bits/move.h:
+
+/usr/include/c++/4.5/bits/concept_check.h:
+
+/usr/include/c++/4.5/bits/stl_iterator_base_types.h:
+
+/usr/include/c++/4.5/bits/stl_iterator_base_funcs.h:
+
+/usr/include/c++/4.5/bits/stl_iterator.h:
+
+/usr/include/c++/4.5/debug/debug.h:
+
+/usr/include/c++/4.5/bits/allocator.h:
+
+/usr/include/c++/4.5/i686-linux-gnu/bits/c++allocator.h:
+
+/usr/include/c++/4.5/ext/new_allocator.h:
+
+/usr/include/c++/4.5/new:
+
+/usr/include/c++/4.5/exception:
+
+/usr/include/c++/4.5/bits/stl_construct.h:
+
+/usr/include/c++/4.5/bits/stl_uninitialized.h:
+
+/usr/include/c++/4.5/bits/stl_vector.h:
+
+/usr/include/c++/4.5/initializer_list:
+
+/usr/include/c++/4.5/bits/stl_bvector.h:
+
+/usr/include/c++/4.5/bits/vector.tcc:
diff --git a/src/models/.deps/pktestProspect.Po b/src/models/.deps/pktestProspect.Po
new file mode 100644
index 0000000..640503f
--- /dev/null
+++ b/src/models/.deps/pktestProspect.Po
@@ -0,0 +1,748 @@
+pktestProspect.o: pktestProspect.cc /usr/include/c++/4.5/iostream \
+ /usr/include/c++/4.5/i686-linux-gnu/bits/c++config.h \
+ /usr/include/c++/4.5/i686-linux-gnu/bits/os_defines.h \
+ /usr/include/features.h /usr/include/bits/predefs.h \
+ /usr/include/sys/cdefs.h /usr/include/bits/wordsize.h \
+ /usr/include/gnu/stubs.h /usr/include/gnu/stubs-32.h \
+ /usr/include/c++/4.5/i686-linux-gnu/bits/cpu_defines.h \
+ /usr/include/c++/4.5/ostream /usr/include/c++/4.5/ios \
+ /usr/include/c++/4.5/iosfwd /usr/include/c++/4.5/bits/stringfwd.h \
+ /usr/include/c++/4.5/bits/postypes.h /usr/include/c++/4.5/cwchar \
+ /usr/include/c++/4.5/cstddef \
+ /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/include/stddef.h \
+ /usr/include/wchar.h /usr/include/stdio.h \
+ /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/include/stdarg.h \
+ /usr/include/bits/wchar.h /usr/include/xlocale.h \
+ /usr/include/bits/wchar2.h /usr/include/c++/4.5/exception \
+ /usr/include/c++/4.5/bits/char_traits.h \
+ /usr/include/c++/4.5/bits/stl_algobase.h \
+ /usr/include/c++/4.5/bits/functexcept.h \
+ /usr/include/c++/4.5/exception_defines.h \
+ /usr/include/c++/4.5/bits/cpp_type_traits.h \
+ /usr/include/c++/4.5/ext/type_traits.h \
+ /usr/include/c++/4.5/ext/numeric_traits.h \
+ /usr/include/c++/4.5/bits/stl_pair.h /usr/include/c++/4.5/bits/move.h \
+ /usr/include/c++/4.5/bits/concept_check.h \
+ /usr/include/c++/4.5/bits/stl_iterator_base_types.h \
+ /usr/include/c++/4.5/bits/stl_iterator_base_funcs.h \
+ /usr/include/c++/4.5/bits/stl_iterator.h \
+ /usr/include/c++/4.5/debug/debug.h /usr/include/c++/4.5/bits/localefwd.h \
+ /usr/include/c++/4.5/i686-linux-gnu/bits/c++locale.h \
+ /usr/include/c++/4.5/clocale /usr/include/locale.h \
+ /usr/include/bits/locale.h /usr/include/c++/4.5/cctype \
+ /usr/include/ctype.h /usr/include/bits/types.h \
+ /usr/include/bits/typesizes.h /usr/include/endian.h \
+ /usr/include/bits/endian.h /usr/include/bits/byteswap.h \
+ /usr/include/c++/4.5/bits/ios_base.h \
+ /usr/include/c++/4.5/ext/atomicity.h \
+ /usr/include/c++/4.5/i686-linux-gnu/bits/gthr.h \
+ /usr/include/c++/4.5/i686-linux-gnu/bits/gthr-default.h \
+ /usr/include/pthread.h /usr/include/sched.h /usr/include/time.h \
+ /usr/include/bits/sched.h /usr/include/bits/time.h \
+ /usr/include/bits/pthreadtypes.h /usr/include/bits/setjmp.h \
+ /usr/include/unistd.h /usr/include/bits/posix_opt.h \
+ /usr/include/bits/environments.h /usr/include/bits/confname.h \
+ /usr/include/getopt.h /usr/include/bits/unistd.h \
+ /usr/include/c++/4.5/i686-linux-gnu/bits/atomic_word.h \
+ /usr/include/c++/4.5/bits/locale_classes.h /usr/include/c++/4.5/string \
+ /usr/include/c++/4.5/bits/allocator.h \
+ /usr/include/c++/4.5/i686-linux-gnu/bits/c++allocator.h \
+ /usr/include/c++/4.5/ext/new_allocator.h /usr/include/c++/4.5/new \
+ /usr/include/c++/4.5/bits/ostream_insert.h \
+ /usr/include/c++/4.5/cxxabi-forced.h \
+ /usr/include/c++/4.5/bits/stl_function.h \
+ /usr/include/c++/4.5/backward/binders.h \
+ /usr/include/c++/4.5/bits/basic_string.h \
+ /usr/include/c++/4.5/initializer_list \
+ /usr/include/c++/4.5/bits/basic_string.tcc \
+ /usr/include/c++/4.5/bits/locale_classes.tcc \
+ /usr/include/c++/4.5/streambuf /usr/include/c++/4.5/bits/streambuf.tcc \
+ /usr/include/c++/4.5/bits/basic_ios.h \
+ /usr/include/c++/4.5/bits/locale_facets.h /usr/include/c++/4.5/cwctype \
+ /usr/include/wctype.h \
+ /usr/include/c++/4.5/i686-linux-gnu/bits/ctype_base.h \
+ /usr/include/c++/4.5/bits/streambuf_iterator.h \
+ /usr/include/c++/4.5/i686-linux-gnu/bits/ctype_inline.h \
+ /usr/include/c++/4.5/bits/locale_facets.tcc \
+ /usr/include/c++/4.5/bits/basic_ios.tcc \
+ /usr/include/c++/4.5/bits/ostream.tcc /usr/include/c++/4.5/istream \
+ /usr/include/c++/4.5/bits/istream.tcc ../../src/base/Optionpk.h \
+ /usr/include/c++/4.5/vector /usr/include/c++/4.5/bits/stl_construct.h \
+ /usr/include/c++/4.5/bits/stl_uninitialized.h \
+ /usr/include/c++/4.5/bits/stl_vector.h \
+ /usr/include/c++/4.5/bits/stl_bvector.h \
+ /usr/include/c++/4.5/bits/vector.tcc /usr/include/c++/4.5/cstdlib \
+ /usr/include/stdlib.h /usr/include/bits/waitflags.h \
+ /usr/include/bits/waitstatus.h /usr/include/sys/types.h \
+ /usr/include/sys/select.h /usr/include/bits/select.h \
+ /usr/include/bits/sigset.h /usr/include/sys/sysmacros.h \
+ /usr/include/alloca.h /usr/include/bits/stdlib.h /usr/include/assert.h \
+ /usr/include/c++/4.5/stdexcept /usr/include/c++/4.5/iomanip \
+ /usr/include/c++/4.5/sstream /usr/include/c++/4.5/bits/sstream.tcc \
+ /usr/include/c++/4.5/typeinfo /usr/local/include/gdal/ogr_feature.h \
+ /usr/local/include/gdal/ogr_geometry.h \
+ /usr/local/include/gdal/ogr_core.h /usr/local/include/gdal/cpl_port.h \
+ /usr/local/include/gdal/cpl_config.h /usr/include/libio.h \
+ /usr/include/_G_config.h /usr/include/bits/stdio_lim.h \
+ /usr/include/bits/sys_errlist.h /usr/include/bits/stdio.h \
+ /usr/include/bits/stdio2.h /usr/include/math.h \
+ /usr/include/bits/huge_val.h /usr/include/bits/huge_valf.h \
+ /usr/include/bits/huge_vall.h /usr/include/bits/inf.h \
+ /usr/include/bits/nan.h /usr/include/bits/mathdef.h \
+ /usr/include/bits/mathcalls.h /usr/include/bits/mathinline.h \
+ /usr/include/string.h /usr/include/bits/string3.h \
+ /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/include-fixed/limits.h \
+ /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/include-fixed/syslimits.h \
+ /usr/include/limits.h /usr/include/bits/posix1_lim.h \
+ /usr/include/bits/local_lim.h /usr/include/linux/limits.h \
+ /usr/include/bits/posix2_lim.h /usr/include/bits/xopen_lim.h \
+ /usr/include/errno.h /usr/include/bits/errno.h \
+ /usr/include/linux/errno.h /usr/include/i386-linux-gnu/asm/errno.h \
+ /usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \
+ /usr/local/include/gdal/gdal_version.h \
+ /usr/local/include/gdal/ogr_spatialref.h \
+ /usr/local/include/gdal/ogr_srs_api.h \
+ /usr/local/include/gdal/ogr_featurestyle.h \
+ /usr/local/include/gdal/cpl_conv.h /usr/local/include/gdal/cpl_vsi.h \
+ /usr/include/sys/stat.h /usr/include/bits/stat.h \
+ /usr/local/include/gdal/cpl_error.h /usr/local/include/gdal/cpl_string.h \
+ /usr/local/include/gdal/cpl_atomic_ops.h ../../config.h \
+ ../../src/algorithms/Filter.h /usr/local/include/gslwrap/vector_double.h \
+ /usr/include/gsl/gsl_math.h /usr/include/gsl/gsl_sys.h \
+ /usr/include/gsl/gsl_inline.h /usr/include/gsl/gsl_machine.h \
+ /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/include/float.h \
+ /usr/include/gsl/gsl_precision.h /usr/include/gsl/gsl_types.h \
+ /usr/include/gsl/gsl_nan.h /usr/include/gsl/gsl_pow_int.h \
+ /usr/include/gsl/gsl_minmax.h /usr/include/gsl/gsl_vector.h \
+ /usr/include/gsl/gsl_vector_complex_long_double.h \
+ /usr/include/gsl/gsl_errno.h /usr/include/gsl/gsl_complex.h \
+ /usr/include/gsl/gsl_check_range.h \
+ /usr/include/gsl/gsl_vector_long_double.h \
+ /usr/include/gsl/gsl_block_long_double.h \
+ /usr/include/gsl/gsl_vector_complex.h \
+ /usr/include/gsl/gsl_block_complex_long_double.h \
+ /usr/include/gsl/gsl_vector_complex_double.h \
+ /usr/include/gsl/gsl_vector_double.h /usr/include/gsl/gsl_block_double.h \
+ /usr/include/gsl/gsl_block_complex_double.h \
+ /usr/include/gsl/gsl_vector_complex_float.h \
+ /usr/include/gsl/gsl_vector_float.h /usr/include/gsl/gsl_block_float.h \
+ /usr/include/gsl/gsl_block_complex_float.h \
+ /usr/include/gsl/gsl_vector_ulong.h /usr/include/gsl/gsl_block_ulong.h \
+ /usr/include/gsl/gsl_vector_long.h /usr/include/gsl/gsl_block_long.h \
+ /usr/include/gsl/gsl_vector_uint.h /usr/include/gsl/gsl_block_uint.h \
+ /usr/include/gsl/gsl_vector_int.h /usr/include/gsl/gsl_block_int.h \
+ /usr/include/gsl/gsl_vector_ushort.h /usr/include/gsl/gsl_block_ushort.h \
+ /usr/include/gsl/gsl_vector_short.h /usr/include/gsl/gsl_block_short.h \
+ /usr/include/gsl/gsl_vector_uchar.h /usr/include/gsl/gsl_block_uchar.h \
+ /usr/include/gsl/gsl_vector_char.h /usr/include/gsl/gsl_block_char.h \
+ /usr/include/gsl/gsl_blas.h /usr/include/gsl/gsl_matrix.h \
+ /usr/include/gsl/gsl_matrix_complex_long_double.h \
+ /usr/include/gsl/gsl_matrix_complex_double.h \
+ /usr/include/gsl/gsl_matrix_complex_float.h \
+ /usr/include/gsl/gsl_matrix_long_double.h \
+ /usr/include/gsl/gsl_matrix_double.h /usr/include/gsl/gsl_matrix_float.h \
+ /usr/include/gsl/gsl_matrix_ulong.h /usr/include/gsl/gsl_matrix_long.h \
+ /usr/include/gsl/gsl_matrix_uint.h /usr/include/gsl/gsl_matrix_int.h \
+ /usr/include/gsl/gsl_matrix_ushort.h /usr/include/gsl/gsl_matrix_short.h \
+ /usr/include/gsl/gsl_matrix_uchar.h /usr/include/gsl/gsl_matrix_char.h \
+ /usr/include/gsl/gsl_blas_types.h /usr/include/gsl/gsl_cblas.h \
+ /usr/local/include/gslwrap/matrix_double.h /usr/include/c++/4.5/fstream \
+ /usr/include/c++/4.5/bits/codecvt.h /usr/include/c++/4.5/cstdio \
+ /usr/include/c++/4.5/i686-linux-gnu/bits/basic_file.h \
+ /usr/include/c++/4.5/i686-linux-gnu/bits/c++io.h \
+ /usr/include/c++/4.5/bits/fstream.tcc /usr/include/gsl/gsl_linalg.h \
+ /usr/include/gsl/gsl_mode.h /usr/include/gsl/gsl_permutation.h \
+ /usr/local/include/gslwrap/permutation.h \
+ /usr/local/include/gslwrap/matrix_vector_operators.h \
+ /usr/local/include/gslwrap/matrix_float.h \
+ /usr/local/include/gslwrap/vector_float.h \
+ ../../src/algorithms/StatFactory.h /usr/include/c++/4.5/map \
+ /usr/include/c++/4.5/bits/stl_tree.h /usr/include/c++/4.5/bits/stl_map.h \
+ /usr/include/c++/4.5/bits/stl_multimap.h /usr/include/c++/4.5/algorithm \
+ /usr/include/c++/4.5/utility /usr/include/c++/4.5/bits/stl_relops.h \
+ /usr/include/c++/4.5/bits/stl_algo.h \
+ /usr/include/c++/4.5/bits/algorithmfwd.h \
+ /usr/include/c++/4.5/bits/stl_heap.h \
+ /usr/include/c++/4.5/bits/stl_tempbuf.h /usr/include/gsl/gsl_fit.h \
+ /usr/include/gsl/gsl_spline.h /usr/include/gsl/gsl_interp.h \
+ ../../src/imageclasses/ImgReaderGdal.h /usr/local/include/gdal_priv.h \
+ /usr/local/include/gdal.h /usr/local/include/gdal_version.h \
+ /usr/local/include/cpl_port.h /usr/local/include/cpl_error.h \
+ /usr/local/include/gdal_frmts.h /usr/local/include/cpl_vsi.h \
+ /usr/local/include/cpl_conv.h /usr/local/include/cpl_string.h \
+ /usr/local/include/cpl_minixml.h ../../src/base/Vector2d.h \
+ /usr/include/c++/4.5/list /usr/include/c++/4.5/bits/stl_list.h \
+ /usr/include/c++/4.5/bits/list.tcc /usr/include/c++/4.5/numeric \
+ /usr/include/c++/4.5/bits/stl_numeric.h ../../src/base/IndexValue.h \
+ ../../src/algorithms/StatFactory.h \
+ ../../src/imageclasses/ImgWriterGdal.h \
+ ../../src/imageclasses/ImgReaderGdal.h \
+ ../../src/fileclasses/FileReaderAscii.h Prospect.h
+
+/usr/include/c++/4.5/iostream:
+
+/usr/include/c++/4.5/i686-linux-gnu/bits/c++config.h:
+
+/usr/include/c++/4.5/i686-linux-gnu/bits/os_defines.h:
+
+/usr/include/features.h:
+
+/usr/include/bits/predefs.h:
+
+/usr/include/sys/cdefs.h:
+
+/usr/include/bits/wordsize.h:
+
+/usr/include/gnu/stubs.h:
+
+/usr/include/gnu/stubs-32.h:
+
+/usr/include/c++/4.5/i686-linux-gnu/bits/cpu_defines.h:
+
+/usr/include/c++/4.5/ostream:
+
+/usr/include/c++/4.5/ios:
+
+/usr/include/c++/4.5/iosfwd:
+
+/usr/include/c++/4.5/bits/stringfwd.h:
+
+/usr/include/c++/4.5/bits/postypes.h:
+
+/usr/include/c++/4.5/cwchar:
+
+/usr/include/c++/4.5/cstddef:
+
+/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/include/stddef.h:
+
+/usr/include/wchar.h:
+
+/usr/include/stdio.h:
+
+/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/include/stdarg.h:
+
+/usr/include/bits/wchar.h:
+
+/usr/include/xlocale.h:
+
+/usr/include/bits/wchar2.h:
+
+/usr/include/c++/4.5/exception:
+
+/usr/include/c++/4.5/bits/char_traits.h:
+
+/usr/include/c++/4.5/bits/stl_algobase.h:
+
+/usr/include/c++/4.5/bits/functexcept.h:
+
+/usr/include/c++/4.5/exception_defines.h:
+
+/usr/include/c++/4.5/bits/cpp_type_traits.h:
+
+/usr/include/c++/4.5/ext/type_traits.h:
+
+/usr/include/c++/4.5/ext/numeric_traits.h:
+
+/usr/include/c++/4.5/bits/stl_pair.h:
+
+/usr/include/c++/4.5/bits/move.h:
+
+/usr/include/c++/4.5/bits/concept_check.h:
+
+/usr/include/c++/4.5/bits/stl_iterator_base_types.h:
+
+/usr/include/c++/4.5/bits/stl_iterator_base_funcs.h:
+
+/usr/include/c++/4.5/bits/stl_iterator.h:
+
+/usr/include/c++/4.5/debug/debug.h:
+
+/usr/include/c++/4.5/bits/localefwd.h:
+
+/usr/include/c++/4.5/i686-linux-gnu/bits/c++locale.h:
+
+/usr/include/c++/4.5/clocale:
+
+/usr/include/locale.h:
+
+/usr/include/bits/locale.h:
+
+/usr/include/c++/4.5/cctype:
+
+/usr/include/ctype.h:
+
+/usr/include/bits/types.h:
+
+/usr/include/bits/typesizes.h:
+
+/usr/include/endian.h:
+
+/usr/include/bits/endian.h:
+
+/usr/include/bits/byteswap.h:
+
+/usr/include/c++/4.5/bits/ios_base.h:
+
+/usr/include/c++/4.5/ext/atomicity.h:
+
+/usr/include/c++/4.5/i686-linux-gnu/bits/gthr.h:
+
+/usr/include/c++/4.5/i686-linux-gnu/bits/gthr-default.h:
+
+/usr/include/pthread.h:
+
+/usr/include/sched.h:
+
+/usr/include/time.h:
+
+/usr/include/bits/sched.h:
+
+/usr/include/bits/time.h:
+
+/usr/include/bits/pthreadtypes.h:
+
+/usr/include/bits/setjmp.h:
+
+/usr/include/unistd.h:
+
+/usr/include/bits/posix_opt.h:
+
+/usr/include/bits/environments.h:
+
+/usr/include/bits/confname.h:
+
+/usr/include/getopt.h:
+
+/usr/include/bits/unistd.h:
+
+/usr/include/c++/4.5/i686-linux-gnu/bits/atomic_word.h:
+
+/usr/include/c++/4.5/bits/locale_classes.h:
+
+/usr/include/c++/4.5/string:
+
+/usr/include/c++/4.5/bits/allocator.h:
+
+/usr/include/c++/4.5/i686-linux-gnu/bits/c++allocator.h:
+
+/usr/include/c++/4.5/ext/new_allocator.h:
+
+/usr/include/c++/4.5/new:
+
+/usr/include/c++/4.5/bits/ostream_insert.h:
+
+/usr/include/c++/4.5/cxxabi-forced.h:
+
+/usr/include/c++/4.5/bits/stl_function.h:
+
+/usr/include/c++/4.5/backward/binders.h:
+
+/usr/include/c++/4.5/bits/basic_string.h:
+
+/usr/include/c++/4.5/initializer_list:
+
+/usr/include/c++/4.5/bits/basic_string.tcc:
+
+/usr/include/c++/4.5/bits/locale_classes.tcc:
+
+/usr/include/c++/4.5/streambuf:
+
+/usr/include/c++/4.5/bits/streambuf.tcc:
+
+/usr/include/c++/4.5/bits/basic_ios.h:
+
+/usr/include/c++/4.5/bits/locale_facets.h:
+
+/usr/include/c++/4.5/cwctype:
+
+/usr/include/wctype.h:
+
+/usr/include/c++/4.5/i686-linux-gnu/bits/ctype_base.h:
+
+/usr/include/c++/4.5/bits/streambuf_iterator.h:
+
+/usr/include/c++/4.5/i686-linux-gnu/bits/ctype_inline.h:
+
+/usr/include/c++/4.5/bits/locale_facets.tcc:
+
+/usr/include/c++/4.5/bits/basic_ios.tcc:
+
+/usr/include/c++/4.5/bits/ostream.tcc:
+
+/usr/include/c++/4.5/istream:
+
+/usr/include/c++/4.5/bits/istream.tcc:
+
+../../src/base/Optionpk.h:
+
+/usr/include/c++/4.5/vector:
+
+/usr/include/c++/4.5/bits/stl_construct.h:
+
+/usr/include/c++/4.5/bits/stl_uninitialized.h:
+
+/usr/include/c++/4.5/bits/stl_vector.h:
+
+/usr/include/c++/4.5/bits/stl_bvector.h:
+
+/usr/include/c++/4.5/bits/vector.tcc:
+
+/usr/include/c++/4.5/cstdlib:
+
+/usr/include/stdlib.h:
+
+/usr/include/bits/waitflags.h:
+
+/usr/include/bits/waitstatus.h:
+
+/usr/include/sys/types.h:
+
+/usr/include/sys/select.h:
+
+/usr/include/bits/select.h:
+
+/usr/include/bits/sigset.h:
+
+/usr/include/sys/sysmacros.h:
+
+/usr/include/alloca.h:
+
+/usr/include/bits/stdlib.h:
+
+/usr/include/assert.h:
+
+/usr/include/c++/4.5/stdexcept:
+
+/usr/include/c++/4.5/iomanip:
+
+/usr/include/c++/4.5/sstream:
+
+/usr/include/c++/4.5/bits/sstream.tcc:
+
+/usr/include/c++/4.5/typeinfo:
+
+/usr/local/include/gdal/ogr_feature.h:
+
+/usr/local/include/gdal/ogr_geometry.h:
+
+/usr/local/include/gdal/ogr_core.h:
+
+/usr/local/include/gdal/cpl_port.h:
+
+/usr/local/include/gdal/cpl_config.h:
+
+/usr/include/libio.h:
+
+/usr/include/_G_config.h:
+
+/usr/include/bits/stdio_lim.h:
+
+/usr/include/bits/sys_errlist.h:
+
+/usr/include/bits/stdio.h:
+
+/usr/include/bits/stdio2.h:
+
+/usr/include/math.h:
+
+/usr/include/bits/huge_val.h:
+
+/usr/include/bits/huge_valf.h:
+
+/usr/include/bits/huge_vall.h:
+
+/usr/include/bits/inf.h:
+
+/usr/include/bits/nan.h:
+
+/usr/include/bits/mathdef.h:
+
+/usr/include/bits/mathcalls.h:
+
+/usr/include/bits/mathinline.h:
+
+/usr/include/string.h:
+
+/usr/include/bits/string3.h:
+
+/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/include-fixed/limits.h:
+
+/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/include-fixed/syslimits.h:
+
+/usr/include/limits.h:
+
+/usr/include/bits/posix1_lim.h:
+
+/usr/include/bits/local_lim.h:
+
+/usr/include/linux/limits.h:
+
+/usr/include/bits/posix2_lim.h:
+
+/usr/include/bits/xopen_lim.h:
+
+/usr/include/errno.h:
+
+/usr/include/bits/errno.h:
+
+/usr/include/linux/errno.h:
+
+/usr/include/i386-linux-gnu/asm/errno.h:
+
+/usr/include/asm-generic/errno.h:
+
+/usr/include/asm-generic/errno-base.h:
+
+/usr/local/include/gdal/gdal_version.h:
+
+/usr/local/include/gdal/ogr_spatialref.h:
+
+/usr/local/include/gdal/ogr_srs_api.h:
+
+/usr/local/include/gdal/ogr_featurestyle.h:
+
+/usr/local/include/gdal/cpl_conv.h:
+
+/usr/local/include/gdal/cpl_vsi.h:
+
+/usr/include/sys/stat.h:
+
+/usr/include/bits/stat.h:
+
+/usr/local/include/gdal/cpl_error.h:
+
+/usr/local/include/gdal/cpl_string.h:
+
+/usr/local/include/gdal/cpl_atomic_ops.h:
+
+../../config.h:
+
+../../src/algorithms/Filter.h:
+
+/usr/local/include/gslwrap/vector_double.h:
+
+/usr/include/gsl/gsl_math.h:
+
+/usr/include/gsl/gsl_sys.h:
+
+/usr/include/gsl/gsl_inline.h:
+
+/usr/include/gsl/gsl_machine.h:
+
+/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/include/float.h:
+
+/usr/include/gsl/gsl_precision.h:
+
+/usr/include/gsl/gsl_types.h:
+
+/usr/include/gsl/gsl_nan.h:
+
+/usr/include/gsl/gsl_pow_int.h:
+
+/usr/include/gsl/gsl_minmax.h:
+
+/usr/include/gsl/gsl_vector.h:
+
+/usr/include/gsl/gsl_vector_complex_long_double.h:
+
+/usr/include/gsl/gsl_errno.h:
+
+/usr/include/gsl/gsl_complex.h:
+
+/usr/include/gsl/gsl_check_range.h:
+
+/usr/include/gsl/gsl_vector_long_double.h:
+
+/usr/include/gsl/gsl_block_long_double.h:
+
+/usr/include/gsl/gsl_vector_complex.h:
+
+/usr/include/gsl/gsl_block_complex_long_double.h:
+
+/usr/include/gsl/gsl_vector_complex_double.h:
+
+/usr/include/gsl/gsl_vector_double.h:
+
+/usr/include/gsl/gsl_block_double.h:
+
+/usr/include/gsl/gsl_block_complex_double.h:
+
+/usr/include/gsl/gsl_vector_complex_float.h:
+
+/usr/include/gsl/gsl_vector_float.h:
+
+/usr/include/gsl/gsl_block_float.h:
+
+/usr/include/gsl/gsl_block_complex_float.h:
+
+/usr/include/gsl/gsl_vector_ulong.h:
+
+/usr/include/gsl/gsl_block_ulong.h:
+
+/usr/include/gsl/gsl_vector_long.h:
+
+/usr/include/gsl/gsl_block_long.h:
+
+/usr/include/gsl/gsl_vector_uint.h:
+
+/usr/include/gsl/gsl_block_uint.h:
+
+/usr/include/gsl/gsl_vector_int.h:
+
+/usr/include/gsl/gsl_block_int.h:
+
+/usr/include/gsl/gsl_vector_ushort.h:
+
+/usr/include/gsl/gsl_block_ushort.h:
+
+/usr/include/gsl/gsl_vector_short.h:
+
+/usr/include/gsl/gsl_block_short.h:
+
+/usr/include/gsl/gsl_vector_uchar.h:
+
+/usr/include/gsl/gsl_block_uchar.h:
+
+/usr/include/gsl/gsl_vector_char.h:
+
+/usr/include/gsl/gsl_block_char.h:
+
+/usr/include/gsl/gsl_blas.h:
+
+/usr/include/gsl/gsl_matrix.h:
+
+/usr/include/gsl/gsl_matrix_complex_long_double.h:
+
+/usr/include/gsl/gsl_matrix_complex_double.h:
+
+/usr/include/gsl/gsl_matrix_complex_float.h:
+
+/usr/include/gsl/gsl_matrix_long_double.h:
+
+/usr/include/gsl/gsl_matrix_double.h:
+
+/usr/include/gsl/gsl_matrix_float.h:
+
+/usr/include/gsl/gsl_matrix_ulong.h:
+
+/usr/include/gsl/gsl_matrix_long.h:
+
+/usr/include/gsl/gsl_matrix_uint.h:
+
+/usr/include/gsl/gsl_matrix_int.h:
+
+/usr/include/gsl/gsl_matrix_ushort.h:
+
+/usr/include/gsl/gsl_matrix_short.h:
+
+/usr/include/gsl/gsl_matrix_uchar.h:
+
+/usr/include/gsl/gsl_matrix_char.h:
+
+/usr/include/gsl/gsl_blas_types.h:
+
+/usr/include/gsl/gsl_cblas.h:
+
+/usr/local/include/gslwrap/matrix_double.h:
+
+/usr/include/c++/4.5/fstream:
+
+/usr/include/c++/4.5/bits/codecvt.h:
+
+/usr/include/c++/4.5/cstdio:
+
+/usr/include/c++/4.5/i686-linux-gnu/bits/basic_file.h:
+
+/usr/include/c++/4.5/i686-linux-gnu/bits/c++io.h:
+
+/usr/include/c++/4.5/bits/fstream.tcc:
+
+/usr/include/gsl/gsl_linalg.h:
+
+/usr/include/gsl/gsl_mode.h:
+
+/usr/include/gsl/gsl_permutation.h:
+
+/usr/local/include/gslwrap/permutation.h:
+
+/usr/local/include/gslwrap/matrix_vector_operators.h:
+
+/usr/local/include/gslwrap/matrix_float.h:
+
+/usr/local/include/gslwrap/vector_float.h:
+
+../../src/algorithms/StatFactory.h:
+
+/usr/include/c++/4.5/map:
+
+/usr/include/c++/4.5/bits/stl_tree.h:
+
+/usr/include/c++/4.5/bits/stl_map.h:
+
+/usr/include/c++/4.5/bits/stl_multimap.h:
+
+/usr/include/c++/4.5/algorithm:
+
+/usr/include/c++/4.5/utility:
+
+/usr/include/c++/4.5/bits/stl_relops.h:
+
+/usr/include/c++/4.5/bits/stl_algo.h:
+
+/usr/include/c++/4.5/bits/algorithmfwd.h:
+
+/usr/include/c++/4.5/bits/stl_heap.h:
+
+/usr/include/c++/4.5/bits/stl_tempbuf.h:
+
+/usr/include/gsl/gsl_fit.h:
+
+/usr/include/gsl/gsl_spline.h:
+
+/usr/include/gsl/gsl_interp.h:
+
+../../src/imageclasses/ImgReaderGdal.h:
+
+/usr/local/include/gdal_priv.h:
+
+/usr/local/include/gdal.h:
+
+/usr/local/include/gdal_version.h:
+
+/usr/local/include/cpl_port.h:
+
+/usr/local/include/cpl_error.h:
+
+/usr/local/include/gdal_frmts.h:
+
+/usr/local/include/cpl_vsi.h:
+
+/usr/local/include/cpl_conv.h:
+
+/usr/local/include/cpl_string.h:
+
+/usr/local/include/cpl_minixml.h:
+
+../../src/base/Vector2d.h:
+
+/usr/include/c++/4.5/list:
+
+/usr/include/c++/4.5/bits/stl_list.h:
+
+/usr/include/c++/4.5/bits/list.tcc:
+
+/usr/include/c++/4.5/numeric:
+
+/usr/include/c++/4.5/bits/stl_numeric.h:
+
+../../src/base/IndexValue.h:
+
+../../src/algorithms/StatFactory.h:
+
+../../src/imageclasses/ImgWriterGdal.h:
+
+../../src/imageclasses/ImgReaderGdal.h:
+
+../../src/fileclasses/FileReaderAscii.h:
+
+Prospect.h:
diff --git a/src/algorithms/Makefile.am b/src/models/Makefile.am
similarity index 61%
copy from src/algorithms/Makefile.am
copy to src/models/Makefile.am
index be84cb4..6faa4a5 100644
--- a/src/algorithms/Makefile.am
+++ b/src/models/Makefile.am
@@ -7,33 +7,29 @@ AM_CXXFLAGS = -I$(top_srcdir)/src $(GDAL_CFLAGS) @AM_CXXFLAGS@
# the program to build (the names of the final binaries)
#do not want to install pktestoption
-noinst_PROGRAMS = pktestStat
+noinst_PROGRAMS = pktestProspect
###############################################################################
# THE LIBRARIES TO BUILD
###############################################################################
# the library names to build (note we are building static libs only)
-noinst_LIBRARIES = libalgorithms.a
+noinst_LIBRARIES = libmodels.a
# where to install the headers on the system
-libalgorithms_adir = $(includedir)/algorithms
+libmodels_adir = $(includedir)/models
# the list of header files that belong to the library (to be installed later)
-libalgorithms_a_HEADERS = Egcs.h Filter2d.h Filter.h StatFactory.h ConfusionMatrix.h svm.h FeatureSelector.h
-
-if USE_FANN
-libalgorithms_a_HEADERS += myfann_cpp.h
-endif
+libmodels_a_HEADERS = Prospect.h
if USE_NLOPT
-libalgorithms_a_HEADERS += SensorModel.h OptFactory.h
+libmodels_a_HEADERS += SensorModel.h
endif
# the sources to add to the library and to add to the source distribution
-libalgorithms_a_SOURCES = $(libalgorithms_a_HEADERS) Egcs.cc Filter2d.cc Filter.cc ConfusionMatrix.cc svm.cpp
+libmodels_a_SOURCES = $(libmodels_a_HEADERS) Prospect.cc
###############################################################################
# list of sources for the binaries
-pktestStat_SOURCES = pktestStat.cc
-pktestStat_LDADD = $(GSL_LIBS) -lgslwrap $(top_builddir)/src/algorithms/libalgorithms.a $(top_builddir)/src/imageclasses/libimageClasses.a -lgslwrap
+pktestProspect_SOURCES = pktestProspect.cc
+pktestProspect_LDADD = $(top_builddir)/src/models/libprospect.a $(top_builddir)/src/models/libmodels.a $(top_builddir)/src/models/libprospect.a /usr/local/src/g95-install/lib/gcc-lib/i686-pc-linux-gnu/4.0.3/libf95.a
diff --git a/src/models/Prospect.cc b/src/models/Prospect.cc
new file mode 100644
index 0000000..e787e49
--- /dev/null
+++ b/src/models/Prospect.cc
@@ -0,0 +1,31 @@
+/**********************************************************************
+Prospect.cc: class for radiative transfer leaf PROSPECT
+Copyright (C) 2008-2013 Pieter Kempeneers
+
+This file is part of pktools
+
+pktools is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+pktools is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with pktools. If not, see <http://www.gnu.org/licenses/>.
+***********************************************************************/
+#include "Prospect.h"
+
+void prospect::Prospect::getLeafSpectrum(std::vector<double>& leafReflectance, std::vector<double>& leafTransmittance) const{
+ double RT[2101][2];//400 nm - 2500 nm
+ prospect_5b__(m_N,m_Cab,m_Car,m_Cbrown,m_Cw,m_Cm,RT);
+ leafReflectance.resize(2101);
+ leafTransmittance.resize(2101);
+ for(int index=0;index<2101;++index){
+ leafReflectance[index]=RT[index][0];
+ leafTransmittance[index]=RT[index][1];
+ }
+}
diff --git a/src/models/Prospect.h b/src/models/Prospect.h
new file mode 100644
index 0000000..d4412b7
--- /dev/null
+++ b/src/models/Prospect.h
@@ -0,0 +1,58 @@
+/**********************************************************************
+Prospect.h: class for radiative transfer leaf PROSPECT
+Copyright (C) 2008-2013 Pieter Kempeneers
+
+This file is part of pktools
+
+pktools is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+pktools is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with pktools. If not, see <http://www.gnu.org/licenses/>.
+***********************************************************************/
+#ifndef _PROSPECT_
+#define _PROSPECT_
+#include <assert.h>
+#include <math.h>
+#include <vector>
+
+extern "C" {
+ void prospect_5b__(const double& N,const double& Cab,const double& Car, const double& Cbrown, const double& Cw, const double& Cm, double RT[][2]);
+}
+
+namespace prospect
+{
+ class Prospect{
+ public:
+ Prospect(void){};
+ ~Prospect(void){};
+ void setN(double n){m_N=n;};
+ void setCab(double cab){m_Cab=cab;};
+ void setCar(double car){m_Car=car;};
+ void setCbrown(double cbrown){m_Cbrown=cbrown;};
+ void setCw(double cw){m_Cw=cw;};
+ void setCm(double cm){m_Cm=cm;};
+ double getN() const {return m_N;};
+ double getCab() const {return m_Cab;};
+ double getCar() const {return m_Car;};
+ double getCbrown() const {return m_Cbrown;};
+ double getCw() const {return m_Cw;};
+ double getCm() const {return m_Cm;};
+ void getLeafSpectrum(std::vector<double>& leafReflectance,std::vector<double>& leafTransmittance) const;
+ private:
+ double m_N; // structure coefficient
+ double m_Cab; // chlorophyll content (g.cm-2)
+ double m_Car; // carotenoid content (g.cm-2)
+ double m_Cbrown; // brown pigment content (arbitrary units)
+ double m_Cw; // EWT (cm)
+ double m_Cm; // LMA (g.cm-2)
+ };
+}
+#endif //_PROSPECT_
diff --git a/src/algorithms/SensorModel.h b/src/models/SensorModel.h
similarity index 100%
rename from src/algorithms/SensorModel.h
rename to src/models/SensorModel.h
diff --git a/src/models/dataspec_p5b.mod b/src/models/dataspec_p5b.mod
new file mode 100644
index 0000000..4d75e97
--- /dev/null
+++ b/src/models/dataspec_p5b.mod
@@ -0,0 +1,45 @@
+G95 module created on Mon Feb 25 13:19:49 2013 from dataSpec_P5B.f90
+If you edit this, you'll get what you deserve.
+module-version 9
+(() () () () () () () () () () () () () () () () () () () () ())
+
+()
+
+()
+
+()
+
+()
+
+(102 'dataspec_p5b' 'dataspec_p5b' 1 ((MODULE UNKNOWN UNKNOWN UNKNOWN
+NONE NONE) (UNKNOWN) 0 0 () () () '' () ())
+103 'i' 'dataspec_p5b' 1 ((VARIABLE UNKNOWN UNKNOWN UNKNOWN NONE NONE) (
+INTEGER 4) 0 0 () () () '' () ())
+104 'k_brown' 'dataspec_p5b' 1 ((VARIABLE UNKNOWN UNKNOWN UNKNOWN NONE
+NONE DIMENSION DATA) (REAL 8) 0 0 () (1 EXPLICIT (CONSTANT (INTEGER 4) 0
+'1') (CONSTANT (INTEGER 4) 0 '2101')) () '' () ())
+105 'k_cab' 'dataspec_p5b' 1 ((VARIABLE UNKNOWN UNKNOWN UNKNOWN NONE
+NONE DIMENSION DATA) (REAL 8) 0 0 () (1 EXPLICIT (CONSTANT (INTEGER 4) 0
+'1') (CONSTANT (INTEGER 4) 0 '2101')) () '' () ())
+106 'k_car' 'dataspec_p5b' 1 ((VARIABLE UNKNOWN UNKNOWN UNKNOWN NONE
+NONE DIMENSION DATA) (REAL 8) 0 0 () (1 EXPLICIT (CONSTANT (INTEGER 4) 0
+'1') (CONSTANT (INTEGER 4) 0 '2101')) () '' () ())
+107 'k_cm' 'dataspec_p5b' 1 ((VARIABLE UNKNOWN UNKNOWN UNKNOWN NONE NONE
+DIMENSION DATA) (REAL 8) 0 0 () (1 EXPLICIT (CONSTANT (INTEGER 4) 0 '1')
+(CONSTANT (INTEGER 4) 0 '2101')) () '' () ())
+108 'k_cw' 'dataspec_p5b' 1 ((VARIABLE UNKNOWN UNKNOWN UNKNOWN NONE NONE
+DIMENSION DATA) (REAL 8) 0 0 () (1 EXPLICIT (CONSTANT (INTEGER 4) 0 '1')
+(CONSTANT (INTEGER 4) 0 '2101')) () '' () ())
+109 'lambda' 'dataspec_p5b' 1 ((VARIABLE UNKNOWN UNKNOWN UNKNOWN NONE
+NONE DIMENSION DATA) (INTEGER 4) 0 0 () (1 EXPLICIT (CONSTANT (INTEGER 4)
+0 '1') (CONSTANT (INTEGER 4) 0 '2101')) () '' () ())
+110 'nw' 'dataspec_p5b' 1 ((PARAMETER UNKNOWN UNKNOWN UNKNOWN NONE NONE)
+(INTEGER 4) 0 0 () (CONSTANT (INTEGER 4) 0 '2101') () () '' () ())
+111 'refractive' 'dataspec_p5b' 1 ((VARIABLE UNKNOWN UNKNOWN UNKNOWN
+NONE NONE DIMENSION DATA) (REAL 8) 0 0 () (1 EXPLICIT (CONSTANT (
+INTEGER 4) 0 '1') (CONSTANT (INTEGER 4) 0 '2101')) () '' () ())
+)
+
+('dataspec_p5b' 0 102 'i' 0 103 'k_brown' 0 104 'k_cab' 0 105 'k_car' 0
+106 'k_cm' 0 107 'k_cw' 0 108 'lambda' 0 109 'nw' 0 110 'refractive' 0
+111)
diff --git a/src/models/pktestProspect.cc b/src/models/pktestProspect.cc
new file mode 100644
index 0000000..36c358e
--- /dev/null
+++ b/src/models/pktestProspect.cc
@@ -0,0 +1,76 @@
+/**********************************************************************
+pktestProspect: example program how to use class Prospect
+Copyright (C) 2008-2013 Pieter Kempeneers
+
+This file is part of pktools
+
+pktools is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+pktools is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with pktools. If not, see <http://www.gnu.org/licenses/>.
+***********************************************************************/
+#include <iostream>
+#include <string>
+#include "base/Optionpk.h"
+#include "algorithms/Filter.h"
+#include "fileclasses/FileReaderAscii.h"
+#include "Prospect.h"
+
+int main(int argc, char *argv[])
+{
+ Optionpk<double> N_opt("N","N","parameter N for Prospect model",1.2);
+ Optionpk<double> Cab_opt("Cab","Cab","parameter Cab for Prospect model (g.cm-2)",30);
+ Optionpk<double> Car_opt("Car","Car","parameter Car for Prospect model (g.cm-2)",10);
+ Optionpk<double> Cbrown_opt("Cbrown","Cbrown","parameter Cbrown for Prospect model (arbitrary units)",0);
+ Optionpk<double> Cw_opt("Cw","Cw","parameter Cw for Prospect model (cm)",0.015);
+ Optionpk<double> Cm_opt("Cm","Cm","parameter Cm for Prospect model (g.cm-2)",0.009);
+ Optionpk<double> step_opt("s","step","step size for interpolation",0.01);
+ Optionpk<double> fwhm_opt("fwhm", "fwhm", "list of full width half to apply spectral filtering (-fwhm band1 -fwhm band2 ...)");
+ Optionpk<double> wavelengthIn_opt("win", "wavelengthIn", "list of wavelengths in input spectrum (-w band1 -w band2 ...)");
+ Optionpk<double> wavelengthOut_opt("wout", "wavelengthOut", "list of wavelengths in output spectrum (-w band1 -w band2 ...)");
+ Optionpk<short> verbose_opt("v","verbose","verbose mode",0);
+
+ bool doProcess;//stop process when program was invoked with help option (-h --help)
+ try{
+ doProcess=N_opt.retrieveOption(argc,argv);
+ doProcess=Cab_opt.retrieveOption(argc,argv);
+ doProcess=Car_opt.retrieveOption(argc,argv);
+ doProcess=Cbrown_opt.retrieveOption(argc,argv);
+ doProcess=Cw_opt.retrieveOption(argc,argv);
+ doProcess=Cm_opt.retrieveOption(argc,argv);
+ doProcess=fwhm_opt.retrieveOption(argc,argv);
+ doProcess=wavelengthIn_opt.retrieveOption(argc,argv);
+ doProcess=wavelengthOut_opt.retrieveOption(argc,argv);
+ verbose_opt.retrieveOption(argc,argv);
+ }
+ catch(std::string predefinedString){//command line option contained license or version
+ std::cout << predefinedString << std::endl;//report the predefined string to stdout
+ exit(0);//stop processing
+ }
+ if(!doProcess){//command line option contained help option
+ std::cout << "short option -h shows basic options only, use long option --help to show all options" << std::endl;//provide extra details for help to the user
+ exit(0);//stop processing
+ }
+
+ prospect::Prospect prospectModel;
+ prospectModel.setN(N_opt[0]);
+ prospectModel.setCab(Cab_opt[0]);
+ prospectModel.setCar(Car_opt[0]);
+ prospectModel.setCbrown(Cbrown_opt[0]);
+ prospectModel.setCw(Cw_opt[0]);
+ prospectModel.setCm(Cm_opt[0]);
+ vector<double> leafReflectance;
+ vector<double> leafTransmittance;
+ prospectModel.getLeafSpectrum(leafReflectance,leafTransmittance);
+ assert(leafReflectance.size()==leafTransmittance.size());
+ for(int index=0;index<leafReflectance.size();++index)
+ std::cout << "400 " << leafReflectance[index] << " " << leafTransmittance[index] << std::endl;
+}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/pktools.git
More information about the Pkg-grass-devel
mailing list