<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<meta content="text/html; charset=utf-8">
</head>
<body>
<div>
<div style="font-family:Calibri,sans-serif; font-size:11pt">Thank you<br>
<br>
</div>
</div>
<div dir="ltr">
<hr>
<span style="font-family:Calibri,sans-serif; font-size:11pt; font-weight:bold">From:
</span><span style="font-family:Calibri,sans-serif; font-size:11pt"><a href="mailto:shea@ucar.edu">Dennis Shea</a></span><br>
<span style="font-family:Calibri,sans-serif; font-size:11pt; font-weight:bold">Sent:
</span><span style="font-family:Calibri,sans-serif; font-size:11pt">ý12-ý09-ý2016 16:50</span><br>
<span style="font-family:Calibri,sans-serif; font-size:11pt; font-weight:bold">To:
</span><span style="font-family:Calibri,sans-serif; font-size:11pt"><a href="mailto:srvsxc@outlook.com">Sourav Chatterjee</a></span><br>
<span style="font-family:Calibri,sans-serif; font-size:11pt; font-weight:bold">Cc:
</span><span style="font-family:Calibri,sans-serif; font-size:11pt"><a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a></span><br>
<span style="font-family:Calibri,sans-serif; font-size:11pt; font-weight:bold">Subject:
</span><span style="font-family:Calibri,sans-serif; font-size:11pt">Re: [ncl-talk] Convert polar streographic coordinates to lat/lon grid</span><br>
<br>
</div>
<div>
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>You have sent the same question before, The reason for no reply is that the question is rather vague.<br>
<br>
</div>
[1] You can read the variable and use the two-dimensional coordinates latitude(y,x) ; longitude (y,x) to plot vis:<br>
<br>
<br>
</div>
&nbsp;&nbsp;&nbsp; f = addfile(&quot;<a href="http://foo.nc">foo.nc</a>&quot;, &quot;r&quot;)<br>
</div>
&nbsp;&nbsp;&nbsp; x = f-&gt;X&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; :(time,lev,y,x)<br>
</div>
&nbsp;&nbsp;&nbsp; x@lat2d = f-&gt;latitude&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; (y,x)<br>
</div>
&nbsp;&nbsp;&nbsp; x@lon2d = f-&gt;longitude<br>
<br>
<pre>  wks = gsn_open_wks(&quot;png&quot;,&quot;polar&quot;)              ; send graphics to PNG file
  res            = True                          ; plot mods desired
  res@gsnPolar   = &quot;NH&quot;                          ; specify the hemisphere<br>  <br></pre>
<pre>  nt  = 0  <br>  lev = 10    <br>  plot = gsn_csm_contour_map_polar(wks,x(nt,klev,:,:),res)<br><br></pre>
<pre>or, maybe<br></pre>
<pre>  plev = 500   ; natural coordinate<br>  plot = gsn_csm_contour_map_polar(wks,x(nt,{plev},:,:),res) <br><br>===<br></pre>
<pre>[2]<br>If you want the polar data regridded then see:<br>    <a href="http://www.ncl.ucar.edu/Applications/ESMF.shtml">http://www.ncl.ucar.edu/Applications/ESMF.shtml</a><br><br></pre>
<pre>Your source grid would be classified as 'curvilinear'.<br></pre>
<pre>Your resulting file would ve 'rectilinear'<br><br></pre>
<pre>Good luck<br></pre>
<pre><br><br></pre>
<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Sep 12, 2016 at 4:00 AM, Sourav Chatterjee <span dir="ltr">
&lt;<a href="mailto:srvsxc@outlook.com" target="_blank">srvsxc@outlook.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div style="font-size:12pt; color:#000000; background-color:#ffffff; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Dear All</p>
<p><br>
</p>
<p>How to convert the stereographic projection x-y coordinates to lat lon grids? I have the 2d lat lon coordinates but the variable is in x-y coordinates e.g
</p>
<p><br>
</p>
<p>temp(time,depth,y,x).</p>
<p><br>
</p>
<p>and latitude(y,x) ; longitude (y,x)</p>
<p><br>
</p>
<p>Is it poosible to get temp(time,depth,latitude,<wbr>longitude) from this information?</p>
<p><br>
</p>
<p>Thanks<br>
</p>
</div>
</div>
<br>
______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</body>
</html>