|
27 | 27 | filen <- tempfile("gmtmap")
|
28 | 28 | on.exit(unlink(c(filen, ".gmtcommands4")))
|
29 | 29 | cmd <- paste("gmt pscoast -Rd",x1,"/",x2,"/",y1,"/",y2, " -Jx0.5id -P -G -D",
|
30 |
| - res, " -X0 -Y0 >", filen,sep = "") |
| 30 | + res, " -X0 -Y0 > ", filen,sep = "") |
31 | 31 | system(cmd)
|
32 | 32 |
|
33 | 33 | txt <- readLines(filen);
|
|
75 | 75 | if (coastline){# & !(x1<180 & x2>360)){
|
76 | 76 | filen <- tempfile("gmtmap") ; on.exit(unlink(c(filen, ".gmtcommands4")))
|
77 | 77 | res <- c("f", "h", "i", "l", "c")[resolution]
|
78 |
| - cmd <- paste("gmt pscoast -Rd",x1,"/",x2,"/",y1,"/",y2," -Jx2id -W -M -D",res," >",filen,sep="") |
| 78 | + cmd <- paste("gmt pscoast -Rd",x1,"/",x2,"/",y1,"/",y2," -Jx2id -W -M -D",res," > ",filen,sep="") |
79 | 79 | system(cmd)
|
80 | 80 | dat <- readLines(filen);
|
81 | 81 | ff<-function(str)if(regexpr("#",str)>0){
|
|
105 | 105 | usr<-par("usr"); x1<-usr[1]; x2<-usr[2]; y1<-usr[3]; y2<-usr[4];
|
106 | 106 | filen <- tempfile("gmtmap") ; on.exit(unlink(c(filen, ".gmtcommands4")))
|
107 | 107 | res <- c("f", "h", "i", "l", "c")[reso]
|
108 |
| - cmd <- paste("gmt pscoast -R",x1,"/",x2,"/",y1,"/",y2," -Jx2id -W -M -D",res," >",filen,sep="") |
| 108 | + cmd <- paste("gmt pscoast -R",x1,"/",x2,"/",y1,"/",y2," -Jx2id -W -M -D",res," > ",filen,sep="") |
109 | 109 | system(cmd)
|
110 | 110 | dat <- readLines(filen);
|
111 | 111 | ff<-function(str)if(regexpr("#",str)>0){
|
|
0 commit comments