File name variable #745
-
Hi everyone! Hope you'll help me with my issue. What I would like to do is to find somewhere (saying "somewhere" I mean in some variable) the name of *.cpr ebsd-file, from which ebsd-data were imported. As I can understand, filename is not saved anywhere after "EBSD.load(filename)" has worked. I need filename as I want to write the script for evaluating some grain boundaries characteristics and export results to excel. And one more suggestion for the future improvements of MTEX.
Sincerely, Nikita |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi Nikita, With respect to something such as batch processing: Does all your ebsd data have the same coordinate system and material files (CS{}) ? If so, yes, of course you can automatically loop over any number of files in some directory
Cheers, Rüdiger |
Beta Was this translation helpful? Give feedback.
Hi Nikita,
your variable
filename
is a string variable either of the full path or just the filename. So you can just use just a part of that string to either name your output file or write it to your output - it just depends how and what you are exporting.With respect to something such as batch processing: Does all your ebsd data have the same coordinate system and material files (CS{}) ? If so, yes, of course you can automatically loop over any number of files in some directory
In very crude terms: