Open donenrique24 opened 2 weeks ago
It seems the model MPB_SLR requires the MTS from the current and previous years in order to provide the prediction for the current year. Consequently, setting fromYr = 2020 and toYear = 2020 fails. To obtain the prediction for year 2020, the fromYr argument should be set to 2019. The model help is not explicit on this. It should be improved.
Thank you!
It looks like these models work if there are at least 2 years, but fail with 1 year. Importantly, when supplying more than 1 year, some of these will only return the final year. i.e., if 2010 to 2020 is supplied, it will only return data from 2020. (See @donenrique24 next comment)
[1] "BudBurst" "Climate_Mosture_Index_Annual"
[3] "EmeraldAshBorerColdHardiness_Annual" "Gypsy_Moth_Seasonality"
[5] "HemlockWoollyAdelgid_Annual" "HemlockWoollyAdelgid_Daily"
[7] "MPB_Cold_Tolerance_Annual" "MPB_Cold_Tolerance_Daily"
[9] "MPB_SLR" "PlantHardinessCanada"
[11] "PlantHardinessUSA" "Spruce_Budworm_Biology_Annual"
[13] "SpruceBeetle" "Standardised_Precipitation_Evapotranspiration_Index"**
You are right with MPB_SLR. However, I just checked with "Climate_Mosture_Index_Annual" because I have been using it recently. When I supply 2015 and 2021 as initial and final years, I get the CMI for all those years except 2015. Same thing for "Gypsy_Moth_Seasonality".
I'll check the others when I am back to the office.
Eliot McIntire reported the following bug: