I want to use gdal_translate to convert a ASCII grid file onto a xyz file. But the ASCII grid is about 5.7Go and the xyz outfile is really bigger (approximately 30Go). To reduce the memory I would like to didn't store no data values but when I use -a no_data -9999 there is still lines into the xyz files like X Y -9999. It's a real problem for me, because they are useless and took too much place on my files. Also, I saw that my decimals values (Z) are quite big ! Something like 10 decimal's numbers (350.1498736541). Is that possible to ask it to troncate after 2 decimals (350.14 or better : 350.15) ?
For now, I use gdal_translate like that :
gdal_translate -of xyz -a_nodata -9999 Mosaic.asc Mosaic.xyz