change path
This commit is contained in:
parent
59af39637a
commit
a5e9c044d9
2
GO.R
2
GO.R
@ -55,7 +55,7 @@ for(itask in 1:task.N){
|
|||||||
writelog(paste('\t', itask, '/', task.N, 'task \t', task.fn), caller = caller)
|
writelog(paste('\t', itask, '/', task.N, 'task \t', task.fn), caller = caller)
|
||||||
|
|
||||||
theTask = readLines(task.fn)
|
theTask = readLines(task.fn)
|
||||||
theTask = gsub('/home/wwwroot/r', '.', theTask)
|
theTask = gsub('/data/ghdc', '.', theTask)
|
||||||
writelog(paste('\t', itask, '/', task.N, 'task \t', theTask), caller = caller)
|
writelog(paste('\t', itask, '/', task.N, 'task \t', theTask), caller = caller)
|
||||||
writelog(paste('\t++++++START++++++:', theTask), caller = caller)
|
writelog(paste('\t++++++START++++++:', theTask), caller = caller)
|
||||||
|
|
||||||
|
@ -169,7 +169,7 @@ getDEM_MERITHYDRO <- function(fn.wbd,
|
|||||||
fn.demcrop = file.path(dir.out, 'GDEM_crop.tif')
|
fn.demcrop = file.path(dir.out, 'GDEM_crop.tif')
|
||||||
spx = rgdal::readOGR(fn.wbd)
|
spx = rgdal::readOGR(fn.wbd)
|
||||||
ext=extent(spx)
|
ext=extent(spx)
|
||||||
cmd= paste('python3 /home/wwwroot/r/python/dem_merit_hydro90.py ',
|
cmd= paste('python3 /data/ghdc/python/dem_merit_hydro90.py ',
|
||||||
floor(ext[1]), ceiling(ext[1]), floor(ext[3]), ceiling(ext[4]),
|
floor(ext[1]), ceiling(ext[1]), floor(ext[3]), ceiling(ext[4]),
|
||||||
paste0(dir.rawdem, '/'), fn.dem )
|
paste0(dir.rawdem, '/'), fn.dem )
|
||||||
|
|
||||||
|
4
x.R
4
x.R
@ -5,7 +5,7 @@
|
|||||||
#' ===============================================================
|
#' ===============================================================
|
||||||
|
|
||||||
rm(list=ls())
|
rm(list=ls())
|
||||||
setwd('/home/wwwroot/r')
|
setwd('/data/ghdc')
|
||||||
library(rjson)
|
library(rjson)
|
||||||
library(utils)
|
library(utils)
|
||||||
library(rgdal)
|
library(rgdal)
|
||||||
@ -82,7 +82,7 @@ for(itask in task.N:400){
|
|||||||
writelog(paste('\t', itask, '/', task.N, 'task \t', task.fn), caller = caller)
|
writelog(paste('\t', itask, '/', task.N, 'task \t', task.fn), caller = caller)
|
||||||
|
|
||||||
theTask = readLines(task.fn)
|
theTask = readLines(task.fn)
|
||||||
theTask = gsub('/home/wwwroot/r', '.', theTask)
|
theTask = gsub('/data/ghdc', '.', theTask)
|
||||||
writelog(paste('\t', itask, '/', task.N, 'task \t', theTask), caller = caller)
|
writelog(paste('\t', itask, '/', task.N, 'task \t', theTask), caller = caller)
|
||||||
writelog(paste('\t++++++START++++++:', theTask), caller = caller)
|
writelog(paste('\t++++++START++++++:', theTask), caller = caller)
|
||||||
|
|
||||||
|
4
x1.R
4
x1.R
@ -5,7 +5,7 @@
|
|||||||
#' ===============================================================
|
#' ===============================================================
|
||||||
|
|
||||||
rm(list=ls())
|
rm(list=ls())
|
||||||
setwd('/home/wwwroot/r')
|
setwd('/data/ghdc')
|
||||||
library(rjson)
|
library(rjson)
|
||||||
library(utils)
|
library(utils)
|
||||||
library(rgdal)
|
library(rgdal)
|
||||||
@ -82,7 +82,7 @@ for(itask in 1:200){
|
|||||||
writelog(paste('\t', itask, '/', task.N, 'task \t', task.fn), caller = caller)
|
writelog(paste('\t', itask, '/', task.N, 'task \t', task.fn), caller = caller)
|
||||||
|
|
||||||
theTask = readLines(task.fn)
|
theTask = readLines(task.fn)
|
||||||
theTask = gsub('/home/wwwroot/r', '.', theTask)
|
theTask = gsub('/data/ghdc', '.', theTask)
|
||||||
writelog(paste('\t', itask, '/', task.N, 'task \t', theTask), caller = caller)
|
writelog(paste('\t', itask, '/', task.N, 'task \t', theTask), caller = caller)
|
||||||
writelog(paste('\t++++++START++++++:', theTask), caller = caller)
|
writelog(paste('\t++++++START++++++:', theTask), caller = caller)
|
||||||
|
|
||||||
|
4
x2.R
4
x2.R
@ -5,7 +5,7 @@
|
|||||||
#' ===============================================================
|
#' ===============================================================
|
||||||
|
|
||||||
rm(list=ls())
|
rm(list=ls())
|
||||||
setwd('/home/wwwroot/r')
|
setwd('/data/ghdc')
|
||||||
library(rjson)
|
library(rjson)
|
||||||
library(utils)
|
library(utils)
|
||||||
library(rgdal)
|
library(rgdal)
|
||||||
@ -82,7 +82,7 @@ for(itask in 201:400){
|
|||||||
writelog(paste('\t', itask, '/', task.N, 'task \t', task.fn), caller = caller)
|
writelog(paste('\t', itask, '/', task.N, 'task \t', task.fn), caller = caller)
|
||||||
|
|
||||||
theTask = readLines(task.fn)
|
theTask = readLines(task.fn)
|
||||||
theTask = gsub('/home/wwwroot/r', '.', theTask)
|
theTask = gsub('/data/ghdc', '.', theTask)
|
||||||
writelog(paste('\t', itask, '/', task.N, 'task \t', theTask), caller = caller)
|
writelog(paste('\t', itask, '/', task.N, 'task \t', theTask), caller = caller)
|
||||||
writelog(paste('\t++++++START++++++:', theTask), caller = caller)
|
writelog(paste('\t++++++START++++++:', theTask), caller = caller)
|
||||||
|
|
||||||
|
4
x3.R
4
x3.R
@ -5,7 +5,7 @@
|
|||||||
#' ===============================================================
|
#' ===============================================================
|
||||||
|
|
||||||
rm(list=ls())
|
rm(list=ls())
|
||||||
setwd('/home/wwwroot/r')
|
setwd('/data/ghdc')
|
||||||
library(rjson)
|
library(rjson)
|
||||||
library(utils)
|
library(utils)
|
||||||
library(rgdal)
|
library(rgdal)
|
||||||
@ -82,7 +82,7 @@ for(itask in 401:task.N){
|
|||||||
writelog(paste('\t', itask, '/', task.N, 'task \t', task.fn), caller = caller)
|
writelog(paste('\t', itask, '/', task.N, 'task \t', task.fn), caller = caller)
|
||||||
|
|
||||||
theTask = readLines(task.fn)
|
theTask = readLines(task.fn)
|
||||||
theTask = gsub('/home/wwwroot/r', '.', theTask)
|
theTask = gsub('/data/ghdc', '.', theTask)
|
||||||
writelog(paste('\t', itask, '/', task.N, 'task \t', theTask), caller = caller)
|
writelog(paste('\t', itask, '/', task.N, 'task \t', theTask), caller = caller)
|
||||||
writelog(paste('\t++++++START++++++:', theTask), caller = caller)
|
writelog(paste('\t++++++START++++++:', theTask), caller = caller)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user