[GRASS-user] v.in.ascii

Harald Hofmann Harald.Hofmann at sci.monash.edu.au
Tue Feb 3 16:24:50 EST 2009


Hello, I use GRASS 6.3


Hey Hamish,
I use the skip command. skip=1 for the first line in the ascii file. But 
still no header in dbf import.

here is an example for one import
v.in.ascii -n 
/Users/Desktop/Data/081211_Mitchell_plane_bores_list_V002.csv 
out=mitchell_bores fs=, skip=1 x=2 y=3 --o

Cheers
Harald

Hamish wrote:
> Harald Hofmann wrote:
>
>   
>> What I mean is the header import in v.in.ascii.
>> I have point data with chemical analysis in the attribute
>> table. Every time I import a text file, containing these
>> tables and using v.in.ascii, the header is not imported,
>> which is quit annoying when you have 20 or 30 different
>> parameters.
>>     
>
> If you use the skip= option to pass over column heading lines,
> you will find those lines saved in the map's metadata history.
> View it with 'v.info -h'.
>
> Lines after skip= number of rows which are commented (start with a "#")
> will not be saved to the metadata history.
>
> If you want the raw data column headings to become the attribute column
> names in the database, you have to use the v.in.ascii columns= option.
> Currently it is not automatically taken due to the free form allowance
> for the input data. A bit of a pain, but you must define column type
> anyway so a little cut&paste of the top line into a text editor gets
> you close.
>
>
> hope it helps,
> Hamish
>
>
>
>       
>
>   

-- 
-------------------------------------------
Harald Hofmann 
PhD Candidate - Hydrogeology 
School of Geosciences
Bldg 28 Monash University 
Clayton Campus 
Wellington Road 
VIC 3800
Australia

harald.hofmann at sci.monash.edu.au

Office: +61 3 9905 5786
Fax:    +61 3 9905 4903



More information about the grass-user mailing list