Data from Radial Distribution Function macro

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Data from Radial Distribution Function macro

nan0guy
Folks,

This question was posed previously in the forum by someone else, with no answer, so here goes again.

I am using the excellent macro in the ImageJ Wiki by Michael Schmid for calculation of the RDF (here), and it outputs the data in graphical form.

How do I get the data in a textual format so that I can plot the data in other figures, and have greater control over the appearance of the plot?

Thanks,

Lloyd
Reply | Threaded
Open this post in threaded view
|

Re: Data from Radial Distribution Function macro

Michael Schmid
Hi Lloyd,

sorry, it seems that this question had escaped my notice. You can get the
list by adding this to the end of the macro:


run("Clear Results");
Plot.getValues(xpoints, ypoints);
for (i=0; i<xpoints.length; i++) {
  setResult("R", i, xpoints[i]);
  setResult("RDF", i, ypoints[i]);
}

Michael

_____________________________________________________


On Thu, April 21, 2011 21:17, nan0guy wrote:

> Folks,
>
> This question was posed previously in the forum by someone else, with no
> answer, so here goes again.
>
> I am using the excellent macro in the ImageJ Wiki by Michael Schmid for
> calculation of the RDF (
> http://imagejdocu.tudor.lu/doku.php?id=macro:radial_distribution_function
> here ), and it outputs the data in graphical form.
>
> How do I get the data in a textual format so that I can plot the data in
> other figures, and have greater control over the appearance of the plot?
>
> Thanks,
>
> Lloyd
Reply | Threaded
Open this post in threaded view
|

Re: Data from Radial Distribution Function macro

nan0guy
Michael,

Thanks!  That was just what was needed.

Interestingly, I had just run through the steps of the macro manually, and when I determine the RDF from the Autocorrelation using Radial Profile, the "List" option is available on the plot.  What is different about running the Radial Profile plugin from the macro versus running it manually?

In any case, this macro is excellent - with your permission, can I include the modification to the macro in the wiki, or will you do so?  I refer students to the wiki on a fairly regular basis.

Lloyd
Reply | Threaded
Open this post in threaded view
|

Re: Data from Radial Distribution Function macro

nan0guy
Nevermind, I see you have already done it!!

Lloyd