Skip to content

Bug in create.modeling.options when timeStepForEvapo is set to 'variable'?

Hi Nico;

I am working with the function create.modeling.options() and when I set thetimeStepForEvapo to 'variable' I get the following error:

Error in timeStepForEvapo * 3600 : non-numeric argument to binary operator

This error happens because the code tries to multiply a string ( which in this case is "Variable") with numbers.

Is this a bug or am I using the function wrong?

The values that I am using in the function are:

create.modeling.options(timeStepForEvapo = "Variable",
                        compOptionsForEvapo = 'Fast',
                        customSmallTimeStepInSec =600,
                        Lcav = 1,
                        Scav = 1,
                        Eord = 1,
                        numericalScheme ='Implicit',
                        printProg = T,
                        ETPFormulation = 'PT',
                        RnFormulation = 'Linear',
                        constantClimate =T,
                        lat = 90,
                        lon = 90,
                        yearStart = 1991,
                        yearEnd = 1992,
                        outputResolution = "daily",
                        outputType = "simple_subdaily",
                        outputPath = "test",
                        outputOverwrite = T,
                        defoliation = T,
                        thresholdMortality = 51,
                        transpirationModel = 'Jarvis',
                        #transpiGranierArgs = ,
                        stomatalRegFormulation =  "Turgor"
                            
    
)
Edited by Erick Calderon-Morales