Hello all,
I am trying to extract some data for plotting and I've been struggling to get the data structered how I want it. I have a results file attached which is where I'm getting my data. I want to pull out the first section of data which represents node numbers and xyz coordinates and store this data as a Nx4 array (N happens to be 12881 for this file). I also want to pull out the very last temperature data set (at the very end, the NDTEMP block just above the RFL block) and store that as a 61×2 array.
The main problem I've been having so far is that the coordinates and temperature data is in exponential/scientific notation, and sscanf() doesn't seem to want to read them. I've tried formating sscanf() with %11.5E, %11.5e with no luck. The dimensions of the arrays come out correct if I format sscanf() with %d and %f but I want to keep the scientific notation if I can.
Any tips or advice would be greatly appreciated!
Thank you for your time,
Best,
John
Best Answer