hollorol / RBBGCMuso

RBBGCMuso is a software package that supports the application of the Biome-BGCMuSo biogeochemical model.
GNU General Public License v2.0
20 stars 11 forks source link

change some lines of the ini file, especially the SOIL filename #17

Open rhg321 opened 3 years ago

rhg321 commented 3 years ago

I am trying to change some lines of the ini file and after that runs the BBGC-MuSo (I already know how to change the EPC file): `library(RBBGCMuso) setwd("E:/language/R_yuyan/muso_run/space_run/space_test") settings = setupMuso(calibrationPar =c(4,31,39,42), # row indices of the variables in INI file that I wish to change ) p = read.table("E:/language/R_yuyan/muso_run/space_run/space_test/TEST.txt",header=F)

change some lines of ini and then runs the BBGC-MuSo 10 times

for(i in 1:10){ results = calibMuso(settings,skipSpinup = TRUE,parameters=p[i,], timee="d", fileToChange="ini", )

} where TEST.txt is: cbs.met43 700 cbs.soi dbf.epc dhs.met43 300 dhs.soi enf.epc`

I encounter the following error: Biome-BGC simulation started 20902ERROR reading int value from enf.epc ERROR reading woody/non-woody flag, epc_init() ERROR in call to epc_init() from pointbgc.c... Exiting Error in value[[3L]](cond) : Cannot read binary output, please check if the output type is set 2 in the ini files! besides : Warning message: In file(binaryname, "rb") : and I found that the INI file has not changed, while the EPC file has changed by the given row indices So, if i want to change the parameters in INI file, especially the SOIL filename, what can I do ?