public void transform_file(String infile, ICoordinateTransform T, String outfile)
throws IOException
{
IDataReader reader = dataNew.reader(infile);
int N = reader.size();
IDataWriter writer = dataNew.writer(outfile, N, T.dimension());
if (writer instanceof AsciiDataSequenceWriter && fixedOutputPrecision)
((AsciiDataSequenceWriter)writer).setFixedPrecision(outputPrecisionPre, outputPrecisionPost);
for (IDoubleArray X : reader)
writer.add(T.transform(X));
writer.close();
}