<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/242703</link>
    <title>MATLAB Central Newsreader - SAR polar formatting: using griddata</title>
    <description>Feed for thread: SAR polar formatting: using griddata</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Mon, 19 Jan 2009 23:46:02 -0500</pubDate>
      <title>SAR polar formatting: using griddata</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/242703#622626</link>
      <author>Joe McGlinchy</author>
      <description>Hi everyone,&lt;br&gt;
&lt;br&gt;
I am trying to polar format a phase history data set down to a rectangular grid to form an image.  The data set is complex valued, but I have read that shouldn't matter using griddata.  The data set is an 1800x1999 array.  I have attempted to compute the location of each sample in the frequency domain in polar coordinates, convert that to rectangular, and use griddata from there.  I am getting errors for OUT OF MEMORY, and errors using qhullmx as well.  here is my code as of now&lt;br&gt;
&lt;br&gt;
%number of samples per pulse, 1800.  1999 pulses&lt;br&gt;
rf = Beff*(double((0.0:1.0:nsamps-1))-nsamps/2)/nsamps + Bc;&lt;br&gt;
thetaf = dtheta*double((0.0:1.0:npulses-1))/npulses+theta_1;&lt;br&gt;
&lt;br&gt;
[thetaF,rF] = meshgrid(thetaf,rf);&lt;br&gt;
&lt;br&gt;
[X,Y] = pol2cart(thetaF,rF);&lt;br&gt;
&lt;br&gt;
XI = (0:10:1800);&lt;br&gt;
YI = (0:10:1999)';&lt;br&gt;
Z = phase_vector;&lt;br&gt;
ZI = griddata(X,Y,Z,XI,YI,'nearest');&lt;br&gt;
&lt;br&gt;
is there a problem with the arguments X,Y in griddata being matrices instead of row and column vectors?  the help file in matlab is not too helpful in describing the format the arguments need to be in.&lt;br&gt;
&lt;br&gt;
Any help would be appreciated, thanks!&lt;br&gt;
&lt;br&gt;
Joe</description>
    </item>
    <item>
      <pubDate>Tue, 20 Jan 2009 00:25:04 -0500</pubDate>
      <title>Re: SAR polar formatting: using griddata</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/242703#622630</link>
      <author>Sadik </author>
      <description>&quot;Joe McGlinchy&quot; &amp;lt;jxm8863@rit.edu&amp;gt; wrote in message &amp;lt;gl33bq$hi4$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi everyone,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I am trying to polar format a phase history data set down to a rectangular grid to form an image.  The data set is complex valued, but I have read that shouldn't matter using griddata.  The data set is an 1800x1999 array.  I have attempted to compute the location of each sample in the frequency domain in polar coordinates, convert that to rectangular, and use griddata from there.  I am getting errors for OUT OF MEMORY, and errors using qhullmx as well.  here is my code as of now&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; %number of samples per pulse, 1800.  1999 pulses&lt;br&gt;
&amp;gt; rf = Beff*(double((0.0:1.0:nsamps-1))-nsamps/2)/nsamps + Bc;&lt;br&gt;
&amp;gt; thetaf = dtheta*double((0.0:1.0:npulses-1))/npulses+theta_1;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; [thetaF,rF] = meshgrid(thetaf,rf);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; [X,Y] = pol2cart(thetaF,rF);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; XI = (0:10:1800);&lt;br&gt;
&amp;gt; YI = (0:10:1999)';&lt;br&gt;
&amp;gt; Z = phase_vector;&lt;br&gt;
&amp;gt; ZI = griddata(X,Y,Z,XI,YI,'nearest');&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; is there a problem with the arguments X,Y in griddata being matrices instead of row and column vectors?  the help file in matlab is not too helpful in describing the format the arguments need to be in.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Any help would be appreciated, thanks!&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Joe&lt;br&gt;
&lt;br&gt;
Hello Joe,&lt;br&gt;
&lt;br&gt;
help griddata says:&lt;br&gt;
&lt;br&gt;
ZI = GRIDDATA(X,Y,Z,XI,YI) fits a surface of the form Z = F(X,Y) to the&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;data in the (usually) nonuniformly-spaced vectors (X,Y,Z). GRIDDATA&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;interpolates this surface at the points specified by (XI,YI) to produce&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ZI.  The surface always goes through the data points. XI and YI are&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;usually a uniform grid (as produced by MESHGRID) and is where GRIDDATA&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;gets its name.&lt;br&gt;
&amp;nbsp;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;XI can be a row vector, in which case it specifies a matrix with&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;constant columns. Similarly, YI can be a column vector and it specifies&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;a matrix with constant rows.&lt;br&gt;
&lt;br&gt;
So, from here, my understanding is that X, Y and Z should be vectors, and XI, YI defined in your code looks fine.&lt;br&gt;
&lt;br&gt;
1800*1999 is maybe too large to fit on a figure, but I cannot say for sure. It depressed my laptop, too. :))</description>
    </item>
    <item>
      <pubDate>Tue, 20 Jan 2009 00:35:05 -0500</pubDate>
      <title>Re: SAR polar formatting: using griddata</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/242703#622632</link>
      <author>Joe McGlinchy</author>
      <description>thanks for the response.  1800x1999 isn't too big, at least using imshow.  I forgot to mention I will be using ifftshift(ifft2(ZI,2048,2048)) to compute the inverse fourier transform of ZI (as soon as it works) and display the image with imshow</description>
    </item>
  </channel>
</rss>

