<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Dave,</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">At the current NCL code stands, as shuffle is on by default,</div><div class="gmail_default" style="font-family:verdana,sans-serif">so the nc file written from NCL with "NetCDF4Classic",</div><div class="gmail_default" style="font-family:verdana,sans-serif">will always be "Chunked", shuffled. And there is no way to turn</div><div class="gmail_default" style="font-family:verdana,sans-serif">off the deflatelevel info (as shuffle is on).</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">So, NCL can not produce a file similar to the example.</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Wei</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><font face="tahoma, sans-serif">================================================</font><div><font face="tahoma, sans-serif">1850 Table Mesa Dr.</font></div><div><font face="tahoma, sans-serif">Boulder, CO 80307</font></div><div><font face="tahoma, sans-serif">Phone: 303-497-8924</font></div></div></div></div>
<br><div class="gmail_quote">On Thu, Mar 19, 2015 at 10:42 AM, Dave Allured - NOAA Affiliate <span dir="ltr"><<a href="mailto:dave.allured@noaa.gov" target="_blank">dave.allured@noaa.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">NCL team,<div><br></div><div>Here is the ncdump -s of an actual Netcdf-4 classic file made with ncgen:</div><div><br></div><div><div>netcdf simple {</div><div>dimensions:</div><div> lon = 4 ;</div><div> lat = 3 ;</div><div> time = UNLIMITED ; // (5 currently)</div><div>variables:</div><div> float lat(lat) ;</div><div> lat:_Storage = "contiguous" ;</div><div> float lon(lon) ;</div><div> lon:_Storage = "contiguous" ;</div><div> double time(time) ;</div><div> time:_Storage = "chunked" ;</div><div> time:_ChunkSizes = 5 ;</div><div><br></div><div>// global attributes:</div><div> :_Format = "netCDF-4 classic model" ;</div><div>data:</div><div><br></div><div> lat = _, _, _ ;</div><div><br></div><div> lon = _, _, _, _ ;</div><div><br></div><div> time = _, _, _, _, _ ;</div><div>}</div></div><div><br></div><div>This file can also be made with custom C code using the Netcdf-C API. Is it possible to create this exact file with NCL? In particular:</div><div><br></div><div>* Can the storage method "contiguous" be selected?</div><div><br></div><div>* For chunked variables, is it possible to omit the special attributes _DeflateLevel, _Shuffle, and _Endianness, as this file demonstrates?</div><div><br></div><div>My objective is simply to reduce clutter in file dumps. NCL always adds _DeflateLevel = 0 by default. I am aware that this is functionally equivalent to contiguous.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>--Dave</div></font></span></div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>