Extracting latent variables from forecast ensembles and advancements in similarity metric utilizing optimal transport