PKTOOLS
Go to home page: http://pktools.nongnu.org
All utilities in pktools use command line options and have a built in help
use the -h option to get help
pktools ALWAYS use -i for input and -o for output (unlike GDAL utilities that commonly use last argument as output and second but last argument as input)
Install
To install, please check http://pktools.nongnu.org/html/index.html#pktools_installation
Exercises
The following environment variables should be set in the terminal before doing the exercises.
Please create a pktools directory under your exercise directory and copy the data from the Dropbox to that directory as explained below.
When copying the code for GNUPLOT, please make sure that the paths to the data are correctly set
mkdir /home/user/ost4sem/exercise/pktools/ cp -r /home/user/Dropbox/MODIS500 /home/user/ost4sem/exercise/pktools/ cp -r /home/user/Dropbox/MODIS250 /home/user/ost4sem/exercise/pktools/ cp -r /home/user/Dropbox/LANDSAT /home/user/ost4sem/exercise/pktools/ cp -r /home/user/Dropbox/cornwall_vector /home/user/ost4sem/exercise/pktools/ MODISSRCDIR=/media/MyDrive/MODIS_DLR MODIS500DIR=/home/user/ost4sem/exercise/pktools/MODIS500 MODIS250DIR=/home/user/ost4sem/exercise/pktools/MODIS250 LANDSATDIR=/home/user/ost4sem/exercise/pktools/LANDSAT LANDSATIMG=19990724_L7E_IP_CW.tif VECTORDIR=/home/user/ost4sem/exercise/pktools/cornwall_vector OUTPUTDIR=/home/user/ost4sem/exercise/pktools/ ULX_CW=3200000 ULY_CW=3223750 LRX_CW=3394000 LRY_CW=3091500
- exercise 1a: Use of openev and ogr tool. Reprojection of vectors and feature selection
- exercise 1b: Convert forest vector file to KML vector for visualisation in GoogleEarth
- exercise 2: Extract Landsat profiles from vector
- exercise 3a: Study phenology from MODIS NDVI time series (vector)
- exercise 3b: Optional: additional land cover (golf course)
- exercise 4a: Study phenology from MODIS NDVI time series (pixels)
- exercise 4b: Long time series from MODIS 500 m NDVI (pixels)
- exercise 4c: Long time series from MODIS 500 m NDVI (mean)
- exercise 4d: Create animation GIF for NDVI time series
- exercise 5a: Find thresholds for Landsat bands 1,4,7 to create cloud mask
- exercise 5b: Optional: extend for shadow mask
- exercise 6: Create the cloud mask with the thresholds found in exercise 5a
- exercise 7: Morphological filters
- exercise 8: Create max NDVI MODIS composite for 2010
- exercise 9: pktools with multi-core processors
