diff --git a/modules/deeplearning/cloud_opd_srcnn_viirs.py b/modules/deeplearning/cloud_opd_srcnn_viirs.py index aa0219989f248dd15d13b98f1c6ded059a31cd56..e91c88ff5781fa46a6c362c9feb9981d81071388 100644 --- a/modules/deeplearning/cloud_opd_srcnn_viirs.py +++ b/modules/deeplearning/cloud_opd_srcnn_viirs.py @@ -2,7 +2,7 @@ import glob import tensorflow as tf from util.setup import logdir, modeldir, now, ancillary_path -from util.util import EarlyStop, normalize, denormalize, get_grid_values_all, resample_2d_linear +from util.util import EarlyStop, normalize, denormalize, scale, descale, get_grid_values_all, resample_2d_linear import os, datetime import numpy as np import pickle @@ -291,7 +291,8 @@ class SRCNN: # ----------------------------------------------------- # ----------------------------------------------------- label = input_label[:, label_idx_i, :, :] - label = normalize(label, label_param, mean_std_dct) + # label = normalize(label, label_param, mean_std_dct) + label = scale(label, label_param, mean_std_dct) label = label[:, self.y_128, self.x_128] label = np.where(np.isnan(label), 0, label)