Mathias Müller
2014-07-18 08:42:08 UTC
Hi,
I just wanted to write kind of module for gwyddion. However, I got stuck at the point where data is displayed which is physically squared but not pixel size.
Looking into the API it says one can get the pixel and physical size of a GwyDataView. How is it possible to reshape the view to make it squared (setting pixel size?)?
I did not find any reference to this. Do I need to find a way on my own by e.g. interpolating the data or is there kind of built-in function to apply?
I found some hints in the gwyddion source, but really don't wanna copy paste foreign code. This simply bloats up the code for this module.
Many thanks in advance!
Cheers,
Mathias
I just wanted to write kind of module for gwyddion. However, I got stuck at the point where data is displayed which is physically squared but not pixel size.
Looking into the API it says one can get the pixel and physical size of a GwyDataView. How is it possible to reshape the view to make it squared (setting pixel size?)?
I did not find any reference to this. Do I need to find a way on my own by e.g. interpolating the data or is there kind of built-in function to apply?
I found some hints in the gwyddion source, but really don't wanna copy paste foreign code. This simply bloats up the code for this module.
Many thanks in advance!
Cheers,
Mathias