Here's a snippet:

reader = ...
di = reader.GetDataInformation()
numDatasets = di.GetNumberOfDataSets()
for i in range(numDatasets):
    blockDI = di.GetCompositeDataInformation().GetDataInformation(i)
    print i, "Num Points", blockDI.GetNumberOfPoints()
    print i, "Num Cells", blockDI.GetNumberOfCells()

Utkarsh

On Wed, Jun 22, 2016 at 8:43 PM, Beach, Timothy A. (GRC-LTE0)[Vantage
Partners, LLC] <[email protected]> wrote:
> I’ve done some neat stuff with pvpython but I’m stuck on something really
> basic.  I’ve read a structured multi block dataset(plot3d).  Where do I find
> the number of blocks and the size of each block.  I’ve been using help and
> dir() but I haven’t found that info.
> Thanks
> Tim
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

Reply via email to