File: AddParticles.txt

package info (click to toggle)
skyview 3.5.5%2Brepack-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,216 kB
  • sloc: java: 29,127; perl: 303; xml: 63; makefile: 19; sh: 1
file content (12 lines) | stat: -rw-r--r-- 419 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
// Adds particle analyzer ROIs to the ROI Manager
  if (nResults==0)
      return "Results table is empty";
  if (isNaN(getResult('XStart', 0)))
      return "Run the particle analyzer with \"Clear Results\" \nand \"Record Starts\" checked, then try again.";
  for (i=0; i<nResults; i++) {
      x = getResult('XStart', i);
      y = getResult('YStart', i);
      doWand(x,y);
      roiManager("add");
  }
  return "";