I have a large data file (.txt) with bivariate data in the following form
x1,y1
x2,y2
x3,y3
.
.
.
xn,yn
---------F 0
x1, y1
x2, y2
.
.
.
xn, yn
--------F 1
.
.
.
and so on.
What I want to do is import the X, Y data into Mathematica up to the first "------- F " and plot a Histogram3D. This, I would repeat until the end of the file, each time plotting a Histogram3D. In the end, I would like to make an Animation of the Histogram3Ds that I plotted.
How should I go about this?
I do
data = Import[
"C:\\Users\\Debajyoti \
Sengupta\\Documents\\Processing\\collide_pde\\spatial_density.txt", \
{"Data", Range[10]}]
Histogram3D[data,Automatic]
to import and plot a Histogram3D for the first 10 data points. I understand that I need to do a loop somehow and store the Histogram3Ds somehow, but I am not sure how to do that.
The files are really large (~2 GB). Any ideas about speeding up import are welcome.
Thanks
ReadLine[]
and loop through all the lines of the input file. $\endgroup$