Implementing geeBfastMonitor with non-Landsat metrics
I would like to use geeBfastMonitor to detect change in a MODIS-based metric. Is there a simple way to overwrite the Landsat NMDI variable in the source code with a metric provided by the user?
For example, after importing the geeBfastMonitor module:
var bfast_in = require('users/andreim/geeMonitor:monitor.js');
Can I specify in the bfastMonitor() function a metric that I would like to use instead of the Landsat NMDI?
var result = bfast_in.bfastMonitor(roi,historyStart,historyEnd,monitoringStart,monitoringEnd,h,period,alpha,magnitudeThreshold,harmonics, ## MODIS-based metric ###);
If this is not possible and the source code in the bfastMonitor source code would need to be updated, is there a version of that source code that is scripted for MODIS data?