From a5114bf82aba8f8c897105a2d77a7009ada03cb4 Mon Sep 17 00:00:00 2001
From: Antonia Frank <antonia.frank@epfl.ch>
Date: Fri, 23 Feb 2024 18:11:22 +0100
Subject: [PATCH] add simple tau_tot call to gdat_tcv

---
 matlab/TCV/tcv_requests_mapping.m | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/matlab/TCV/tcv_requests_mapping.m b/matlab/TCV/tcv_requests_mapping.m
index 9909a953..47be410c 100644
--- a/matlab/TCV/tcv_requests_mapping.m
+++ b/matlab/TCV/tcv_requests_mapping.m
@@ -457,6 +457,11 @@ switch lower(data_request)
                     'bb=interpos(aa.t,aa.data(ix,:),gdat_tmp.t,-100);' ...
                     'gdat_tmp.data = 4e-7*pi.*gdat_tmp.data.^2.*bb./1.22; gdat_tmp.label=''\tau_R'';gdat_tmp.gdat_request=''tau_r'';' ...
                     'gdat_tmp.units=''s'';gdat_tmp.help=''tauR=mu0 a^2 / 1.22 etaneo(rhopol=0.4)'''];
+ case 'tau_tot'
+  mapping.timedim = 1;
+  mapping.label = 'total energy confinment time';
+  mapping.method = 'tdi';
+  mapping.expression = '\results::conf:tau';
  case 'te'
   mapping.timedim = 2;
   mapping.label = 'Te';
-- 
GitLab