[GRASSLIST:1117] Re: s.in.ascii | general site question

Glynn Clements glynn.clements at virgin.net
Thu Sep 4 15:52:39 EDT 2003


Kevin Slover wrote:

> I am having some difficulties importing a sites file correctly... and 
> maybe it is difficulty in understanding the principles behind the ascii 
> file formats.
> 
> I am attempting to import an ascii file with general form of:
> lon lat waveheight winddirection windspeed buoynumber
> (ex: -87.5 25.2 1.0 300 15 42001)
> 
> it is tab delimmeted, and imports with no problem.  However, in trying 
> to use d.site.lables, it only allows me to use attr=double, which adds 
> on unnecessary zeros, making the labels worthless.
> 
> Is the reason why I can only use doubles is that the import data 
> contains no text of any sort?  Is there any way to force it to import as 
>   a string?

If an attribute consists solely of digits and ".", "+" and "-" it is
treated as a double, otherwise it is treated as a string.

You may be better off just creating the internal sites file directly
rather than using s.in.ascii; the format is described in the
s.in.ascii manpage.

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-user mailing list