On Wed, Oct 30, 2013 at 05:34:53PM -0400, Ramsey Hazbun wrote:
> So the big remaining issue is opening all the files and performing these
> operations.  I was able to come up with a second script that traverses a
> directory and opens all the files in it.  Unfortunately, it's still manual
> because I am working with BMP files, which can't import automatically.  Is
> there a way to run the import window as NONINTERACTIVE?

You can run file loading non-interactively if the module supports it
(pixmap does) but you have to use the slightly more low-level function
gwy_file_load():

c = gwy.gwy_file_load('foo.bmp', gwy.RUN_NONINTERACTIVE)
gwy.gwy_app_data_browser_add(c)
gwy.gwy_app_data_browser_reset_visibility(c, gwy.VISIBILITY_RESET_DEFAULT)

This loads and shows a BMP file using the last used settings (to change
parameters, change them in the settings Container).  For batch use you
may alternatively wish to use gwy_app_data_browser_set_keep_invisible().

> Or is there an image format I could convert to that would open
> automatically in Gwyddion?

Only formats that carry sufficient scales and units information.  So,
none of the standard images.

For high-depth images (OpenEXR, 16bit PNG, TIFF or PGM) see

    http://gwyddion.net/documentation/user-guide-en/pixmap-image-keys.html

You can also create a NRRD header

    http://teem.sourceforge.net/nrrd/format.html#detached

describing the image data and point Gwyddion to it instead of the
pixmap.

Regards,

Yeti


------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Gwyddion-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gwyddion-users

Reply via email to