clear;clc
load('.\nclcolormap.mat')
sl =[0,50,100,200,500,0];
el =[50,100,200,500,1000,200];fori=1:length(sl)
file =['..\data\static_result\VIS_Min-',num2str(sl(i)),'to',num2str(el(i)),'_yearly.npy'];
data =readNPY(file);
mask=readNPY('.\mask.npy');
data =data.*mask;
siz =30;
lat =15:0.05:55;
lon =70:0.05:140.05;[X,Y]=meshgrid(lon,lat);set(gcf,'color',[111],'position',[10451000800*1.2]);%get(0,'screensize')axes('position',[0.10.20.850.6]);% 数据映射: 数据分布差异较大,使用分位数将数据进行映射
datax =data(:);datax(isnan(datax))=[];
percentiles =prctile(datax(:),[0,50,80,90:2:9899.9]);
percentiles =unique(percentiles);
x_ =linspace(percentiles(end-1),percentiles(end),4);
percentiles =[percentiles(1:end-2), x_];
percentiles =unique(percentiles);
xx1=percentiles(1:end-1);
xx2=percentiles(2:end);
CC1=0;CC2=length(xx1);
data_map=data;for ii=1:length(xx1)data_map(data>=xx1(ii)&data<xx2(ii))=ii-0.5;end% 画图mypcolor(X,Y,data_map);shading interp
hcb=colorbar;
map = nclcolormap.WhBlGrYeRe;
map_ =map(round(linspace(1,length(map), CC2)),:);colormap(map_)
box on;hold on
caxis([CC1 CC2]);set(hcb,'xtick',[CC1:CC2],'xticklabel',num2str(percentiles','%.1f'),'FontName','Times New Roman','fontsize',siz-15)set(hcb,'Location','southoutside','position',[0.10000.09030.85000.0278])set(get(hcb,'xlabel'),'string','\fontname{Aril}频次','fontsize',siz-10);% 地理信息
path ='.\China\';
China1=shaperead([path,'省.shp']);
China2=shaperead([path,'九段线.shp']);plot([China1(:).X],[China1(:).Y],'color',[0.80.80.8],'linewidth',1); hold on
plot([China2(:).X],[China2(:).Y],'color',[0.80.80.8],'linewidth',1); hold on
axis([701401555]);hold on
set(gca,'fontsize',siz-15,'fontname','Times New Roman',...'tickdir','out','ticklength',[0.01,0.05],'linewidth',1.2);xlabel('Lon(\circE)','fontsize',siz-12,'fontweight','bold')ylabel('Lat(\circN)','fontsize',siz-12,'fontweight','bold')title(['\fontname{Aril}2019-2023年平均',num2str(sl(i)),'-',num2str(el(i)),'m能见度频次'],'fontsize',siz-12,'fontweight','bold');% 小地图
ax2=axes('position',[0.810.210.120.12]);mypcolor(X,Y,data_map);shading interp
caxis([CC1 CC2]);colormap(map_)
box on;hold on
plot([China1(:).X],[China1(:).Y],'color',[0.70.70.7],'linewidth',0.5); hold on
plot([China2(:).X],[China2(:).Y],'color',[0.70.70.7],'linewidth',0.5); hold on
axis([104.5,124,0,26]);set(gca,'xtick','','ytick','','layer','top');
save_name=['../map/matlab_map/',num2str(sl(i)),'-',num2str(el(i)),'.png'];export_fig(save_name,'-r200');
clf
end
close all
论文网址:Frontiers | A Survey on Deep Learning for Neuroimaging-Based Brain Disorder Analysis (frontiersin.org)
英文是纯手打的!论文原文的summarizing and paraphrasing。可能会出现难以避免的拼写错误和语法错误,若有发现欢迎评论…