0

I have a huge raster (> 20 GB) and trying to convert it to one txt file. Is there a way to do that in parallel R computing? I couldn't load RAM to the memory as it is quite bit.

My computer has 8 cores and 16 Gb of RAM

best

user22364
  • 47
  • 7
  • What is a raster and what exactly does 'convert it to one txt file' mean? – Eike P. Sep 01 '15 at 20:06
  • A raster is a spatial data structure that divides a region of any shape into rectangles. Think of it as a grid with many cells. 'convert it to one txt file' means that the OP wants to change the file format such as converting a file from GeoTIFF to ASCII – Julian Wittische Sep 09 '15 at 20:52

1 Answers1

0

Divide your raster in 2 rasters, in the most convenient way to recombine them later (a horizontal division). Then create 2 .txt files using the same command on 2 different instances of R. You can try to recombine them afterwards using this if you use Windows.

You can divide your original rasters in 8 and do the same but I guess it would be tedious (although likely faster).

Community
  • 1
  • 1
Julian Wittische
  • 1,219
  • 14
  • 22