<div dir="ltr"><div class="gmail_default" style="font-size:small">Ashish,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">All variables in a NetCDF are required to have a name for every dimension. If you don&#39;t provide any names for these dimensions, then NCL will add them for you, starting with &quot;ncl1&quot;, &quot;ncl2&quot;, etc.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You didn&#39;t include any information on how this file was being written, but my guess is that you are writing some variables that have no dimension names. My suggestion is to name the dimension of every single variable you plan to write to the file, and use consistent names.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I&#39;ve attached a sample NCL script that writes three variables to a file.  &quot;x&quot; and &quot;y&quot; are arrays with named dimensions, and &quot;z&quot; has none.  Note what happens in the NetCDF file when you write these three variables to the file.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 7, 2016 at 3:17 PM, Ashish Sharma <span dir="ltr">&lt;<a href="mailto:asharma7@nd.edu" target="_blank">asharma7@nd.edu</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">Hello,<div><br></div><div><br></div><div>When I write a netcdf file, I am getting a lot of extra dimensions generated which are redundant (e.g. ncl3, ncl4, ncl5....and so on). </div><div>How do I get rid of them? See ncdump:</div><div><br></div><div><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">dimensions:</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="white-space:pre-wrap">        </span>Time = UNLIMITED ; // (3 currently)</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="white-space:pre-wrap">        </span>south_north = 240 ;</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="white-space:pre-wrap">        </span>west_east = 432 ;</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="white-space:pre-wrap">        </span>ncl3 = 3 ;</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="white-space:pre-wrap">        </span>ncl4 = 240 ;</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="white-space:pre-wrap">        </span>ncl5 = 3 ;</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="white-space:pre-wrap">        </span>ncl6 = 432 ;</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="white-space:pre-wrap">        </span>ncl7 = 3 ;</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="white-space:pre-wrap">        </span>ncl8 = 240 ;</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="white-space:pre-wrap">        </span>ncl9 = 432 ;</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="white-space:pre-wrap">        </span>ncl10 = 3 ;</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="white-space:pre-wrap">        </span>ncl11 = 240 ;</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="white-space:pre-wrap">        </span>ncl12 = 432 ;</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="white-space:pre-wrap">        </span>ncl13 = 3 ;</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="white-space:pre-wrap">        </span>ncl14 = 240 ;</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="white-space:pre-wrap">        </span>ncl15 = 432 ;</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="white-space:pre-wrap">        </span>ncl16 = 3 ;</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="white-space:pre-wrap">        </span>ncl17 = 240 ;</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="white-space:pre-wrap">        </span>ncl18 = 432 ;</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">variables:</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="white-space:pre-wrap">        </span>float LAT(Time, south_north) ;</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="white-space:pre-wrap">                </span>LAT:_FillValue = 9.96921e+36f ;</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="white-space:pre-wrap">        </span>float LON(Time, west_east) ;</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="white-space:pre-wrap">                </span>LON:_FillValue = 9.96921e+36f ;</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="white-space:pre-wrap">        </span>float T2_MAX(Time, south_north, west_east) ;</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="white-space:pre-wrap">                </span>T2_MAX:_FillValue = -9999.f ;</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="white-space:pre-wrap">        </span>float T2_MIN(Time, south_north, west_east) ;</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="white-space:pre-wrap">                </span>T2_MIN:_FillValue = -9999.f ;</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="white-space:pre-wrap">        </span>float PRECIP(Time, south_north, west_east) ;</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="white-space:pre-wrap">                </span>PRECIP:_FillValue = -9999.f ;</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="white-space:pre-wrap">        </span>float WIND(Time, south_north, west_east) ;</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="white-space:pre-wrap">                </span>WIND:_FillValu</p></div></div>
<br>_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>