Skip to content

Instantly share code, notes, and snippets.

@gaelforget
Created June 22, 2018 19:00
Show Gist options
  • Save gaelforget/bf12de4e49fa8a49e1fec882b54c7d1c to your computer and use it in GitHub Desktop.
Save gaelforget/bf12de4e49fa8a49e1fec882b54c7d1c to your computer and use it in GitHub Desktop.
Return reanalysis code names and rgb colors (for NA-ORA-IP)
function [nam,col]=ora_IP_solutions(iSol);
%Solution code names:
ora_IP_solutions_nam={'ECCOv4r3','GLOSEA5','ORAS5','UR025','GLORYS2V4','cglorsv7','GLORYS12V1'};
ora_IP_solutions_nam={ora_IP_solutions_nam{:},'GECCO2','GFDL_ECDA','GONDOLA100A','NorCPM_V0','NorCPM_V1'};
%Color code names selected below are based on:
%https://www.mathworks.com/matlabcentral/fileexchange/24497-rgb-triple-of-color-name--version-2
%https://www.mathworks.com/matlabcentral/mlc-downloads/downloads/submissions/24497/versions/2/screenshot.PNG
ora_IP_solutions_col{1}=rgb('OrangeRed');
ora_IP_solutions_col{2}=rgb('Blue');
ora_IP_solutions_col{3}=rgb('LightBlue');
ora_IP_solutions_col{4}=rgb('Turquoise');
ora_IP_solutions_col{5}=rgb('Aqua');
ora_IP_solutions_col{6}=rgb('CadetBlue');
ora_IP_solutions_col{7}=rgb('DodgerBlue');
ora_IP_solutions_col{8}=rgb('Gold');
ora_IP_solutions_col{9}=rgb('SandyBrown');
ora_IP_solutions_col{10}=rgb('PaleVioletRed');
ora_IP_solutions_col{11}=rgb('Pink');
ora_IP_solutions_col{12}=rgb('HotPink');
if isempty(whos('iSol'))||isempty(iSol);
nam=ora_IP_solutions_nam;
col=ora_IP_solutions_col;
else;
nam=ora_IP_solutions_nam{iSol};
col=ora_IP_solutions_col{iSol};
end;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment