<div dir="ltr">On Tue, Jun 10, 2014 at 12:41 PM, Brian Corrie <span dir="ltr"><<a href="mailto:bcorrie@sfu.ca" target="_blank">bcorrie@sfu.ca</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

Hi All,<br>
<br>
I have one question regarding this conversation, as I have run into this issue before. It intrigues me as to why one can't clip a structured data set efficiently.<br>
<br>
<a href="http://www.paraview.org/pipermail/paraview/2012-December/026976.html" target="_blank">http://www.paraview.org/<u></u>pipermail/paraview/2012-<u></u>December/026976.html</a><br>
<br>
The question I have is - does clip REALLY require all that memory - in my case it was a structured grid of 698x693x665 growing to in excess of 20 GB (see the question on the list above). That seems pretty excessive given the original size of the data set... I haven't done the math on the data set size of an unstructured data set, but 320MB to 20GB is a pretty big step.<br>


<br></blockquote><div><br></div><div>Very likely.</div><div><br></div><div>imagedata</div><div>origin + extent + spacing ~= 36 bytes #(x,y,z + ni,nj,nk + sx,sy,sz) * 4bytes per word</div><div>(700^3 * 4)/(1024^3) = 1.27 GB #to store one scalar value on each point</div>

<div><br></div><div>unstructured grid</div><div>points array = (700^3 * 3 * 4)/(1024^3) = 3.8 GB #3=x,y,z, 4=4bytes per word</div><div>cellarray = (699^3 * 9 * 4)/*(1024^3) = 11.45GB, #1 numverts + 8 vertex index</div><div>

celltype = (699^3 * 4)/(1024^3) = 1.27GB<br></div><div>celllink = (700^3*9*4)/(1024^3) = 11.5GB #1 numcells + 8 using cells per vert</div><div>(700^3 * 4)/(1024^3) = 1.27 GB #to store one scalar value on each point</div>
<div>
 </div><div>(Someone check me on all of that please).</div><div><br></div><div>But yes, a clip like widget to something like Extract Subset that is easy to use AND preserves the data type would be a really nice thing to have in ParaView.</div>

<div> <br></div></div></div></div>