[Paraview] Resample To Image with Catalyst

Petr Valenta valenpe7 at email.cz
Wed May 23 04:58:36 EDT 2018


Hi Andy,

thank you for your reply. I don't know why, but it does work with setting 
DataMode='Ascii'.
It works also with DataMode='Binary', the only option which does not work 
seems to be now DataMode='Appended'.

Thanks and regards,
Petr 

---------- Původní e-mail ----------

Od: Andy Bauer andy.bauer at kitware.com 

Komu: valenpe7 at email.cz

Datum: 22. 5. 2018 21:02:18

Předmět: Re: [Paraview] Resample To Image with Catalyst

Hi Petr,


Could you try adding in the following to your Python script after the 
coprocessor.RegisterWriter() line:
writer.DataMode = 'Ascii'


Please let me know if that fixes the issue for you. This isn't the desired 
fix but something to at least verify that I can reproduce your issue.



Thanks,
Andy







On Mon, May 21, 2018 at 12:16 PM Petr Valenta valenpe7 at email.cz wrote:

Hello,

the code which I am using is instrumented with Catalyst.
I am trying to process simulation data using ResampleToImage filter and then
to store the result on a disk.


In the Python pipeline I have something like:


adaptor_input = coprocessor.CreateProducer(datadescription, 'input')
resample = ResampleToImage(Input=adaptor_input)

resample.UseInputBounds = True

resample.SamplingDimensions = [256, 256, 256]
writer = servermanager.writers.XMLPImageDataWriter(Input=resample)
coprocessor.RegisterWriter(writer, filename='resample_%t.pvti', freq=10)



When I check the results in ParaView, the grid is correct but the data array
appended on it contains only zeros. When I skip the filter and dump directly
the adaptor_input, the data array contains correct values. Could you, 
please, help me to resolve this issue?


Thank you.


Kind regards,
Petr





_______________________________________________

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:

https://public.kitware.com/mailman/listinfo/paraview



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/paraview/attachments/20180523/9a15804d/attachment.html>


More information about the ParaView mailing list