GrassASCIIFile: Difference between revisions
(answer question) |
(faq) |
||
Line 17: | Line 17: | ||
---- | ---- | ||
--HB: ''this question is perhaps better directed at the GRASS user mailing list, not in the wiki, but could be edited into a nice FAQ entry.'' | --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: | But, to answer your question: | ||
Line 45: | Line 45: | ||
--''end-quote''-- | --''end-quote''-- | ||
[[Category:FAQ]] |
Revision as of 04:16, 5 April 2008
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--