Discussion:
[Gwyddion-users] Export of 1-D profiles
Evgeniya Khakhalova
2015-09-25 18:28:21 UTC
Permalink
Hi,
Simple beginner question.
Is there any way to export data of multiple profiles?

[image: Inline image 1]


Thank you,
Evgeniya

--
*Evgeniya Khakhalova*
Ph. D. Student
Department of Earth Sciences
Institute for Rock Magnetism
University of Minnesota
Daniil Bratashov
2015-09-25 18:47:04 UTC
Permalink
On Fri, 25 Sep 2015 13:28:21 -0500
Post by Evgeniya Khakhalova
Simple beginner question.
Is there any way to export data of multiple profiles?
Do you mean "Graph->Export text" menu?

Or there is also some problems with gnuplot export now, multiple columns
are converted into single pair. Is it the problem?

WBR, Daniil Bratashov.

------------------------------------------------------------------------------
Andres
2015-09-25 19:11:24 UTC
Permalink
Post by Daniil Bratashov
On Fri, 25 Sep 2015 13:28:21 -0500
Post by Evgeniya Khakhalova
Simple beginner question.
Is there any way to export data of multiple profiles?
Do you mean "Graph->Export text" menu?
I think right-click on the graph and "export to text" also works.


------------------------------------------------------------------------------
Evgeniya Khakhalova
2015-09-25 19:43:33 UTC
Permalink
Ok, thanks guys for quick response!

And one more question about profiles.
Can I somehow plot first and second derivatives of the 1D profiles in
Gwyddion?



Evgeniya

--
*Evgeniya Khakhalova*
Ph. D. Student
Department of Earth Sciences
Institute for Rock Magnetism
University of Minnesota
Post by Andres
Post by Daniil Bratashov
On Fri, 25 Sep 2015 13:28:21 -0500
Post by Evgeniya Khakhalova
Simple beginner question.
Is there any way to export data of multiple profiles?
Do you mean "Graph->Export text" menu?
I think right-click on the graph and "export to text" also works.
------------------------------------------------------------------------------
_______________________________________________
Gwyddion-users mailing list
https://lists.sourceforge.net/lists/listinfo/gwyddion-users
Andres
2015-09-25 22:56:09 UTC
Permalink
Post by Evgeniya Khakhalova
Ok, thanks guys for quick response!
And one more question about profiles.
Can I somehow plot first and second derivatives of the 1D profiles in
Gwyddion?
I do not think I understand this but do you mean exporting your 1D
profiles, calculating derivatives in some other program (probably python
script so that you can automate with gwy-py?) and importing the plots
back in? I think for that last step you can open ASCII graph data files
with gwyddion.
Post by Evgeniya Khakhalova
Evgeniya
--
Evgeniya Khakhalova
Ph. D. Student
Department of Earth Sciences
Institute for Rock Magnetism
University of Minnesota
El Fri, 25-09-2015 a las 21:47 +0300, Daniil Bratashov
Post by Daniil Bratashov
On Fri, 25 Sep 2015 13:28:21 -0500
Post by Evgeniya Khakhalova
Simple beginner question.
Is there any way to export data of multiple profiles?
Do you mean "Graph->Export text" menu?
I think right-click on the graph and "export to text" also works.
------------------------------------------------------------------------------
_______________________________________________
Gwyddion-users mailing list
https://lists.sourceforge.net/lists/listinfo/gwyddion-users
------------------------------------------------------------------------------
_______________________________________________
Gwyddion-users mailing list
https://lists.sourceforge.net/lists/listinfo/gwyddion-users
------------------------------------------------------------------------------
Mark S. Bentley
2015-10-02 09:15:25 UTC
Permalink
Dear all,

I have a series of Gwy files with many (>100) channels, each containing
masked grain data (usually one mask per channel). I want to extract some
basic grain properties (e.g. as calculated from grain measure) and
either save these to a file, or read them back into python.

