J
jamie
Ok, I've got quite a longwinded program that searches through arrays of
positions in 2d matching nearest neighbours in three separate plates.
The arrays are large (about 10000 entries) and read from a datafile
output by a automatic photometry program, GAIA.
My problem is that the matching objects, whilst detected and visible
when read out to the terminal window, are not printed proberly to file.
A file that should contain 6000+ entries stops after 39 lines. This
even occurs when the terminal output through java NearestNeighbours >
entrymatch.text
Can anyone help me with this? I don't know if I should attach code
because it is extremely long so I won't. It seems anyway that the
program is outputting as it should but losing data in trying to write
it. I have no idea how this might arise!
My print command is
PrintWriter matches = new PrintWriter(new
FileWriter("entrymatch.text"));
and it is flushed and closed at the end.
Oh, I'm using Ubuntu if that helps.
Thanks for any help you can give!
jamie
positions in 2d matching nearest neighbours in three separate plates.
The arrays are large (about 10000 entries) and read from a datafile
output by a automatic photometry program, GAIA.
My problem is that the matching objects, whilst detected and visible
when read out to the terminal window, are not printed proberly to file.
A file that should contain 6000+ entries stops after 39 lines. This
even occurs when the terminal output through java NearestNeighbours >
entrymatch.text
Can anyone help me with this? I don't know if I should attach code
because it is extremely long so I won't. It seems anyway that the
program is outputting as it should but losing data in trying to write
it. I have no idea how this might arise!
My print command is
PrintWriter matches = new PrintWriter(new
FileWriter("entrymatch.text"));
and it is flushed and closed at the end.
Oh, I'm using Ubuntu if that helps.
Thanks for any help you can give!
jamie