Hi Yvan,

Another option is just to compute it yourself. The reason that the global
min and max aren't know in Catalyst is that it requires communication but
many times the value isn't needed so in order to make Catalyst more
efficient it doesn't compute that value for you automatically. In the
Python scripts you can import mpi4py or import vtk and use the
vtkMultiProcessController to do the global operation. Note that for my way
you'll need to call UpdatePipeline(datadescription.GetTime()) before
getting the output and globally determining the value. Then you can set the
isosurfaces values array with that information.

If you try this out and have issues, please let us know and we can go from
there.

Cheers,
Andy

On Tue, Feb 14, 2017 at 3:02 PM, Joachim Pouderoux <
joachim.pouder...@kitware.com> wrote:

> Hi Yvan,
>
> Regarding MinMax: this filter is indeed not exposed by any standard
> Catalyst edition but it is
> easy to add. See for instance in 
> ParaView/Catalyst/Editions/Extras/manifest.json
> how the
> PVExtractSelection filter is exposed (line 50 and 247).
> Just do the same with the MinMax filter (see proxy's declaration at
> filters.xml:~11725).
>
> Best,
> Joachim
>
>
> *Joachim Pouderoux*, PhD
>
> *Technical Expert - Scientific Computing Team*
> *Kitware SAS <http://www.kitware.fr>*
>
>
> 2017-02-13 17:31 GMT-04:00 Yvan Fournier <yvan.fourn...@free.fr>:
>
>> Hello,
>>
>> I'm in the process of migrating some VTK scripts in the Code_Saturne
>> (code-
>> saturne.org) test suite to Catalyst Python scripts, and am having some
>> difficulty automating some cases using contour plots:
>>
>> For time-dependent data, I do not know the value ranges in advance, and
>> would
>> like to query them so as to build an Isosurface values array spanning that
>> range.
>>
>> I can manage to access the point and cell data arrays and ther ranges, but
>> printing the ranges in parallel, it seems I have local values only, while
>> I need
>> a global range.
>>
>> I searched for examples in the documentation, on the Wiki, ..., and found
>> an
>> example for MinMax, but don't seem to ba able to access the correct type
>> of
>> Proxy under Catalyst (the default servermanager is not connected in the
>> usual
>> way.
>>
>> For scalar bar color look-up tables, I can manage with
>> "coprocessor.WriteImages(datadescription, rescale_lookuptable=True)" in
>> the
>> coprocessing script, but for a more general case such as thar needed for
>> contour
>> plots, I've been running around in circles in the last hours trying to
>> find and
>> adapt a relevant example.
>>
>> Does anyone have a suggestion ? Thanks in advance,
>>
>>         Yvan Fournier
>> _______________________________________________
>> 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
>
>
_______________________________________________
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