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