Skip to content

Commit 435e4f1

Browse files
committed
seamaps fix for windows
1 parent 1750c61 commit 435e4f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rtools/seamaps/R/plotmaps-GMT.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
filen <- tempfile("gmtmap")
2828
on.exit(unlink(c(filen, ".gmtcommands4")))
2929
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 = "")
3131
system(cmd)
3232

3333
txt <- readLines(filen);
@@ -75,7 +75,7 @@
7575
if (coastline){# & !(x1<180 & x2>360)){
7676
filen <- tempfile("gmtmap") ; on.exit(unlink(c(filen, ".gmtcommands4")))
7777
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="")
7979
system(cmd)
8080
dat <- readLines(filen);
8181
ff<-function(str)if(regexpr("#",str)>0){
@@ -105,7 +105,7 @@
105105
usr<-par("usr"); x1<-usr[1]; x2<-usr[2]; y1<-usr[3]; y2<-usr[4];
106106
filen <- tempfile("gmtmap") ; on.exit(unlink(c(filen, ".gmtcommands4")))
107107
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="")
109109
system(cmd)
110110
dat <- readLines(filen);
111111
ff<-function(str)if(regexpr("#",str)>0){

0 commit comments

Comments
 (0)