change path

This commit is contained in:
xuehaiming 2024-10-23 16:38:45 +08:00
parent 59af39637a
commit a5e9c044d9
6 changed files with 10 additions and 10 deletions

2
GO.R
View File

@ -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)

View File

@ -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
View File

@ -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
View File

@ -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
View File

@ -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
View File

@ -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)