Functional interface for error metrics
Thank you for developing this useful package!
I installed ldcpy to calculate the data-SSIM (ssim_value_fp_fast). However, on my own dataset, I could not initialise a Diffcalcs instance because it does not come from one of the supported data_types.
The code for ssim_value_fp_fast (and many of the other metrics) seems mostly agnostic to the supplied data type though. I was wondering whether it would be possible to expose an some of the error metrics as simple functions which take in two xr.DataArrays (or some other acceptable array type) and return a floating point number? Such functionality would make it a lot easier to incorporate ldcpy into external projects!
Great suggestion - we'll look into this for the future.
Thanks a lot!