This notebook should be remove as it is specific for our use case. I don't know how to deal with it. Therefore the same question is ask for the function within the notebook
This notebook should be removed as it is specific for our use case. I don't know how to deal with it. Therefore the same question is asked for the function within the notebook
```
This notebook show how to create input for [CraFT](https://lma-software-craft.cnrs.fr/).
This notebook shows how to create input for [CraFT](https://lma-software-craft.cnrs.fr/).
%% Cell type:code id:fuzzy-ballot tags:
%% Cell type:code id: tags:
``` python
importxarrayaita.loadData_aitaaslda#here are some function to build xarrayaita structure
CraFTWith [G50 fabric analyser](http://www.russellheadinstruments.com/files/G50%20brochure%2009Jan08%20rev1.pdf) we usually filter the value with a `quality` below $75$.
%% Cell type:code id:local-chemical tags:
%% Cell type:code id: tags:
``` python
data.aita.filter(50)
```
%% Cell type:markdown id:wanted-submission tags:
%% Cell type:markdown id: tags:
## Export input file for CraFT
Two files are creating using this function :
1. The `.vtk` of the microstructure where the each pixel of the same grain as the same integer value.
2. A `.phase` that is a text file where the orientation value are stored $[grainId, material, \phi_1, \phi, \phi_2]$. $\phi_2$ is choosen randomly as it is unknown. If $\phi_1, \phi$ are note resolved by the analyser they are also choosen randomly.
Two files are created using this function :
1. The `.vtk` of the microstructure where the each pixel of the same grain has the same integer value.
2. A `.phase` that is a text file where the orientation values are stored $[grainId, material, \phi_1, \phi, \phi_2]$. $\phi_2$ is choosen randomly as it is unknown. If $\phi_1, \phi$ are not resolved by the analyser, they are also choosen randomly.