Changing mtc43 to wth, removing ini, mtcin files
This commit is contained in:
parent
bffc28e6a0
commit
0941434a33
@ -498,20 +498,19 @@ getMeteoData1BGC <- function(startYear=2017, endYear=2017, lon=18.8, lat=47.3, t
|
|||||||
# "_lat", latSub, "_lon", lonSub, ".wth"))
|
# "_lat", latSub, "_lon", lonSub, ".wth"))
|
||||||
###
|
###
|
||||||
|
|
||||||
file.copy(paste0(destDir,"/1.mtc43"), fileDir)
|
#file.rename("1.ini",
|
||||||
|
# paste0(grid,
|
||||||
|
# "_lat", latSub, "_lon", lonSub, ".ini")) # ID number (1,2,...) can be added to the title by using object grid befor "_lat"
|
||||||
|
|
||||||
file.rename("1.ini",
|
#file.rename("1.mtcin",
|
||||||
paste0(grid,
|
# paste0(grid,
|
||||||
"_lat", latSub, "_lon", lonSub, ".ini")) # ID number (1,2,...) can be added to the title by using object grid befor "_lat"
|
# "_lat", latSub, "_lon", lonSub, ".mtcin")) # ID number (1,2,...) can be added to the title by using object grid befor "_lat"
|
||||||
|
|
||||||
file.rename("1.mtcin",
|
file.rename(paste0(fileDir, "/", destDir, "/1.mtc43"),
|
||||||
paste0(grid,
|
paste0(fileDir, "/", destDir, "/", grid,
|
||||||
"_lat", latSub, "_lon", lonSub, ".mtcin")) # ID number (1,2,...) can be added to the title by using object grid befor "_lat"
|
|
||||||
|
|
||||||
file.rename("1.mtc43",
|
|
||||||
paste0(grid,
|
|
||||||
"_lat", latSub, "_lon", lonSub, ".wth")) # ID number (1,2,...) can be added to the title by using object grid befor "_lat"
|
"_lat", latSub, "_lon", lonSub, ".wth")) # ID number (1,2,...) can be added to the title by using object grid befor "_lat"
|
||||||
|
|
||||||
|
file.copy(paste0(fileDir, "/", destDir, "/", grid, "_lat", latSub, "_lon", lonSub, ".wth"), fileDir)
|
||||||
# file.rename("1.ini", paste0(sprintf('%0.4d', gridID),".ini"))
|
# file.rename("1.ini", paste0(sprintf('%0.4d', gridID),".ini"))
|
||||||
#
|
#
|
||||||
# file.rename("1.mtcin", paste0(sprintf('%0.4d', gridID),".mtcin"))
|
# file.rename("1.mtcin", paste0(sprintf('%0.4d', gridID),".mtcin"))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user