[GRASS-user] How to grep basic statistics from a vector ascii (x,
y, z) file and export in a new ascii?
G. Allegri
giohappy at gmail.com
Sat Jan 5 12:47:34 EST 2008
you could use R with the Rgdal [1] package. You read the LIDAR file
and then simply a function like this:
import your data attirubting them to "your_Dataframe" with something like:
# your_Dataframe<-readGDAL(filename,drivername)
You could retrieve the drivernames with gdalDrivers()
# row_MAX<-your_Dataframe[your_Dataframe$z==max(your_Dataframe$z),]
row_MAX is now a vector containing the coordinates and the z value of
the mazimum z.
Giovanni
[1] http://cran.r-project.org/src/contrib/Descriptions/rgdal.html
2008/1/5, Markus Neteler <neteler at osgeo.org>:
> On Jan 5, 2008 5:17 PM, Nikos Alexandris
> <nikos.alexandris at felis.uni-freiburg.de> wrote:
> > A friend works with LIDAR data. He needs to write a program with which
> > he extracts (from an vector ASCII x,y,z file) the row containing the
> > maximum z (height) and write a new vector ASCII containing the result.
> >
> > (He writes in C++)
> >
> > Since he deals with lots of ASCII files he needs to batch this job.
> >
> > How about doing this in GRASS? With R maybe?
>
> It would be good to extend v.univar to also analyze the geometry
> statistics. I was seeking for the same functionality recently.
>
> Markus
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
More information about the grass-user
mailing list