I use the arcticseaice function created by Chad Greene to plot a map, how can I plot a scatter on it ?

1 visualizzazione (ultimi 30 giorni)
Hello,the data for scatter plot is [lat,lon,concentrations]. I use Andrew Bliss' polarstereo_fwd to convert lat,lon to x,y. However, when I plot this scatter on sea ice map, it looks wrong (see below picture). I want to have 2 colorbar with a plot, one is for sea ice map, another is for scatter concentrations.
Below is my code, can someone help me?
Thanks very much!
% plot a seaice map
arcticseaice('aug. 8, 2016','label','none')
cb = colorbar;
ylabel(cb,'sea ice concentration (%)')
cmocean ice
% concentrations data
data=xlsread('F:\arctic_MSAdata_cruise.xlsx');
lat0=data(:,1);
lon0=data(:,2);
msa=data(:,3);
% Conversion lat and lon
[x,y]=polarstereo_fwd(lat0,lon0);
%plot a scatter on seaice map
hold on
h_2=scatter(x,y,10,msa);

Risposte (0)

Prodotti

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by