Skip to content

Add scalar_spread #315

Description

@ph-kev

For the calibration pipeline in ClimaCoupler, this function is used at the end of iteration in analyze_iteration. This would be an useful function to have in general.

function scalar_spread(ekp)
    g_mean_final = EKP.get_g_mean_final(ekp)
    g_final = EKP.get_g_final(ekp)
    sq_dists = [sum((col .- g_mean_final) .^ 2) for col in eachcol(g_final)]
    return Statistics.mean(sq_dists)
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions