You should be able to import the texture file using the “Import ASCII Attribute Array” after reading in the model file. That will associate the Eulers from the texture file with each grain. Then you will need to use the filter “Create Element Array from Feature Array” to put the eulers down onto the Cell data so that when you write the FFT File you have an Euler Angle at each cell position.
The issue with this approach is that if the feature Ids are NOT contiguous starting from 0 then the second filter that I mentioned will fail (probably outright crash DREAM.3D).
--
Mike Jackson
To view this discussion on the web visit https://groups.google.com/d/msgid/dream3d-users/361fb11c-9857-426b-9ec5-72a8fdc210a6n%40googlegroups.com.


Dear Elise,
A few things:
+ Looks like your data is floating point data so I would change the data from “signed int 8 bit” to “Float”
+ The “Number of Components” should be 3
+ Looks like the rest should be correct.
The filter will attempt to read as many rows from the text file as there are “Tuples” in the particular Attribute Matrix that the DataArray is going to be saved into. From your guess it looks like your text file should have 67 rows of data (not taking the header lines into account).
Also, looks like the values are expressed as Degrees. If you are going to do any calculations involving those angles inside of DREAM3D, do not forget to convert them to Radians using the appropriate filter (Just search for the word “Degrees” in the filter list).
--
Mike Jackson
On 10/16/21, 10:33 AM, "Elise Baribault" <dream3...@googlegroups.com on behalf of ebarib...@gmail.com> wrote:
Hi Mike,
Thanks for the reply. I tried these filters but am getting an error importing the file. This is what my pipeline looks like, with the input file being a .txt file. Should it be a different format like .csv? I am not sure if the number of components should be the number of rows? The "first line of data" is correct.


To view this discussion on the web visit https://groups.google.com/d/msgid/dream3d-users/3fb11fb2-54c0-43db-b4c7-ef03108bcb4an%40googlegroups.com.

You may have entered one too many rows to be read? Or the delimiter isn’t correct? The file needs to have consistent delimiters throughout the file.
--
Mike Jackson
On 10/18/21, 3:37 PM, "Elise Baribault" <dream3...@googlegroups.com on behalf of ebarib...@gmail.com> wrote:
Hi Mike,
Thanks for your suggestions. I am now getting a different error:

