Reference profile queries are not optimized
When using reference, loader is called for each pixel of the reference zone. Thus rasterio open the dataset and extract the value for each pixel (PlotModel.update_ref_values). Could be greatly optimized by using rasterio to open extract a window of pixels directly.
Edited by Colin Thomas