Skip to content

New issue with calibrate_sim  #273

@fanxian1998

Description

@fanxian1998

The following is part of the code of R language Lanmei :

calib_setup <- setup <- data.frame('pars' = as.character(c('wind_factor','lw_factor','ch','sed_temp_mean','sed_temp_mean',
'coef_mix_hyp','Kw')),
'lb' = c(0.7,0.7,5e-4,3,8,0.6,0.05),
'ub' = c(2,2,0.002,8,20,0.4,0.5),
'x0' = c(1,1,0.0013,5,15,0.5,0.1))
print(calib_setup)
glmcmd = NULL
first.attempt = TRUE
period = get_calib_periods(nml_file,ratio = 2)
period
scaling = TRUE
method = 'CMA-ES'
metric = 'RMSE'
target.fit = 1.5
target.iter = 100
plotting = TRUE
output = out_file
field_file = field_data
calibrate_sim(var, path, field_file, nml_file, calib_setup, glmcmd, first.attempt, period,
scaling, method, metric, target.fit, target.iter, plotting, output, verbose = FALSE)

When running to calibrate_sim, an error occurred, as shown below :
Calibration functions are under development, and are likley to change with future package updates.
[1] "RMSE 4.926"
[1] "RMSE 6.963"
Error in approx(x = elevs_re, y = temps_re, xout = elevs_out) :
need at least two non-NA values to interpolate
In addition: There were 33 warnings (use warnings() to see them)

I want to ask what is causing this and how to solve the problem, I hope someone can answer it, or contact me by email .my mail box :[email protected]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions