gandalfcode / gandalf

GANDALF (Graphical Astrophysics code for N-body Dynamics And Lagrangian Fluids)
GNU General Public License v2.0
44 stars 12 forks source link

Comments in column data format header #37

Open dhubber opened 8 years ago

dhubber commented 8 years ago

It was suggested in the GANDALF school to add a comment character (hash I think) to allow simple plotting programmes (such as gnuplot) to ignore the header when reading in the file. However, the column format can also be used for reading in snapshots. Would we need to read in and strip away this hash (assuming it is there in case people load in older snapshots) or is there a simpler way to ignore it in C++?

rbooth200 commented 8 years ago

Hhmm. So I think the best thing to do is to read the header line-by-line and remove the hash if it's there. We only need to support the case where it is the first character I guess

dhubber commented 8 years ago

Yes, it should just be the first character so it should not be too difficult hopefully.