to make chease_data for RAPTOR:

>> eqd=gdat(shot,'eqdsk','time',1.8,'doplot',1); % to get eqdsk file at given shot/time
>> %if you have an eqdsk file then just: eqd.eqdsk.fnamefull = filename;
>> [~,~,namelist_struct] = run_chease(2); % get default namelist for eqdsk run
>> namelist_struct.ncscal = 2; % use Ip constraint (coming from eqdsk) if q profile not quite good in original eqdsk
                               % default is using q0 from eqdsk as contraint
>> cocos = 17; % this is the COCOS coordinate convention number for TCV [Sauter2012], change it if it is different for your eqdsk file / tokamak
>> [fname_out,globalsvalues,namelist_struct,namelistfile_eff] = run_chease(namelist_struct,eqd.eqdsk.fnamefull,cocos); 

Note that by 

[chease_data] = eqdsk_ocols_to_chease_data(fname_out{2},fname_out{end-1}) % give eqdsk out name and o.....cols name to get chease_data

You can get globals and profiles from chease output with:
>> [globalsvalues,ocols_struct] = extractdatachease(fname_out{end-2_to adapt},fname_out{end-1}); % can add .RZcols file as well now
(usually output chease and .cols are last but one filenames in fname_out) !! not anymore, need to search for *.cols and EQDSKS_02_out for example

save TCV_shot_t_time.mat chease_data % then use it in RAPTOR
