This tutorial presents how to calculate distance traveled, path sinuosity, and woodland preference index for each cow. There are 4 time periods considered: 24 hours; daytime hours; pre-sunrise night hours (from midnight to sunrise); and post-sunset night hours (from sunset to midnight).
We design a Java program that can automatically do this work. The program can be downloaded at link
The input of this the Java program are 3 files:
DataWithPosition.csv. It contains 6 columns:
Time.csv. It contains 3 columns:
Weather.csv. It contains 7 columns:
Here are the examples of these 3 files: DataWithPositionsample.csv Timeisample.csv Weathersample.csv
Put your data and the Java program under the same folder, then run
java -cp Calculations.jar
Then the program will output 2 files DistanceandSiniosity.csv, CompleteProcessedData.csv. Here are the examples of the output files: DistanceandSiniosity.csv CompleteProcessedData.csv
Chuan Hu: chu@cs.nmsu.edu
Huiping Cao: hcao@cs.nmsu.edu
Mohammed Sawalhah : sawalhah@nmsu.edu
Andres Cibils : acibils@ad.nmsu.edu