Problem
With large datasets, fitAR_map() (and perhaps fitCLS_map()) is exceptionally slow - it can take longer than the partitioned GLS, since it only runs in serial (1 thread). This is clearly an oversight.
Solution
This functionality lends itself to parallelization well. AR models are fit to each pixel independently. So, it makes sense to implement a parallel version of fitAR_map() via an argument ncores.
Early on in the development of remotePARTS, I gave examples about how to apply fitAR() to a full map with the raster package. But, since this package doesn't officially support rasters, an implementation that can handle matrices (and dataframes) is important.
Problem
With large datasets,
fitAR_map()(and perhapsfitCLS_map()) is exceptionally slow - it can take longer than the partitioned GLS, since it only runs in serial (1 thread). This is clearly an oversight.Solution
This functionality lends itself to parallelization well. AR models are fit to each pixel independently. So, it makes sense to implement a parallel version of
fitAR_map()via an argumentncores.Early on in the development of
remotePARTS, I gave examples about how to applyfitAR()to a full map with therasterpackage. But, since this package doesn't officially support rasters, an implementation that can handle matrices (and dataframes) is important.