GrassASCIIFile
I am working with GRASS as a newbie to qualify everything past I.
When importing an ASCII file with some arbitrary delimitation, what is the format? I am able to modify my FORTRAN to give me what ever but my search for the format is null.
X , Y , Z
Lat ,Long ,Elev
DDDMMSSssss,DDDMMSSssss, Meters ---> Which one?
DDDdddddddd,DDDdddddddd, Meters -|
--HB: this question is perhaps better directed at the GRASS user mailing list, not in the wiki, but could be renamed and edited into a nice FAQ entry.
But, to answer your question:
- The GRASS import tools can typically take any deliminator you specify, the default is "|".
- Degree-minute-second and hemisphere can be given as +/-DDD.DDDD, DDDh, DDD:MM.MMMMMh, or DDD:MM:SS.SSSSh format.
This is documented in the v.in.ascii help page:
--quote--
Latitude/Longitude data may be given in a number of ways. Decimal degrees must be positive or negative instead of using a hemisphere letter. Mixed coordinates must use a hemisphere letter. Whole minutes and seconds must always contain two digits (example: use 167:03:04.567; and not 167:3:4.567).
Acceptable formats: key: D=Degrees; M=Minutes; S=Seconds; h=Hemisphere (N,S,E,W)
- (+/-)DDD.DDDDD
- DDDh
- DDD:MMh
- DDD:MM.MMMMMh
- DDD:MM:SSh
- DDD:MM:SS.SSSSSh
--end-quote--