// TO DO // Create another script that can run // for site in sites: // for year in years: // register_images() // VARIABLE DEFINITIONS // images_to_register = All images to be registered for a given site and year (no target or seed) // batch_images_to_register = Batch images to be registered (no target or seed) // batch_images_all = Target, seed and batch images to be registered var batch_size = 10; // Must use forwardslashes in filepath, not backslashes var batch_download_csv = File("C:/Users/z5079346/OneDrive - UNSW/Projects/Coastsnap_test/CoastSnap_Sites.csv") // retreive site names from batch_download.csv var csv_data=[]; batch_download_csv.open('r'); while(!batch_download_csv.eof){ var InputLine = batch_download_csv.readln(); if(InputLine.length > 3) csv_data.push(InputLine); } batch_download_csv.close(); var site_names = csv_data.toString().split(",") // Images parent directory var parent_folder_path = "C:/Users/z5079346/OneDrive - UNSW/Projects/Coastsnap_test/Images_Test"; var batch_images_to_register = []; // Used in exportLayersToPNG // Loop through sites for(var i=5; i