Change the data backup directory to be a variable

This is so it can be changed easily. In future, expect that this will go to a proper place on the WRL coastal drive, rather than a temporary working directory.
master
Chris Leaman 6 years ago
parent fd98698f93
commit 7d8d85f1db

@ -1,16 +1,16 @@
DATA_BACKUP_DIR = "J:/Coastal/Temp/CKL/nsw_2016_storm_impact/data"
#################################################################################
# PROJECT RULES #
#################################################################################
.PHONY: push-data mat_to_csv sites-csv-to-shp
push-data: ##@data Copies data to WRL Coastal J Drive
rclone copy ./data/ "J:/Coastal/Temp/CKL/nsw_2016_storm_impact/data" --progress
push-data: ##@data Copies data from ./data/ to data backup directory
rclone copy ./data/ $(DATA_BACKUP_DIR) --exclude "*.las" --progress
pull-data: ##@data Copies data to WRL Coastal J Drive
pull-data: ##@data Copies data from data backup directory to ./data/
# We probably don't want to pull the raw LIDAR .las files, so lets exclude them
rclone copy "J:/Coastal/Temp/CKL/nsw_2016_storm_impact/data" ./data/ --exclude "*.las" --progress
rclone copy $(DATA_BACKUP_DIR) ./data/ --exclude "*.las" --progress
mat-to-csv: ##@data Converts raw .mat files to .csv for python
cd ./src/data/ && python mat_to_csv.py

Loading…
Cancel
Save