Site Data

Susan Huse sue at ced.berkeley.edu
Wed Dec 1 17:34:09 EST 1993


> From grass-lists-owner at max.cecer.army.mil Wed Dec  1 05:07:16 1993
> Date: Wed, 1 Dec 93 06:57:29 CST
> From: tom%alla@[155.84.92.2] (Tom Nelson)
> Sender: grass-lists-owner at max.cecer.army.mil
> Reply-To: grassu-list at max.cecer.army.mil
> To: grassu-list at max.cecer.army.mil
> Subject: Re: Site Data
> Cc: tom%alla@[155.84.92.2]
> Content-Length: 2043
> 
> 
> 
> ----- Begin Included Message -----
> 
> >From grass-lists-owner at max.cecer.army.mil Tue Nov 30 18:23:06 1993
> Date: Tue, 30 Nov 93 17:19:49 MST
> From: caa at noaacrd.Colorado.EDU (Craig Anderson)
> Sender: grass-lists-owner at max.cecer.army.mil
> Reply-To: grassu-list at max.cecer.army.mil
> Sender: grass-lists-owner at moon.cecer.army.mil.
> Reply-To: grassu-list at moon.cecer.army.mil.
> Precedence: Bulk
> To: grassu-list at max.cecer.army.mil
> Subject: Site Data
> X-Sun-Charset: US-ASCII
> Content-Length: 681
> 
> Fellow GP/GU's
> 
> 	I have a problem as usual with site data, seems to be a reoccuring 
> problem.  I would like to get some site data into GRASS in the following format:
> 
> East         North        Attrib
> -111:25:12   45:29:51     #1
> 
> 	Thus far, the only way I can get s.in.ascii to work is by changing the
> format to:
> 
> East	     North        Attrib
> -111.2512     45.2951     #1
> 
> 	Needless to say these are not quite the same position.  One being in 
> DDMMSS and the other in Decimal Degrees.  Question is, why can't the blasted
> thing read in ddmmss format?  G.region seems to be correctly set but I get a
> format error every time I run s.in.ascii.
> 
> Thanks, Craig
> caa at noaacrd.colorado.edu
> 
> 
> ----- End Included Message -----


Try doing a little text manipulation.
This is an APRROXIMATE solution!!!

1) get rid of any header lines
2) using sed or vi change all spaces (or tabs) to colons
3) print out column1 + (column2/60)+ (column3/3600) | 
	column4 + (column5/50) + (column6/3600) | column 7 to last column

4) This output should be exactly sites format, for example:

560057.41966863|4263191.57307645|#1 Snowflake Mine (magnesite)
536515.18315178|4274423.60897556|#2 Palisade Mine (silver, gold, copper)
534492.47207638|4278020.97020013|#3 Silverado Mine (silver, gold)

Good luck!


-Sue Huse
CEDR - REGIS
UC Berkeley




More information about the grass-user mailing list