[GRASS-dev] null value in vector (v.in.ascii, v.surf.*)

Hamish hamish_b at yahoo.com
Wed May 15 23:14:00 PDT 2013


Yann wrote:
> I am importing a large amount of ascii files as 3D vectors,
> some of them have null values (currently set to an arbitrary
> high constant value)
> 
> Is there a filter for v.in.ascii to set null values,
>  and/or in v.surf.* to avoid using those points with
> specific values?

I typically do it with a pipe through 'grep -v',

NULL=99999.99
grep -vw "$NULL" infile.csv | v.in.ascii ...

and try to make the regex in the grep search as explicit as
possible to avoid false positives.


Hamish


More information about the grass-dev mailing list