Man page - pkdsm2shadow(1)
Packages contains this manual
- pkfssvm(1)
- pkstatogr(1)
- pkfilterdem(1)
- pkextractimg(1)
- pkkalman(1)
- pksetmask(1)
- pksvm(1)
- pkascii2img(1)
- pkdsm2shadow(1)
- pkascii2ogr(1)
- pkpolygonize(1)
- pkfillnodata(1)
- pkextractogr(1)
- pksieve(1)
- pkdumpogr(1)
- pkstat(1)
- pkannogr(1)
- pkegcs(1)
- pkfilterascii(1)
- pkreclassogr(1)
- pksvmogr(1)
- pkgetmask(1)
- pkdiff(1)
- pkfsann(1)
- pkregann(1)
- pkcreatect(1)
- pkcomposite(1)
- pkstatascii(1)
- pkdumpimg(1)
- pkstatprofile(1)
- pkinfo(1)
- pkcrop(1)
- pkoptsvm(1)
- pkann(1)
- pkreclass(1)
- pkfilter(1)
apt-get install pktools
Manual
pkdsm2shadow
NAMESYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLE
NAME
pkdsm2shadow - program to calculate sun shadow based on digital surface model and sun angles
SYNOPSIS
pkdsm2shadow -i input -o output [ -sza angle ] [ -saa angle ] [ options ] [ advanced options ]
DESCRIPTION
pkdsm2shadow is a utility to create a binary shadow mask from a digital surface model, based on Sun zenith ( -sza ) and azimuth angles ( -saa ).
OPTIONS
-i filename , --input filename
input image file
-o filename , --output filename
Output image file
-sza angle , --sza angle
Sun zenith angle.
-saa angle , --saa angle
Sun azimuth angle (N=0 E=90 S=180 W=270).
-f value , --flag value
Flag to put in image if pixel shadow
-ot type , --otype type
Data type for output image ({Byte / Int16 / UInt16 / UInt32 / Int32 / Float32 / Float64 / CInt16 / CInt32 / CFloat32 / CFloat64}). Empty string: inherit type from input image
-of GDALformat , --oformat GDALformat
Output image format (see also gdal_translate (1)).
-ct filename , --ct filename
color table (file with 5 columns: id R G B ALFA (0: transparent, 255: solid)
-co option , --co option
Creation option for output file. Multiple options can be specified.
-v level , --verbose level
verbose mode if > 0
Advanced options
-s
value
,
--scale
value
scale used for input dsm: height=scale*input+offset
-off value , --offset value
offset used for input dsm: height=scale*input+offset
EXAMPLE
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.
pkdsm2shadow -i dsm.tif -sza 10 -saa 170 -f 1 -o shadow.tif