Skip to content

DIII-D unaccessible PTDATA pointnames  #261

@yumouwei

Description

@yumouwei

Description of the problem

The get_n1_bradial_parameters tries to access PTDATA DUSBRADIAL and (if it fails) ONSBRADIAL to fetch data for its computation. Currently both of these get data calls fail.

# TODO: TREE NAME?
# BUG: Failed here!
dusbradial, t_n1 = params.mds_conn.get_data_with_dims(
f"ptdata('dusbradial', {params.shot_id})",
tree_name="d3d",
)
t_n1 /= 1e3 # [ms] -> [s]
dusbradial = interp1(t_n1, dusbradial, params.times)
dusbradial *= 1.0e-4 # [T]
except mdsExceptions.MdsException as e:
params.logger.debug(f"[Shot {params.shot_id}]:{traceback.format_exc()}")
# If there's no data in dusbradial (DUD system)
# check if ONFR was on and calculating the bradial
try:
dusbradial, t_n1 = params.mds_conn.get_data_with_dims(
f"ptdata('onsbradial', {params.shot_id})",
tree_name="d3d",
)
t_n1 /= 1e3 # [ms] -> [s]
dusbradial = interp1(t_n1, dusbradial, params.times)
dusbradial *= 1.0e-4 # [T]

Corresponding lines in the MATLAB script

fprintf(1,['Reading bradial from MDS+ for shot%7i\n'], shot);
[n1time,status] = mdsvalue(['dim_of(ptdata("dusbradial", ' num2str(shot) '))']);%[ms]
if (mod(status,2) == 1 && length(n1time) >= 4);%1
fprintf(1,'dusbradial\n')
n1time = n1time/1.e3; % convert ms to s
dusbradial = mdsvalue(['ptdata("dusbradial", ' num2str(shot) ')'])*1.e-4; %[T]
mdsclose;
else;
% If there's no data in dusbradial (DUD system)
% check if ONFR was on and calculating the bradial
[n1time,status] = mdsvalue(['dim_of(ptdata("onsbradial", ' num2str(shot) '))']);
if (mod(status,2) == 1 && length(n1time) >= 4);%2
fprintf(1,'onsbradial\n')
n1time = n1time/1.e3; % convert ms to s
dusbradial = mdsvalue(['ptdata("onsbradial", ' num2str(shot) ')'])*1.e-4; %[T]
mdsclose;

I also tried checking these pointnames in ReviewPlus but it gave ERROR %TREE-W-NNF, Node Not Found error as well.
image

Also, on Omega I tried to check jTraverser by using tree name = "d3d" or "efit01" but neither of them worked. What's the proper tree name I should use?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions