Does anyone helps in finding Spatial correlation along time dimension of atmos. var. ( lon X lat X time) along with significance (p<0.05)? I have 2 var(s) (ssa & diff_rad). I plotted spatial corr,but need stat. sign. stippling over that plot.
조회 수: 3 (최근 30일)
이전 댓글 표시
clc;
clear all
close all;
% load the two mat files containing the variables of interest
load SSA.mat
load Diffused_rad.mat
% % correlation calculation using nancorr2 function:-
data1=diff_clr_rad_2001_18;
data2=ssa_2001_18_inter;
data1 (data1==-999) = nan; % missing value for data1 is -999;
data2 (data2==999999986991104) = nan; % missing value for data2 is 999999986991104
C = []; % C: Correlation coeff.
for i=1:33 %%% longitude
i
for j=1:32 %%% latitude
j
C(i,j)=nancorr2(squeeze(data1(i,j,:)),squeeze(data2(i,j,:))); % lat and lon
end
end
%% plotting the correlation coeff.
figure;
colormap(parula);
pcolor(longitude_plot,latitude_plot,C');
caxis([-1 1])
shading interp;
hold on;
geoshow('INDIA.shp','FaceColor','none');
% geoshow('world_map_10_01_17.shp','Color','k');
colorbar

% need the stippling plot at 95% statistical significance laying over the correlation plot.
댓글 수: 1
James Karden
2021년 2월 5일
Hi Sushovan!
I have this same question, we're you able to solve it or find an answer?
Thanks!
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Line Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!