First, check your separator and explicitly state it by the fs parameter
e.g. fs=’ ’ or fs=‘\t’, etc.
If you are using headers make use of skip
e.g. skip=1 the first line is the header
you could explicitly state what are the columns with x and y
x=2 explicitly states that x is the second column
y=3 explicitly states that y is the third column
here is an example:
v.in.ascii input=/your_path/your_file.asc output=name fs=’ ’ columns=‘point_id varchar(20), x double precision, y double precision’ x=2 y=3 skip=1 --o
here is the input file (example in utm_wgs84 zone 32N)
point_id x y
point1 575225.75 4785221.74
point2 575229.78 4785227.41
etc.
Hope this helps!
Duccio
-------- Messaggio originale --------
Oggetto: [GRASS-user] v.in.ascii
Data: Thu, 21 Oct 2010 12:15:56 +0200
Mittente: Luca Cinquepalmi <cinquepalmi@planetek.it>
Organizzazione: Planetek Italia s.t.l. +39 080 9644200
A: grass-user@lists.osgeo.orgHi. I started with grass and whne i use the v.in.ascci comand the wollowing message appears.
ERROR: y column number> minimum last column number
(incorrect field separator?)what does it mean? is there another method to import ascci file? thanks
Luca
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user-------------- next part --------------
An HTML attachment was scrubbed…
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20101021/3157718e/attachment-0001.html
Message: 5
Date: Thu, 21 Oct 2010 11:32:08 +0100
From: Monica Buescu <monicabuescu1985@gmail.com>
Subject: Re: [GRASS-user] Use of r.mode
Cc: GRASS user list <grass-user@lists.osgeo.org>
Message-ID:
<AANLkTintNHzbKeJPpsihEE8YNDS-E-jFdZ0nSDPswTD2@mail.gmail.com>
Content-Type: text/plain; charset=“iso-8859-1”Well, that’s not good. Yes, maybe a problem with disk space or memory? l’ll
have to leave to someone more knowledgeable to answer here.Thanks Micha
Probaby in this case is “Memory” space. Because for Smaller images I don’t
get any problem and bigger images I’m getting this problem.
As anyone experienced such a problem? (GRASS takes toooooo long to display
an image or apply r.mapcalc?
-------------- next part --------------
An HTML attachment was scrubbed…
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20101021/0a7a7d41/attachment-0001.html
Message: 6
Date: Thu, 21 Oct 2010 11:43:51 +0100
From: Kim Besson <kimbesson1981@gmail.com>
Subject: Re: [GRASS-user] Type of data to be used in i.maxlik
To: GRASS user list <grass-user@lists.osgeo.org>
Message-ID:
<AANLkTinXf2V9m6340=YE1j=qWrf35PDEhc-9MigCBsPC@mail.gmail.com>
Content-Type: text/plain; charset=“iso-8859-1”Hi Markus
The input can be double but will be read as integer (CELL) since the
function
G_open_cell_old() is used [1].**
This means what? That pixels with values >255 are all the same? or pixels
like 1,034 and 2,043 are rounded?
-------------- next part --------------
An HTML attachment was scrubbed…
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20101021/73c0a49a/attachment-0001.html
Message: 7
Date: Thu, 21 Oct 2010 13:09:09 +0200
From: Markus Metz <markus.metz.giswork@googlemail.com>
Subject: Re: [GRASS-user] Type of data to be used in i.maxlik
To: Kim Besson <kimbesson1981@gmail.com>
Cc: GRASS user list <grass-user@lists.osgeo.org>
Message-ID:
<AANLkTimEJ7_NwuE=n50Jabs3Gw+p-MDOA7MCH_imn6Xw@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1Kim Besson wrote:
The input can be double but will be read as integer (CELL) since the
function
G_open_cell_old() is used [1].This means what? That pixels with values >255 are all the same?
I think the representable range of CELL is -2,147,483,647 to
2,147,483,647. Anything beyond the range of CELL will be transformed
(by the system, not by GRASS) to fall within the range.or pixels like 1,034 and 2,043 are rounded?
Truncated, not rounded, e.g.
1.034 → 1
1.9 → 1
2.1 → 2
-1.9 → -1Markus M
Message: 8
Date: Thu, 21 Oct 2010 13:57:45 +0200
From: Micha Silver <micha@arava.co.il>
Subject: Re: Fwd: [GRASS-user] v.in.ascii
To: Luca Cinquepalmi <cinquepalmi@planetek.it>
Cc: grass-user@lists.osgeo.org
Message-ID: <4CC02AB9.4000302@arava.co.il>
Content-Type: text/plain; charset=“us-ascii”An HTML attachment was scrubbed…
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20101021/b8231f27/attachment.html
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-userEnd of grass-user Digest, Vol 54, Issue 46
–
Dr. Duccio Rocchini, PhD
Edmund Mach Foundation
IASMA Research and Innovation Centre
Environment and Natural Resources Area
GIS and Remote Sensing Unit
Via Mach 1, 38010 San Michele all’Adige (TN) - Italy
Phone +39 0461 615 570
duccio.rocchini@iasma.it
skype: duccio.rocchini
web page: http://gis.fem-environment.eu/rocchini/