How to handle the grainid beyond the number of grains #2131
-
Hello everyone, I'm currently working on calculating the dislocation density around the crack path, and I've been following a tutorial to achieve this. However, I encountered an error when running the following command: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Does it work if you add 'id' in the command? Like: ipfKey.oriRef = grains('id', ebsd('Ni (Nickel)').grainId).meanOrientation |
Beta Was this translation helpful? Give feedback.
What about if you add (after filtering out some grains and before the problematic line):
ebsd = ebsd(grains);