It seems that the relevant functions don't have python wrappers:


I can't obviously see the appropriate functions in the pygwy docs, but
perhaps I'm missing something?

Any help would be great!

Regards, Mark

------------------------------------------------------------------------------
Mark S. Bentley
2015-10-02 09:19:44 UTC
Permalink
Dear all,

I have a series of Gwy files with many (>100) channels, each containing
masked grain data (usually one mask per channel). I want to extract some
basic grain properties (e.g. as calculated from grain measure, for
example equivalent radius) and either save these to a file, or read them
back into python.

It seems that the relevant functions don't have python wrappers:

UNIMPLEMENTED_grains_get_distribution
UNIMPLEMENTED_grains_get_quantities

I also see:

grains_get_values(grains, quantity)

but I'm not sure if this is helpful, and what quantity means here?

Any help would be great!

Regards, Mark

------------------------------------------------------------------------------
Mark S. Bentley
2015-10-02 10:50:51 UTC
Permalink
Dear all,

A minor feature/bug request - when using the Grain / Distributions
function and exporting the data, if one chooses to include a comment
header (i.e. with the field names) this is space separated, whereas the
data are tab separated. Of course it's trivial to address when parsing,
but most simple ASCII data readers assume the same separator and it
would make my life marginally easier if this were the case ;)

Thanks!

Mark

------------------------------------------------------------------------------
David Nečas (Yeti)
2015-10-05 07:31:25 UTC
Permalink
Post by Mark S. Bentley
A minor feature/bug request - when using the Grain / Distributions
function and exporting the data, if one chooses to include a comment
header (i.e. with the field names) this is space separated, whereas the
data are tab separated.
You are right, this is inconsistent. I fixed the module to use
tabulators also in the comment header.

Regards,

Yeti


------------------------------------------------------------------------------
David Nečas (Yeti)
2015-10-05 07:27:51 UTC
Permalink
Post by Mark S. Bentley
I have a series of Gwy files with many (>100) channels, each containing
masked grain data (usually one mask per channel). I want to extract some
basic grain properties (e.g. as calculated from grain measure, for
example equivalent radius) and either save these to a file, or read them
back into python.
UNIMPLEMENTED_grains_get_distribution
UNIMPLEMENTED_grains_get_quantities
grains_get_values(grains, quantity)
but I'm not sure if this is helpful, and what quantity means here?
Quantity is one of the enumerated quantities

http://gwyddion.net/documentation/libgwyprocess/libgwyprocess-gwyprocessenums.php#GwyGrainQuantity

They are accessible in Python as gwy.GRAIN_VALUE_MEAN, etc.

But the main problem with the grain functions in Python is that the C
functions separate the numbering of grains and further analysis. This
is a good thing because the numbering is not done again and again
unnecessarily. However, the grain numbers are passed as a raw C array
so the grain functions cannot have automatically generated Python
conunterparts.

To sum it up, someone has to write explicit Python wrappers for the
grain functions. I might look into it but do not hold your breath.

Regards,

Yeti


------------------------------------------------------------------------------
Mark S. Bentley
2015-10-07 13:22:55 UTC
Permalink
Post by David Nečas (Yeti)
To sum it up, someone has to write explicit Python wrappers for the
grain functions. I might look into it but do not hold your breath.
OK, many thanks!
Post by David Nečas (Yeti)
You are right, this is inconsistent. I fixed the module to use
tabulators also in the comment header.
Perfect, thanks!

Regards,

Mark
David Nečas (Yeti)
2015-10-23 08:48:29 UTC
Permalink
Post by David Nečas (Yeti)
To sum it up, someone has to write explicit Python wrappers for the
grain functions. I might look into it but do not hold your breath.
I started writing the wrappers. There may not be complete parity with
what is available in C but at least there should be a set of useful
functions in 2.43.

Regards,

Yeti


------------------------------------------------------------------------------
Continue reading on narkive:
Loading...