[GRASSLIST:1528] Site display problem

I am not sure if I am missing something obvious here or not.. but I am
having a slight problem displaying a sites file, and cannot seem to
figure it out.. the problem is that only one site is showing up, even
though there are 12 in the file... the site lists is as follows:

-- name|buoys.sites
desc|s.in.ascii sites=buoys.sites input=buoy_grass_21_12.txt fs=space
93:30W|22:36N|#1 %100 %11 %41901
89:42W|25:48N|#2 %60 %14 %1 %42001
94:24W|25:12N|#3 %60 %10 %1 %42002
85:54W|26N|#4 %120 %4 %0.5 %42003
88:48W|30:06N|#5 %300 %10 %0 %42007
95:24W|27:54N|#6 %110 %4 %0.5 %42019
96:42W|26:54N|#7 %40 %6 %0.5 %42020
94:24W|29:12N|#8 %0 %0 %0.5 %42035
84:30W|28:30N|#9 %20 %6 %0 %42036
86:06W|28:48N|#10 %10 %8 %0.5 %42039
88:12W|29:12N|#11 %350 %6 %0.5 %42040
90:30W|27:30N|#12 %50 %8 %0.5 %42041

my first thought was out of region, but that looks kosher.. my current region is:

N=38:15N S= 13:30N E=70:48W W=104:24W (lat/long)

Any ideas?

LTJG Kevin Slover, NOAA
GIS Specialist/Meteorologist/Oceanographer
Tropical Prediction Center/Technical Support Branch
11691 SW 17th Street Miami FL 33165
(W) 305-229-4456 (F) 305-553-1264

The first line has 6 columns, the second 7 columns! This may be the problem!

Kevin Slover wrote:

I am not sure if I am missing something obvious here or not.. but I am
having a slight problem displaying a sites file, and cannot seem to
figure it out.. the problem is that only one site is showing up, even
though there are 12 in the file... the site lists is as follows:

-- name|buoys.sites
desc|s.in.ascii sites=buoys.sites input=buoy_grass_21_12.txt fs=space
93:30W|22:36N|#1 %100 %11 %41901
89:42W|25:48N|#2 %60 %14 %1 %42001
94:24W|25:12N|#3 %60 %10 %1 %42002
85:54W|26N|#4 %120 %4 %0.5 %42003
88:48W|30:06N|#5 %300 %10 %0 %42007
95:24W|27:54N|#6 %110 %4 %0.5 %42019
96:42W|26:54N|#7 %40 %6 %0.5 %42020
94:24W|29:12N|#8 %0 %0 %0.5 %42035
84:30W|28:30N|#9 %20 %6 %0 %42036
86:06W|28:48N|#10 %10 %8 %0.5 %42039
88:12W|29:12N|#11 %350 %6 %0.5 %42040
90:30W|27:30N|#12 %50 %8 %0.5 %42041

my first thought was out of region, but that looks kosher.. my current region is:

N=38:15N S= 13:30N E=70:48W W=104:24W (lat/long)

Any ideas?

LTJG Kevin Slover, NOAA
GIS Specialist/Meteorologist/Oceanographer
Tropical Prediction Center/Technical Support Branch
11691 SW 17th Street Miami FL 33165
(W) 305-229-4456 (F) 305-553-1264

--
Dr.Helmer Schack-Kirchner
Institut für Bodenkunde und Waldernährungslehre
Albert-Ludwigs-Universität
79085 Freiburg / Germany
Tel. xx761 203 3612
Fax. xx761 203 3618

Hello Kevin

On Tue, 21 Oct 2003, Kevin Slover wrote:

I am not sure if I am missing something obvious here or not.. but I am
having a slight problem displaying a sites file, and cannot seem to
figure it out.. the problem is that only one site is showing up, even
though there are 12 in the file... the site lists is as follows:

-- name|buoys.sites
desc|s.in.ascii sites=buoys.sites input=buoy_grass_21_12.txt fs=space
93:30W|22:36N|#1 %100 %11 %41901
89:42W|25:48N|#2 %60 %14 %1 %42001

The first site has only 3 floating point attributes, whereas all the
others have 4. Probably d.sites assumes the format of the first site is
the same for the whole file, and then stops when it finds one that doesn't
match the format or continues on through the file looking for others that
match the format of the first one, but in this case there are none.

Paul

Thanks Paul..
  Something I hadn't thought about really... and voila, that was the problem... hmmm... interesting, very interesting... so this means that the format of each line MUST be the same, or it will not plot... raising a slight problem, but I will figure something out...

Thanks for the insight, something I have never dealt with before, and some very valuable insight... guess I must go and create my own site files as a work around...

Paul Kelly wrote:

Hello Kevin

On Tue, 21 Oct 2003, Kevin Slover wrote:

I am not sure if I am missing something obvious here or not.. but I am
having a slight problem displaying a sites file, and cannot seem to
figure it out.. the problem is that only one site is showing up, even
though there are 12 in the file... the site lists is as follows:

-- name|buoys.sites
desc|s.in.ascii sites=buoys.sites input=buoy_grass_21_12.txt fs=space
93:30W|22:36N|#1 %100 %11 %41901
89:42W|25:48N|#2 %60 %14 %1 %42001

The first site has only 3 floating point attributes, whereas all the
others have 4. Probably d.sites assumes the format of the first site is
the same for the whole file, and then stops when it finds one that doesn't
match the format or continues on through the file looking for others that
match the format of the first one, but in this case there are none.

Paul

--
LTJG Kevin Slover, NOAA
GIS Specialist/Oceanographer
NOAA/National Hurricane Center/Storm Surge Unit
11691 SW 17th Street
Miami FL 33165

W (305) 229-4456

On Tue, Oct 21, 2003 at 03:50:01PM +0100, Paul Kelly wrote:

Hello Kevin

On Tue, 21 Oct 2003, Kevin Slover wrote:

> I am not sure if I am missing something obvious here or not.. but I am
> having a slight problem displaying a sites file, and cannot seem to
> figure it out.. the problem is that only one site is showing up, even
> though there are 12 in the file... the site lists is as follows:
>
> -- name|buoys.sites
> desc|s.in.ascii sites=buoys.sites input=buoy_grass_21_12.txt fs=space
> 93:30W|22:36N|#1 %100 %11 %41901
> 89:42W|25:48N|#2 %60 %14 %1 %42001

The first site has only 3 floating point attributes, whereas all the
others have 4.

As far as I remember the sites library in libgis takes the first *data*
line of the site file to detect the format and column order.

All data lines have to be identical.

Markus