I am receiving four error messages when I try to run runNMR or runwithNMR. I've installed the most recent versions of microclimc and NicheMapR. The error appears using the example in the vignette as well. I've tried debugging to figure out where the error is coming from, but cannot seem to figure it out.
library(microclimc)
library(microctools)
library(microclima)
library(NicheMapR)
tme<-as.POSIXlt(weather$obs_time, format = "%Y-%m-%d %H:%M", tz = "UTC")
prec <- dailyprecipNCEP(lat = 50, long = -5, tme)
vegp <- habitatvars(4, lat = 50, long = -5, tme, m = 20)
soilp<- soilinit("Loam")
Run model in hourly timesteps for a year using weather dataset included with the package
dataout <- runwithNMR(weather, prec, vegp, soilp, reqhgt = 2, lat = 50, long = -5)
ERROR: microinput has the wrong number of inputs
ERROR: LAI has the wrong number of inputs
ERROR: hori has the wrong number of inputs
Error in microclimate(micro) : object 'a' not found
I am receiving four error messages when I try to run runNMR or runwithNMR. I've installed the most recent versions of microclimc and NicheMapR. The error appears using the example in the vignette as well. I've tried debugging to figure out where the error is coming from, but cannot seem to figure it out.
library(microclimc) library(microctools) library(microclima) library(NicheMapR) tme<-as.POSIXlt(weather$obs_time, format = "%Y-%m-%d %H:%M", tz = "UTC") prec <- dailyprecipNCEP(lat = 50, long = -5, tme) vegp <- habitatvars(4, lat = 50, long = -5, tme, m = 20) soilp<- soilinit("Loam")
Run model in hourly timesteps for a year using weather dataset included with the package dataout <- runwithNMR(weather, prec, vegp, soilp, reqhgt = 2, lat = 50, long = -5)
ERROR: microinput has the wrong number of inputs
ERROR: LAI has the wrong number of inputs
ERROR: hori has the wrong number of inputs
Error in microclimate(micro) : object 'a' not found
Thanks, Lydia