[GRASS-user] Importing multiple files with r.in.xyz

Hanlie Pretorius hanlie.pretorius at gmail.com
Tue Aug 10 08:59:05 EDT 2010


Hi,

I'm working with WinGRASS 6.4RC6 on Win XP.

I'm following the steps at http://grass.osgeo.org/wiki/Import_XYZ to
import hundreds files containing TRMM rainfall data.

When I try to follow the instruction:
-----
Just amend above procedure to use wildcards. Change in above example
all occurencies of

 cat VTL2733.XYZ | ...

to

 cat *.XYZ | ...

and use a more reasonable output name of course. That's all to import
even thousands of files (tiled DEM) easily.
-----

Not sure what a 'reasonable output name is', so I run it as shown
below and get the following error:
-----
cat F:\Hanlie\UCT\M.Sc.\Data\TRMM\2000\02_Februrarie\*.txt| r.in.xyz
-s in=- fs=, out=test
cat: F:\Hanlie\UCT\M.Sc.\Data\TRMM\2000\02_Februrarie\*.txt: No such
file or directory
-----

If I try it with one file only, it works:
-----
cat F:\Hanlie\UCT\M.Sc.\Data\TRMM\2000\02_Februrarie\3B42.000201.0.6.nc.lieb.txt|
r.in.xyz -s in=- fs=, out=test
Range:
x:    -28.625000    -27.375000
y:     28.125000     28.625000
z:      0.000000       0.000000
-----

How do I get this to work? And how would I get the output filenames to
be related to the input filenames? For example, if the input filename
is 3B42.000201.0.6.nc.lieb.txt, then I want the output raster to be
named '3B42.000201.0.6'.

Thanks
Hanlie


More information about the grass-user mailing list