Skip to content
Snippets Groups Projects
Commit b6a3c599 authored by Victor Stepanenko's avatar Victor Stepanenko
Browse files

MAE calculation added to post-processing

parent 21c301c5
Branches
Tags
No related merge requests found
......@@ -39,9 +39,11 @@ if nplots > 1:
#RMSE
diff = var[0] - var[1]
#diff = nm.ma.masked_array(diff,nm.isnan(diff)) #removing NaNs
diff = abs(diff)
mae = nm.sum(diff)/len(diff)
diff = diff*diff
rmse = (nm.sum(diff)/len(diff))**0.5
print('RMSE = ', rmse, '; CC = ', cc[0,1], '; N = ', len(diff))
print('RMSE = ', rmse, '; CC = ', cc[0,1], ';MAE = ', mae, '; N = ', len(diff))
time_ = nm.zeros(len(time[nplots-1]))
time_[:] = time[nplots-1][:]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment