On Tue, Nov 22, 2016 at 12:10:57PM +0100, Giacomo Marchioro wrote:
> Dear all, 
> I won't to work with the surfaces as numpy array for do some
> processing using gwy.  I guess this is a very basic topic but I can't
> find the parameters where are store the size of the acquisition: 
> 
> import gwy
> import numpy as np
>    d = gwy.gwy_app_data_browser_get_current(gwy.APP_DATA_FIELD)
>    data = np.array(d.get_data()).reshape(xsize?,ysize?)
>    #How can I get the size of my array xsize and ysize?

The DataField dimensions are d.get_xres() × d.get_yres().

Regards,

Yeti


------------------------------------------------------------------------------
_______________________________________________
Gwyddion-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gwyddion-users

Reply via email to