Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rhg321 opened this issue Jun 28, 2021 · 0 comments
Open

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

rhg321 opened this issue Jun 28, 2021 · 0 comments

Comments

@rhg321
Copy link

rhg321 commented Jun 28, 2021

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant