Senior Design project at Virginia Tech, converting flatten_timeseries.R to C++
Conversion located in C++Conv/
- Setup Environment for Initial R Version
- Install Boost
sudo dnf install boost-devel - Install Rcpp (inside R session)
install.packages("Rcpp") - Install RInside (inside R session)
install.packages("RInside") - Install CMake
sudo dnf install cmake
- Link to land_shallow_topo_21600.tif
- Link to land_shallow_topo_8192.tif
- Put these files in the
sf25-13-automaton/includedirectory
- Change CMakelists to work on your specific system (currently supports Mac OS and RHEL8 Linux)
- Change
BUILD_TESTINGto ON/OFF in order to build conversion unit tests - To build
cd C++Conv/,./build.sh
- To run from terminal run
./C++Conv/build/flatten_timeseries path/to/yml - To run a comparison test of results to R version run
./benchmark_compare.sh - To run unit tests build with option ON, then
cd C++Conv/build/testand run./test_main