added command-line utilities for defining input arguments of the driver.py and for walking the given input directory and collecting all plt files found within
Full path of plt files are now populated in the plt file list
error code if given directory does not contain plt files
Added output directory parameter, and automatically created the output directory if it does not exist
added function to extract user ID from plt file path
Randomly selecting 20 plt files and converting to staypoints, named according to the originating PLT file and the user.
instead of writing files out with .plt suffix, write out as .txt suffix
The driver file has been modified to take in optional command-line arguments. These arguments specify the directory that contains the PLT files to convert, the time threshold and distance threshold for the staypoint detection algorithm, and the output directory in which to store the resulting staypoint trajectory files.
By default, the input directory is the current working directory. This directory is recursively searched for plt files, which are added to a list for conversion to staypoint trajectory files. If no PLT files are found, an error is read out and execution is aborted.
The default time and distance threshold is 60 seconds and 11 meters, respectively.
The default output directory is "staypoints" in the current working directory. If the specified output directory does not exist, it is created automatically.
The resulting staypoint files are named according to the originating trajectory file and its user: staypoints_USERID_PLTFILE.txt.