Hi Karles
I have not used the parameter correction functionality before, so I am not sure if the error is part of Ostrich or something in the setup.
Regardless, I might suggest an alternate approach that I know will work. It looks like your parameter correction is applied to ensure that some parameters are always <= others. For this I have used TiedParameters to ensure these relative relationships are preserved. This can be done for a pair of parameters by introducing a third parameter that is not in the model but represents the ratio of one parameter to another, which can be calibrated as part of the trial. The second parameter is then calculated as a tied parameter as a fraction of the first.
For example, in one my model setups in the ostIn file, I have a setup to calibrate par_x49 and par_x56, where par_x56 is a multiplier I created that is not otherwise part of the model. I can then compute a tied parameter, par_prod_x49_x56 as the product of these two, ensuring that my desired relationship between par_x49 and par_prod_x49_x56 will be preserved by controlling the range of par_x56.
BeginTiedParams
par_prod_x49_x56 2 par_x49 par_x56 linear 1.00 0.00 0.00 0.00 free
# Compute SNOW_ICEPT_PCT as a product of RAIN_ICEPT_PCT
# SNOW_ICEPT_PCT = par_prod_x49_x56 = par_x49 * par_x56 = RAIN_ICEPT_PCT * scalar[1,1.5]
# Xtied =(c3 * X1 * X2) + (c2 * X2) + (c1 * X1) + c0, required syntax to translate
EndTiedParams
Hope that helps and saves a bit of headache with connecting external scripts.
Cheers,
Rob