<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div style="-webkit-text-size-adjust: auto;">Hi Kunal,</div><div style="-webkit-text-size-adjust: auto;"><br></div><div style="-webkit-text-size-adjust: auto;">Please, take a look at the 'output netcdf' examples page, method_1</div><div style="-webkit-text-size-adjust: auto;"><br></div><div style="-webkit-text-size-adjust: auto;"><a href="http://ncl.ucar.edu/Applications/method_1.shtml">http://ncl.ucar.edu/Applications/method_1.shtml</a><br><br>Try this:</div><div style="-webkit-text-size-adjust: auto;"><br></div><div style="-webkit-text-size-adjust: auto;"><br></div><div style="-webkit-text-size-adjust: auto;">lat = data(:,0)</div><div style="-webkit-text-size-adjust: auto;">lat = data(:,1)</div><div style="-webkit-text-size-adjust: auto;">values= data(:,2)</div><div style="-webkit-text-size-adjust: auto;"><a href="http://ncl.ucar.edu/Document/Functions/Built-in/system.shtml" style="margin: 0px; padding: 0px; text-decoration: none;"><span style="margin: 0px; padding: 0px;">system</span></a><span style="background-color: rgba(255, 255, 255, 0);">("/bin/rm -f simple.nc")   ; remove any pre-existing file&nbsp;</span></div><div><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border-style: solid; border-width: 0px 0px 15px; border-color: transparent;"><font face="UICTFontTextStyleBody"><span style="white-space: normal; -webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">ncdf     = addfile("simple.nc" ,"c")  ; output netCDF file</span></font></pre><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border-style: solid; border-width: 0px 0px 15px; border-color: transparent;"><a href="http://ncl.ucar.edu/Document/Functions/Built-in/filedimdef.shtml" style="white-space: normal; -webkit-text-size-adjust: auto; font-family: UICTFontTextStyleBody; margin: 0px; padding: 0px; text-decoration: none;"><span style="margin: 0px; padding: 0px;">filedimdef</span></a><span style="background-color: rgba(255, 255, 255, 0); white-space: normal; -webkit-text-size-adjust: auto; font-family: UICTFontTextStyleBody;">(ncdf,"time",-1,True) ; recommended</span></pre><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border-style: solid; border-width: 0px 0px 15px; border-color: transparent;"><span style="background-color: rgba(255, 255, 255, 0); white-space: normal; -webkit-text-size-adjust: auto; font-family: UICTFontTextStyleBody;">values!0    = "lat"</span></pre><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border-style: solid; border-width: 0px 0px 15px; border-color: transparent;"><span style="background-color: rgba(255, 255, 255, 0); font-family: UICTFontTextStyleBody; white-space: normal; -webkit-text-size-adjust: auto;">values!1    = "lon"</span></pre><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border-style: solid; border-width: 0px 0px 15px; border-color: transparent;"><span style="background-color: rgba(255, 255, 255, 0); font-family: UICTFontTextStyleBody; white-space: normal; -webkit-text-size-adjust: auto;">values&amp;lat  = lat</span></pre><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border-style: solid; border-width: 0px 0px 15px; border-color: transparent;"><span style="background-color: rgba(255, 255, 255, 0); font-family: UICTFontTextStyleBody; white-space: normal; -webkit-text-size-adjust: auto;">values&amp;lon  = lon&nbsp;</span></pre><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border-style: solid; border-width: 0px 0px 15px; border-color: transparent;"><span style="background-color: rgba(255, 255, 255, 0); font-family: UICTFontTextStyleBody; white-space: normal; -webkit-text-size-adjust: auto;">ncdf-&gt;values = values</span></pre></div><div style="-webkit-text-size-adjust: auto;"><br></div><div style="-webkit-text-size-adjust: auto;">Bye, Karin</div><div style="-webkit-text-size-adjust: auto;"><div><br></div></div><div style="-webkit-text-size-adjust: auto;"><br>Am 22.09.2014 um 11:40 schrieb Kunal Bali &lt;<a href="mailto:kunal.bali9@gmail.com">kunal.bali9@gmail.com</a>&gt;:<br><br></div><blockquote type="cite" style="-webkit-text-size-adjust: auto;"><div><div dir="ltr"><div><div><div><div><div>Dear NCL users<br><br></div>I want to convert ASCII to .nc file format. Could any one please provides me the link for this query or give any detail about this ??<br><br></div>I have data in 3 column ( Latitude Longitude Values)<br></div>More Detail<br><br><b>Variable: data<br>Type: float<br>Total Size: 777600 bytes<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 194400 values<br>Number of Dimensions: 2<br>Dimensions and sizes:&nbsp;&nbsp;&nbsp; [64800] x [3]<br>Coordinates: <br>Number Of Attributes: 1<br>&nbsp; _FillValue :&nbsp;&nbsp;&nbsp; 9.96921e+36<br><br><br></b></div><b>So is there any ways to convert ASCII to netcdf format ???<br><br></b></div><b>Thank You<br></b><div><div><div><br clear="all"><div><div><div><div><div><div dir="ltr"><div>Kunal Bali<br></div><div>Research Scholar <br></div><div>Radio &amp; Atmospheric Science Division <br></div><div>CSIR - National Physical Laboratory<br></div><div>New Delhi - 110012<br><br></div><div><br></div><div><br></div><div><br></div><div><p style="margin:0px;border-collapse:collapse;font-family:Tahoma,Verdana;font-size:12px"><font color="#1F497D"><br></font></p></div></div></div>
</div></div></div></div></div></div></div></div>
</div></blockquote><blockquote type="cite" style="-webkit-text-size-adjust: auto;"><div><span>_______________________________________________</span><br><span>ncl-talk mailing list</span><br><span>List instructions, subscriber options, unsubscribe:</span><br><span><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></span><br></div></blockquote></body></html>