Open dklinges9 opened 2 weeks ago
an update: subsetting the micropoint output avoids crashing. micro <- subsetpointmodel(micro, tstep = "month", what = "tmax")
Normally I would think this would suggest memory-limitation issues, but given that I'm predicting across just a 9 x 10 pixel scene, for one year, and have been testing in an R session with 100 GB of memory, I don't think memory is the issue.
Could you fix this line of code in the example:
climdata <- climdata %>% dplyr::filter(obs_time %in% tme)
Hi Ilya,
Thanks for the prompt reply. that line was just to subset the climate timeseries, so the model would run faster (and ultimately crash sooner). I just removed that subsetting, as it wasn't causing the model to crash. Here in this updated Google Drive link is the updated code is the updated script, with the same data.
Model still causing R to crash
Hi Ilya,
Given the C++ core of the models now, I have a harder time debugging issues that crop up. It seems that some errors cause an R session to crash rather than displaying an error message.
In this zip folder uploaded to Google Drive, I have a script (runmicro_test.R) and two sets of files (stored in /test and /test2). As executed in the script, using the files in /test works fine. Yet using files in /test2 causes runmicro() to crash. Both sets of files enable
vegp
to be created properly, and the point model via runpointmodel() works.If you're able to take a crack at this and figure out what's going wrong, that'd be greatly appreciated. I've pasted my sessionInfo() below-- I've tried this already on two machines, both in R 4.2.3 and R 4.3.2, and the model crashes in both versions.
Thanks, Dave