Question about the Hourly input Vignette-Brandon

82 views
Skip to first unread message

Brandon Van Huizen

unread,
Feb 11, 2026, 1:43:07 PMFeb 11
to NicheMapR
Hi Dr. Kearney,

I was going through the vignette here https://mrke.github.io/NicheMapR/inst/doc/microclimate-hourly-input-example
To see if I can use it as a template for my study area, however when I got to the part to run the code, it said that the microinput has the wrong number of inputs. 

I see the date on the vignette is from 2024, has the microclimate() function changed, where the parameter inputs have changed?

My end goal is to be able to drive the model using our own on site meteorological data to model turtle nest temperatures and soil moisture. 

Cheers,
Brandon

NicheMapR

unread,
Feb 12, 2026, 7:20:47 PMFeb 12
to NicheMapR
Hi Brandon,

Thanks for pointing this out - I've updated the vignettes linked to the website and fixed a few other things that had recently broken so it should work now. The issue you had was that there was a new user-option, ndmax, the maximum number of days to get a 'steady periodic' for soil temperatures when running simulations that are not consecutive days, e.g. micro_global does the middle day of each month. In the past this was fixed at 3 days but sometimes you need more iterations depending on what your initial condition assumptions are for the soil thermal profile.

All the best,
Mike

Brandon Van Huizen

unread,
Mar 2, 2026, 3:29:15 PMMar 2
to NicheMapR
Awesome, thank you!

Brandon Van Huizen

unread,
Apr 23, 2026, 12:58:57 PMApr 23
to NicheMapR
Hi Mike, just following up on this, would I have to uninstall and reinstall NicheMapR on R for the update to take effect? I copied and pasted the tutorial into Rstudio and ran it but still got the same error (microinput has the wrong number of inputs). When I drop the ndmax variable from the microinput though, then the tutorial model runs.

However, when I try and adapt it to my site, several more variables are added that have the same "...has the wrong number of inputs" error. These are the variables below

RHMINN
RHMAXX

CCMINN

WNMAXX

TMINN

TMAXX

RAINFALL

TAIRhr

RHhr

WNhr

CLDhr

SOLRhr

RAINhr

ZENhr

IRDhr

Each of these it says has the wrong number of inputs, but they match the same length as the tutorial, where the first 7 have a length of 365 (running the model for one year) and the next 8 have 8760 (365*24 hours). 

Cheers,
Brandon

On Thursday, February 12, 2026 at 7:20:47 PM UTC-5 NicheMapR wrote:

NicheMapR

unread,
Apr 24, 2026, 7:24:47 PMApr 24
to NicheMapR
Hi Brandon,
You would need to reinstall from github - devtools::install_github('mrke/NicheMapR').
Hopefully that solves the issue.
All the best,
Mike

Brandon Van Huizen

unread,
Apr 29, 2026, 11:13:55 AMApr 29
to NicheMapR
Okay, sounds good, that fixed the microinput issue, however I am still getting the same error for the min and max values listed below. They have lengths of 365 and 8760. Not sure if I am missing something for them? I am using my own hourly data from my field site. 
Reply all
Reply to author
Forward
0 new messages