ilyamaclean / microclimc

Below or above canopy microclimate modelling with R
12 stars 7 forks source link

runNMR error #16

Open lysoifer opened 6 months ago

lysoifer commented 6 months ago

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

lysoifer commented 6 months ago

An update on the previous error message - I reinstalled a previous version of NicheMapR (v.3.2.0) and microclimc is able to run without error