[GRASSLIST:5467] v.in.ascii

Francesco Mirabella mirabell at unipg.it
Fri Jan 21 09:38:02 EST 2005


dear grass list,

I am on grass60beta1:

I need to import an ascii tab-separated file composed of 4 columns:
cat,lat,long,depth

I have a problem with v.in.ascii, I get "get xcol> minimum last column number "

This is what I do and get:

GRASS 6.0.cvs:~ > v.in.ascii -z input=LatLon_AC_thous.dat output=prova_again1  fs=tab  columns='x double, y double, z double, cat int'  x=2 y=3 z=4 cat=1 

D2/3: Vect_open_new(): name = prova_sismi_again1
D1/3: Vect_set_thresh(): thresh = 0.000000
D1/3: V1_open_new_nat(): name = prova_sismi_again1
D1/3: Vect_get_thresh(): thresh = 0.000000
D1/3: dig__write_head()
D1/3: write coor size (0) to head
D2/3: coor body offset 14
D3/3: dig_init_plus()
D1/3: dig_spidx_init()
D3/3: dig_cidx_init()
D3/3: Vect_hist_command()
D3/3: G_recreate_command()
Maximum input row length: 26
Maximum number of columns: 1
Minimum number of columns: 1
ERROR: xcol > minimum last column number
GRASS 6.0.cvs:~ > 

Apparently x=2 is wrong (?) but if I delete the column of <cat> and
try to import with <x=1, y=2, z=3> I get the same ERROR with ycol (i.e.
ERROR: ycol > minimum last column number

Can anyone tell me where I am wrong??

many thanks,

Francesco





More information about the grass-user mailing list