<html><body>Hi Andy,<br><br>thank you for your reply. I don't know why, but it does work with setting DataMode='Ascii'.<br>It works also with DataMode='Binary', the only option which does not work seems to be now DataMode='Appended'.<br><br>Thanks and regards,<br>Petr <br><br>---------- Původní e-mail ----------<br><br>Od: Andy Bauer andy.bauer@kitware.com <br><br>Komu: valenpe7@email.cz<br><br>Datum: 22. 5. 2018 21:02:18<br><br>Předmět: Re: [Paraview] Resample To Image with Catalyst<br><br>Hi Petr,<br><br><br>Could you try adding in the following to your Python script after the coprocessor.RegisterWriter() line:<br>writer.DataMode = 'Ascii'<br><br><br>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.<br><br><br><br>Thanks,<br>Andy<br><br><br><br><br><br><br><br>On Mon, May 21, 2018 at 12:16 PM Petr Valenta valenpe7@email.cz wrote:<br><br>Hello,<br><br>the code which I am using is instrumented with Catalyst.<br>I am trying to process simulation data using ResampleToImage filter and then to store the result on a disk.<br><br><br>In the Python pipeline I have something like:<br><br><br>adaptor_input = coprocessor.CreateProducer(datadescription, 'input')<br>resample = ResampleToImage(Input=adaptor_input)<br><br>resample.UseInputBounds = True<br><br>resample.SamplingDimensions = [256, 256, 256]<br>writer = servermanager.writers.XMLPImageDataWriter(Input=resample)<br>coprocessor.RegisterWriter(writer, filename='resample_%t.pvti', freq=10)<br><br><br><br>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?<br><br><br>Thank you.<br><br><br>Kind regards,<br>Petr<br><br><br><br><br><br>_______________________________________________<br><br>Powered by www.kitware.com<br><br><br><br>Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<br><br><br><br>Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView<br><br><br><br>Search the list archives at: http://markmail.org/search/?q=ParaView<br><br><br><br>Follow this link to subscribe/unsubscribe:<br><br>https://public.kitware.com/mailman/listinfo/paraview<br><br><br><br><br></body></html>