[Paraview] Resample To Image with Catalyst
Andy Bauer
andy.bauer at kitware.com
Tue May 22 15:00:14 EDT 2018
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/20180522/45e2e92a/attachment.html>
More information about the ParaView
mailing list