function scoords = getSubjectCoordinates(gcoords,map)
m = java.util.HashMap ;

%build lookuptable
for i = 1:numel(map.names)
    key = cell2mat(map.names(i));
    val = map.coords(i,:);
    m.put(key,val);
end

% do the lookup
scoords = [];
for c = 1:numel(gcoords)
    key = strtrim(gcoords(c).name);
    val = m.get(key)';
%     mod = gcoords(c).mod;
%     scoords = [scoords; val+mod];
    co = struct;
    co.coord = val;
    co.rad = gcoords(c).rad;
    scoords = [scoords; co];
end

end