Hi All,
I’m trying to do a simple batch sum, 8bit convert, save macro of 20x 10GB 4D data sets (.nd2).
I keep running out of memory when I try this, when I feel it shouldn’t since it’s dealing with 10GB at a time (PC is 32GB RAM; FIJI memory 3/4). Am I missing something obvious as to why this keeps occurring? code below. Many thanks in advance! Darren
dir1 = getDirectory("Choose_ Source Directory ");
dir2 = getDirectory("Choose Destination Directory ");
list = getFileList(dir1);
setBatchMode(true);
for (i=0; i<list.length; i++) {
showProgress(i+1, list.length);
filename = dir1 + list[i];
if (endsWith(filename, “nd2”)) {
open(filename);
run(“Z Project…”, “projection=[Sum Slices]”);
run(“8-bit”);
saveAs(“TIFF”, dir2+list[i]);
close();
}
}