Calculate ESR for a given raster template
esr(x)
x
a character string with the path to the data file.
data.table