Saving z-axis projection values within a macro

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

Saving z-axis projection values within a macro

Chang, Joshua
Hi,
I would like to write a macro to do some processing on a stack and then save
the z-axis profile means.

After I do the z-axis mapping, I can save the results using the "Save..."
button, but when I'm recording a macro nothing shows up when clicking the
Save button.

Is there some way I can save these values or do I need to do it manually?

Thanks in advance

Josh Chang
Reply | Threaded
Open this post in threaded view
|

Re: Saving z-axis projection values within a macro

jmutterer
Josh,

The Plot.getValues(xvalues, yvalues); macro function does this.

Once you have the two arrays of x and y values, you can write them in
a file with the print function as shown in a recent post by Wayne :

f = File.open(getDirectory("home")+"profile.xls");
  for (i=0; i<xvalues.length; i++)
      print(f, xvalues[i]+"\t"+yvalues[i]);

Jerome.


On Tue, Sep 30, 2008 at 12:42 AM, Josh <[hidden email]> wrote:

> Hi,
> I would like to write a macro to do some processing on a stack and then save
> the z-axis profile means.
>
> After I do the z-axis mapping, I can save the results using the "Save..."
> button, but when I'm recording a macro nothing shows up when clicking the
> Save button.
>
> Is there some way I can save these values or do I need to do it manually?
>
> Thanks in advance
>
> Josh Chang
>