|
I have used Griddata command in matlab and the below code
lon1=-179.5:1:179.5;
lat1=-40:1:40;
%% rr is my data
Eda=nan(length(lat1),length(lon1));
eps=0.5
for i=1:length(dd)
P1=find(lat1>=la(i)-eps1 & lat1<=la(i)+eps1);
Q1=find(lon1>=lo(i)-eps1 & lon1<=lo(i)+eps1);
Eda(P1,Q1)=nanmean([Eda(P1,Q1) rr(i)]);
end
"Justin Ashmall" wrote in message <k0itok$j5c$1@newscl01ah.mathworks.com>...
> "Shaik Ghouse Basha" wrote in message <k0iour$7j0$1@newscl01ah.mathworks.com>...
> > I have longitude starting from -180:0.25:180 and latitude from -90:0.25:90 and i have corresponding data matrix. Here my problem is to convert data -180:1:180 and -90:1:90 i.e bringing data from 0.25x 0.25 to 1x1 degree grid. I am using griddata program and my own program , but feature is missing.
>
> Why don't you show us what you've tried?
|