Re: [Paraview] Resample To Image with Catalyst

2018-05-22 Thread Andy Bauer
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  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
>
___
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


[Paraview] Resample To Image with Catalyst

2018-05-21 Thread Petr Valenta
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