[GRASS-user] problem with grass 6.4.0

Benjamin Ducke benducke at fastmail.fm
Thu Jul 12 01:06:59 PDT 2012


It's not surprising that it works with commas.
A numeric field that contains leading whitespace
is easy to parse correctly into a number. But
if the field separator is set to be one space and
the fields are in fact separated by more than one,
r.in.xyz will assume that the column data is missing.

Apparently, the old version of r.in.xyz in GRASS 6.3
was able to tolerate successive field separators,
but the new one is not. Maybe a flag should be added
to r.in.xyz to allow this behavior again.

Ben

-- 
Benjamin Ducke
{*} Geospatial Consultant
{*} GIS Developer
  
  benducke AT fastmail.fm


On Thu, Jul 12, 2012, at 09:57, Alberto Pettazzi wrote:
> Hello Markus,
> 
> I have updated the version to 6.4.2 but the problem still persists.
> 
> the line
> 
>     -7.830    43.050     0.000
> 
> is the first line.
> 
> The input file was generated by a fortran program. I modified the 
> program in order to separate the fields by  comma
> 
>     -7.830,   43.050,    0.000,
>     -6.930,   42.470,    0.000,
>     -8.530,   42.280,    0.000,
>     -7.640,   41.710,    0.000,
>     -7.790,   43.050,    0.000,
>     -6.900,   42.470,    0.000,
> 
> and r.in.xyz succeed in reading the input file...
> 
> I am running grass through a script in bash, the same that worked in the 
> previous version installed in the previous server
> 
> El 11/07/12 18:02, Markus Neteler escribió:
> > On Wed, Jul 11, 2012 at 11:17 AM, Alberto Pettazzi
> > <alberto.pettazzi at meteogalicia.es> wrote:
> >> Dear all,
> >>
> >> I was using GRASS version 6.3.0 and everything worked fine.  Now I installed
> >> 6.4.1 on a brand new server and I am experiencing some problems.
> > We highly recommend to get 6.4.2. You don't want to miss the many
> > improvements :)
> > http://grass.osgeo.org/announces/announce_grass642.html
> >
> >> I want to run the scripts and the locations I had on the old grass and when
> >> I execute the command on the new version
> > Yes, in general this should work as expected due to the maintained
> > compatibility.
> >
> >> r.in.xyz i=input_file.txt o=output_file fs=' ' --o
> >>
> >> this is what I get
> >>
> >> Reading data ...
> >> ERROR: Bad y-coordinate line 1 column 2. <>
> >>
> >> the file I am trying to read from has the following structure
> >>
> >>     -7.830    43.050     0.000
> > ... is this the first line? In which language are you running GRASS?
> >
> > But again, it would be much better to upgrade to GRASS 6.4.2 first.
> >
> > Markus
> 
> 
> -- 
> 
> Alberto Pettazzi
> 
> 
> MeteoGalicia - Departamento de Climatología y Observación
> 
> Consellería de Medio Ambiente, Territorio e Infraestruturas
> 
> Rúa de Roma, 6
> 
> 15707 Santiago de Compostela. A Coruña
> 
> 
> Teléfono: +34-881-999646
> 
> 
> e-mail: alberto.pettazzi at meteogalicia.es 
> <mailto:alberto.pettazzi at meteogalicia.es>
> 
> 
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user


More information about the grass-user mailing list