Is there a way I can set the end of the file? Maybe I'm misinterpreting what this error means. Also I added the weights for each grain, so I changed the components to be 4 (4 columns).
A peer suggested I follow this: http://www.dream3d.io/Filters/OrientationAnalysisFilters/WriteStatsGenOdfAngleFile/index.html to convert my .txt file to a different .txt file format. Would this be a better way?
Thanks,
Elise
On Monday, October 18, 2021 at 10:05:17 AM UTC-4 mike.j...@bluequartz.net wrote:
Dear Elise,
A few things:
+ Looks like your data is floating point data so I would change the data from “signed int 8 bit” to “Float”
+ The “Number of Components” should be 3
+ Looks like the rest should be correct.
The filter will attempt to read as many rows from the text file as there are “Tuples” in the particular Attribute Matrix that the DataArray is going to be saved into. From your guess it looks like your text file should have 67 rows of data (not taking the header lines into account).
Also, looks like the values are expressed as Degrees. If you are going to do any calculations involving those angles inside of DREAM3D, do not forget to convert them to Radians using the appropriate filter (Just search for the word “Degrees” in the filter list).
--
Mike Jackson
On 10/16/21, 10:33 AM, "Elise Baribault" <dream3...@googlegroups.com on behalf of ebarib...@gmail.com> wrote:
Hi Mike,
Thanks for the reply. I tried these filters but am getting an error importing the file. This is what my pipeline looks like, with the input file being a .txt file. Should it be a different format like .csv? I am not sure if the number of components should be the number of rows? The "first line of data" is correct.
To view this discussion on the web visit https://groups.google.com/d/msgid/dream3d-users/29b19312-49a1-4573-b16d-bf6156494948n%40googlegroups.com.
Elise,
I am plowed under getting a proposal written. I’m going to go back through our emails and try and figure out what might be going wrong with your pipeline but I need a bit of time to get that done. I’ll try to get back to you as soon as I can. We might have to setup a virtual meeting so that you can walk me through your workflow so that I can fully understand the end goal of the work.
Cheers.
--
Mike Jackson
On 10/19/21, 12:48 AM, "Elise Baribault" <dream3...@googlegroups.com on behalf of ebarib...@gmail.com> wrote:
Hi Mike,
I was able to get this working. I used "Import ASCII Data", "Combine Attribute Data", and "Convert Angles to Deg or Rad". However...
Now I have a pipeline that generates a microstructure as well as an FFT .txt file that only has the first 67 angle pairs filled in and the rest are 0. The pipeline didn't assign the angles to the specific grains, it only listed the 67 angle pairs in sequential order. I must be missing a step?
Thanks,
Elise
On Monday, October 18, 2021 at 5:35:10 PM UTC-4 Elise Baribault wrote:
Unfortunately, it's still not working.. I know I can take my FFT .txt file and manually change all the angles, but I was hoping for a quicker way. If I manually change the .txt file, is there a filter to import it back to DREAM3D to change resolution? Or would I need to change all the angles for all the resolutions manually?
Thanks,
Elise
On Monday, October 18, 2021 at 4:28:33 PM UTC-4 mike.j...@bluequartz.net wrote:
You may have entered one too many rows to be read? Or the delimiter isn’t correct? The file needs to have consistent delimiters throughout the file.
--
Mike Jackson
On 10/18/21, 3:37 PM, "Elise Baribault" <dream3...@googlegroups.com on behalf of ebarib...@gmail.com> wrote:
Hi Mike,
Thanks for your suggestions. I am now getting a different error:
Is there a way I can set the end of the file? Maybe I'm misinterpreting what this error means. Also I added the weights for each grain, so I changed the components to be 4 (4 columns).
A peer suggested I follow this: http://www.dream3d.io/Filters/OrientationAnalysisFilters/WriteStatsGenOdfAngleFile/index.html to convert my .txt file to a different .txt file format. Would this be a better way?
Thanks,
Elise
On Monday, October 18, 2021 at 10:05:17 AM UTC-4 mike.j...@bluequartz.net wrote:
Dear Elise,
A few things:
+ Looks like your data is floating point data so I would change the data from “signed int 8 bit” to “Float”
+ The “Number of Components” should be 3
+ Looks like the rest should be correct.
The filter will attempt to read as many rows from the text file as there are “Tuples” in the particular Attribute Matrix that the DataArray is going to be saved into. From your guess it looks like your text file should have 67 rows of data (not taking the header lines into account).
Also, looks like the values are expressed as Degrees. If you are going to do any calculations involving those angles inside of DREAM3D, do not forget to convert them to Radians using the appropriate filter (Just search for the word “Degrees” in the filter list).
--
Mike Jackson
On 10/16/21, 10:33 AM, "Elise Baribault" <dream3...@googlegroups.com on behalf of ebarib...@gmail.com> wrote:
Hi Mike,
Thanks for the reply. I tried these filters but am getting an error importing the file. This is what my pipeline looks like, with the input file being a .txt file. Should it be a different format like .csv? I am not sure if the number of components should be the number of rows? The "first line of data" is correct.
Error! Filename not specified.
Error! Filename not specified.
To view this discussion on the web visit https://groups.google.com/d/msgid/dream3d-users/1bc6ffce-84cd-4273-84db-856c272e9c6dn%40googlegroups.com.
Elise,
I’ve not tried directly importing an FFT file into ParaView. You might be able to do that and skip DREAM.3D, I would try the CSV reader in ParaView and see what that does. You will probably have to combine all of the files together. Also ParaView really will not help you visualize the Euler Angles in any meaningful way. You could always reprocess back through DREAM.3D in order to generate the IPF Colors if needed and the XDMF files for ParaView.
--
Mike Jackson
Hi Mike,
I was able to work around my error by writing a Matlab script to rewrite the Euler angles of my text files for each resolution.
Error! Filename not specified.
To view this discussion on the web visit https://groups.google.com/d/msgid/dream3d-users/08E3ECB2-EE0A-4E1E-ABE9-9592C776BA72%40bluequartz.net.