This script is used to create test datasets for scans of different sensors such as RGD, 3D, IR etc.
Use the python script when you want to recursively generate test datasets for all scans within a directory.
python3 ProcessFullDirectory.py -p <path containing multiple scan dates> -u <netid> -n <#> -r
python3 ProcessFullDirectory.py -p <path containing multiple scan dates> -u <netid> -n <#>
-p: This flag is used to specify the source path containing scan directories.
-- Example: /iplant/home/shared/phytooracle/season_14_sorghum_yr_2022/level_0/scanner3DTop would permit processing of all datasets within this directory.
-n: This flag should be followed by the number of sub-directories from the example scan that should be included in the test dataset
-u: This flag should be followed by the username of the user running this script. Used for accessing the xdisk
-r (OPTIONAL): This flag is used to make the program choose files for the test dataset from a random position (default: from the middle of the scan)
- For choosing files from the center of the field/scan (Normally used for checking the pipeline)
./automator.sh -p [pathname] -u [username] -t [test_dataset_name(DON'T INCLUDE .tar.gz)] -n [number_of_files]
- For choosing files from a random position in the field/scan (Normally used for creating training datasets)
./automator_random.sh -p [pathname] -u [username] -t [test_dataset_name(DON'T INCLUDE .tar.gz)] -n [number_of_files]
-p: This flag is used to specify the source path for the example scan used to create the test dataset.
-n: This flag should be followed by the number of sub-directories from the example scan that should be included in the test dataset
-u: This flag should be followed by the username of the user running this script. Used for accessing the xdisk
-t: This flag is used to specify the name of the test dataset to be created. Do not include .tar.gz in this name, that would be added by the script
Note:
- This script is expected to work only on the UA HPC, and might require modifications in order to be functional on other systems.
- Also, before running the shell script, it might be necessary to run the following command in the directory that has it.
chmod 755 automator.sh