Skip to content

Functional interface for error metrics #358

@treigerm

Description

@treigerm

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions