Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: problem in data griding
Replies: 3   Last Post: Aug 16, 2012 10:49 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Shaik Ghouse Basha

Posts: 26
Registered: 6/15/09
Re: problem in data griding
Posted: Aug 16, 2012 10:06 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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?




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.