Skip to content
Snippets Groups Projects
Commit d8878f22 authored by gong1's avatar gong1
Browse files

merge develop and add skill score functionn

parents 73a7c6f3 6b229106
Branches
Tags
No related merge requests found
Pipeline #90898 failed
......@@ -7,12 +7,10 @@ from __future__ import division
from __future__ import print_function
__email__ = "b.gong@fz-juelich.de"
__author__ = "Bing Gong"
__author__ = "Bing Gong, Yan Ji"
__date__ = "2020-12-04"
__update_date__ = "2022-02-02"
import os
from matplotlib.pylab import plt
import json
import numpy as np
......@@ -23,6 +21,11 @@ from model_modules.video_prediction.metrics import *
import xarray as xr
def skill_score(tar_score,ref_score,best_score):
ss = (tar_score-ref_score) / (best_score-ref_score)
return ss
class MetaPostprocess(object):
def __init__(self, root_dir: str = "/p/project/deepacf/deeprain/video_prediction_shared_folder/",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment