The single ESM function was originally set up to only replace NA values with a large arbitrary number but when the -log mesa is used to calibrate to the CMIP range sometimes we can get Inf values which causes problems for optim. This change replaces the Inf values with the same arbitrary number number.
The single ESM function was originally set up to only replace
NA
values with a large arbitrary number but when the -log mesa is used to calibrate to the CMIP range sometimes we can getInf
values which causes problems foroptim
. This change replaces theInf
values with the same arbitrary number number.