macro/batch issue

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

macro/batch issue

David Gene Morgan
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

        I've written a macro that strips the metadata out of Digital Micrograph
image.  I use a self-written wrapper to start imageJ and the following
command works well:

        imageJ -macro getMetaData FILE.dm3

I have a second macro that should work in batch mode (no GUI, so no open
windows) but when I run it

        imageJ -batch getMetaDataBatch FILE.dm3

I get an error that indicates an inability to find/use the plugin to
read DM3 files.  This seems to be specific for the DM3 plugin since I
can run the batch process using a few other "more standard" file types.

        I may be able to solve this by mucking about with the java environment,
but I figure someone else may know exactly what to do.  Thanks for any help.


- --
                 David Gene Morgan
                  cryoEM Facility
                  005B Simon Hall
           Indiana University Bloomington
               812 856 1457 (office)
               812 856 3221 (EM lab)
            http://bio.indiana.edu/~cryo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFKjEkIZP9hCYoz1a0RAkmZAKCPniCc4ef1cNj8aG8+AXqi0kGXHgCePVD6
/1NivSMB6E0pIJWEwD4xdyg=
=VhS6
-----END PGP SIGNATURE-----
Reply | Threaded
Open this post in threaded view
|

Re: macro/batch issue

Wayne Rasband
> Hi,
>
> I've written a macro that strips the metadata out of Digital  
> Micrograph
> image.  I use a self-written wrapper to start imageJ and the following
> command works well:
>
> imageJ -macro getMetaData FILE.dm3
>
> I have a second macro that should work in batch mode (no GUI, so no  
> open
> windows) but when I run it
>
> imageJ -batch getMetaDataBatch FILE.dm3
>
> I get an error that indicates an inability to find/use the plugin to
> read DM3 files.  This seems to be specific for the DM3 plugin since I
> can run the batch process using a few other "more standard" file  
> types.
>
> I may be able to solve this by mucking about with the java  
> environment,
> but I figure someone else may know exactly what to do.  Thanks for  
> any help.

This bug is fixed in the 1.43f daily build or you can work around it  
by generating a full path in the macro using

     name = getArgument();
     dir = getInfo("user.dir");
     path = dir+File.separator+name;

-wayne