NIH LISTSERV
NIH LISTSERV
IMAGEJ archives -- August 2008 (#23)

Go to: Previous Message | Next Message
Previous in Topic | Next in Topic
Previous by Same Author | Next by Same Author
Previous Page (August 2008) | Back to Main IMAGEJ Page


Options: Reply | Post a New Message | Join or Leave IMAGEJ, or Change Options | Search
View: Chronologically | Most Recent First | Wrap Text (Proportional Font) | Don't Wrap Text (Non-proportional Font)
*

Approved-By: [log in to unmask]
References: <[log in to unmask]>
Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed
Message-ID:  <[log in to unmask]>
Date:         Tue, 5 Aug 2008 08:49:48 -0400
Reply-To:     ImageJ Interest Group <[log in to unmask]>
Sender:       ImageJ Interest Group <[log in to unmask]>
From:         Ben Tupper <[log in to unmask]>
Subject:      Re: returning results of plugins within macros
In-Reply-To:  <[log in to unmask]>

On Aug 5, 2008, at 8:21 AM, Frederic V. Hessman wrote: > I looked at the documentation, but I can't find a way of using the > non-image result of a plugin in a macro. > Hello, I think you want the macro command call("class.method", arg1, arg2, ...) See http://rsb.info.nih.gov/ij/developer/macro/ functions.html#C for more info. The run("command", ...) command is used to call ImageJ menu commands which is a little different. Your FITS reader plugin will have to have a static method to return the contents of the FITS header as a string (or strings that have been concetenated into one string) to the macro. Cheers, Ben > I want to be able to pull an entry out of a FITS image header and > use it in a macro, something like > > exposuretime=run("Read FITS Header","image=[] key=[EXPTIME]"); > > Any ideas? An alternative would be to be able to use Prefs within > a macro, e.g. > > run("Read FITS Header", "key=EXPTIME"); > exposuretime=Prefs.get("fits.result"); > > This functionality would come in handy for other reasons. > > Rick > > ---------------------------------------------------------------------- > -------------------------- > Dr. Frederic V. Hessman [log in to unmask] > Institut für Astrophysik Tel. +49-551-39-5052 > Friedrich-Hund-Platz 1 Fax +49-551-39-5043 > 37077 Goettingen Room F04-133 > http://www.Astro.physik.Uni-Goettingen.de/~hessman > ---------------------------------------------------------------------- > --------------------------- > MONET: a MOnitoring NEtwork of Telescopes > http://monet.Uni-Goettingen.de > ---------------------------------------------------------------------- > --------------------------- Ben Tupper [log in to unmask] I GoodSearch for Ashwood Waldorf School. Raise money for your favorite charity or school just by searching the Internet with GoodSearch - www.goodsearch.com - powered by Yahoo!




Back to: Top of message | Previous page | Main IMAGEJ page

NIH LISTSERV Home Page

CIT
Center for Information Technology
National Institutes of Health
Bethesda, Maryland 20892
301 594 6248 (v) 301 496 8294 (TDD)
Comments and Assistance
Accessibility wheelchair icon