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 6d4f58d7a4f0fee59510688a5343ab55c4c93210 Author: Pieter Kempeneers <kempe...@gmail.com> Date: Sat Nov 8 22:20:30 2014 +0100 added examples_pkdumpimg.dox --- doc/examples_pkcrop.dox | 11 +++++++---- doc/examples_pkdiff.dox | 6 ++++-- doc/examples_pkdsm2shadow.dox | 8 ++++++++ doc/examples_pkdumpimg.dox | 8 ++++++++ 4 files changed, 27 insertions(+), 6 deletions(-) diff --git a/doc/examples_pkcrop.dox b/doc/examples_pkcrop.dox index 3b09685..46d5d6f 100644 --- a/doc/examples_pkcrop.dox +++ b/doc/examples_pkcrop.dox @@ -1,8 +1,8 @@ \section examples_pkcrop Examples of pkcrop -\code Crop the input image to the given bounding box +\code pkcrop -i input.tif -ulx 100 -uly 1000 -lrx 600 -lry 100 -o output.tif \endcode @@ -19,17 +19,20 @@ Extract bands 3,2,1 (starting from 0) in that order from multi-band raster image pkcrop -i input.tif -b 3 -b 2 -b 1 -o output.tif \endcode +Scale raster floating point image fimage.tif with factor 100 and write as single byte image with the given colourtable (for auto scaling, see next example) + \code pkcrop -i fimage.tif -s 100 -ot Byte -o bimage.tif -ct colortable.txt \endcode -scale raster floating point image fimage.tif with factor 100 and write as single byte image with the given colourtable (for auto scaling, see next example) + +Automatically scale raster floating point image fimage.tif to [0:100] and write the output as a single byte image with the given colourtable \code pkcrop -i fimage.tif -as 0 -as 100 -ot Byte -o bimage.tif -ct colortable.txt \endcode -auto scale raster floating point image fimage.tif to [0:100] and write as single byte image with the given colourtable + +Crop raster image large.tif to the bounding box of raster image small.tif and use the same pixel size. \code pkcrop -i large.tif $(pkinfo -i small.tif -bb -dx -dy) -o output.tif \endcode -crop raster image large.tif to the bounding box of raster image small.tif and forcing to the same pixel size diff --git a/doc/examples_pkdiff.dox b/doc/examples_pkdiff.dox index 62d633c..f089f9b 100644 --- a/doc/examples_pkdiff.dox +++ b/doc/examples_pkdiff.dox @@ -1,12 +1,14 @@ \section examples_pkdiff Examples of pkdiff + +Check if two raster images are different (reports only if images are different or not) + \code pkdiff -i input.tif -ref reference.tif \endcode -Check if two raster images are different (reports only if images are different or not) +Validate a classification map using points from a reference sample and report confusion matrix \code pkdiff -i classificationMap.tif -ref referencePoints.shp -cm \endcode -Validate a classification map using points from a reference sample and report confusion matrix diff --git a/doc/examples_pkdsm2shadow.dox b/doc/examples_pkdsm2shadow.dox new file mode 100644 index 0000000..abe657f --- /dev/null +++ b/doc/examples_pkdsm2shadow.dox @@ -0,0 +1,8 @@ +\section examples_pkdsm2shadow Examples of pkdsm2shadow + +Create a shadow mask for the input raster dataset dsm.tif, using Sun zenith angle of 10 degrees and a Sun azimuth angle of 135 degrees (South-South-East). All shadow pixels are set to a value of 1. + +\code +pkdsm2shadow -i dsm.tif -sza 10 -saa 170 -f 1 -o shadow.tif +\endcode + diff --git a/doc/examples_pkdumpimg.dox b/doc/examples_pkdumpimg.dox new file mode 100644 index 0000000..dc04cb2 --- /dev/null +++ b/doc/examples_pkdumpimg.dox @@ -0,0 +1,8 @@ +\section examples_pkdumpimg Examples of pkdumpimg + +Dump the image content of tiny.tif to screen + +\code +pkdumpimg -i tiny.tif +\endcode + -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/pktools.git _______________________________________________ Pkg-grass-devel mailing list Pkg-grass-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel