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

Patton, Eric epatton at nrcan.gc.ca
Thu Oct 25 10:56:55 EDT 2007


>> Hamish:
>>> I just added redirection from stdin support to r.in.xyz. Everything
>>> seems to work, but of course testing is appreciated.
> 
> Eric wrote: 
>> Thanks very much for this. I've tested r.in.xyz on a massive Simrad
>> EM710 swath bathymetry dataset. Results follow:

<snip>
>> The newly-gridded bathy looks fine; identical to the original.
> 
> r.univar results the same? (n and sum)
>  or
> r.mapcalc diff_map=old-new
> r.univar diff_map
> 
Hamish:
> maybe we need a r.md5sum option added to r.info?
> 
>  

I finally got around to running some long overdue r.univar comparisons between a bathymetry dataset exported from
r.out.xyz and stdin'd to r.in.xyz:

~/Projects >g.region -pg
n=5030730
s=5006690
w=372650
e=404020
nsres=10
ewres=10
rows=2404
cols=3137
cells=7541348

~/Projects >r.out.xyz input=Matthew_2007006_AllBathy_10m.grd | r.in.xyz input=-
output=testing_r_in_xyz

~/Projects >r.univar -g map=Matthew_2007006_AllBathy_10m.grd
n=2497361
null_cells=5043987
min=-171.591
max=-8.47771
range=163.113
mean=-46.3785
mean_of_abs=46.3785
stddev=21.4064
variance=458.235
coeff_var=-46.1559
sum=-115823957.9045209885

~/Projects >r.univar -g testing_r_in_xyz
n=2497361
null_cells=5043987
min=-171.591
max=-8.47771
range=163.113
mean=-46.3785
mean_of_abs=46.3785
stddev=21.4064
variance=458.235
coeff_var=-46.1559
sum=-115823957.9045209885

~/Projects >r.mapcalc diff_map = 'Matthew_2007006_AllBathy_10m.grd -
testing_r_in_xyz'

~/Projects >r.univar -g diff_map
n=2497361
null_cells=5043987
min=0
max=0
range=0
mean=0
mean_of_abs=0
stddev=0
variance=0
coeff_var=nan
sum=0


Looks pretty good to me!

Thanks again,

-- 
Eric Patton
Technologist
Geological Survey of Canada (Atlantic)
Bedford Institute of Oceanography
Dartmouth, Nova Scotia, Canada
902.426.7732
epatton at nrcan.gc.ca




_______________________________________________
grassuser mailing list
grassuser at grass.itc.it
http://grass.itc.it/mailman/listinfo/grassuser




More information about the grass-dev mailing list