[GRASS-dev] r.in.xyz can now read from stdin

Patton, Eric epatton at nrcan.gc.ca
Thu Jul 12 15:20:07 EDT 2007


Well, never mind. We won't have to wait that long. I ran out of memory trying to pipe the text file in question to r.in.xyz:

$ g.region -p
projection: 1 (UTM)
zone:       20
datum:      wgs84
ellipsoid:  wgs84
north:      5027110
south:      4878260
west:       169140
east:       404580
nsres:      5
ewres:      5
rows:       29770
cols:       47088
cells:      1401809760

$ r.out.xyz input=Matthew_EM710_2007_July4_10m.grd fs=, output=TESTING_R_IN_XYZ_5m.txt
100%

# Input: TESTING_R_IN_XYZ_5m.txt   Size: ~4.6GB

$ cat TESTING_R_IN_XYZ_5m.txt | r.in.xyz input=- output=TESTING_R_IN_XYZ_5m fs=, percent=100
ERROR: G_calloc: out of memory

I realize I'm using a ridiculously large region. Should r.in.xyz have been able to accept a file this large?

~ Eric.








More information about the grass-dev mailing list