Re: [Paraview] Extracting min/max values of current data range as a variable in python

2017-04-11 Thread Andy Bauer
Hi,

Besides Yoshimi's way, you should be able to do something like the
following from pvpython, pvbatch or Python shell.
yourfilter.PointData.GetArray().GetRange() # or CellData

For example, for a Python script for a Wavelet source you would do the
following:
w = Wavelet()
w.UpdatePipeline() # needed to execute the pipeline to create the output
w.PointData.GetArray("RTData").GetRange()

This will work for the output of a filter that returns a regular VTK data
set or a multiblock data set. If you want the range for only a single block
of a multiblock I'd recommend using the Extract Block filter to get that
block. It should be a shallow copy of the data set to do that so it should
be very fast, even if you don't need the output of the Extract Block filter
for anything else.

Best,
Andy

On Tue, Apr 11, 2017 at 9:29 PM, kenichiro yoshimi 
wrote:

> Hi,
>
> I also want to know if there is a simple way to do, since I only have
> the somewhat redundant code:
> ---
> source = GetActiveSource()
>
> #options for component: -1, 0, 1 and 2 => Mag, X, Y, Z
> component = -1
>
> cdi = source.GetDataInformation().GetCompositeDataInformation()
>
> for i in range(cdi.GetNumberOfChildren()):
>   print 'Block Name: ', cdi.GetName(i)
>
>   data = cdi.GetDataInformation(i).GetCellDataInformation()
>   for j in range(data.GetNumberOfArrays()):
> array = data.GetArrayInformation(j)
> arrayName = array.GetName()
> dataRange = array.GetComponentRange(component)
> print arrayName, dataRange
> ---
>
> Thanks,
> yoshimi
>
> 2017-04-12 6:10 GMT+09:00 Jamison, Ryan Dale :
> > Hello Everyone,
> >
> > I’m wanting to gain more control over automation with my paraview python
> > scripts. This time around, I’d like to be able to extract information
> from
> > the model and use it in my python script.
> >
> > For example, I’d like to extract the minimum and maximum values of a cell
> > variable from a specific block and use those values in the python script.
> > Once I extract this information, I’d use it for some additional
> processing.
> > Something like:
> >
> > minValue, maxValue = someCoolParaviewFunction(blockName, variableName)
> >
> > Is this possible? If so, any suggestions on how to do it?
> >
> > Thanks,
> >
> > Ryan
> >
> > ___
> > 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


Re: [Paraview] Extracting min/max values of current data range as a variable in python

2017-04-11 Thread kenichiro yoshimi
Hi,

I also want to know if there is a simple way to do, since I only have
the somewhat redundant code:
---
source = GetActiveSource()

#options for component: -1, 0, 1 and 2 => Mag, X, Y, Z
component = -1

cdi = source.GetDataInformation().GetCompositeDataInformation()

for i in range(cdi.GetNumberOfChildren()):
  print 'Block Name: ', cdi.GetName(i)

  data = cdi.GetDataInformation(i).GetCellDataInformation()
  for j in range(data.GetNumberOfArrays()):
array = data.GetArrayInformation(j)
arrayName = array.GetName()
dataRange = array.GetComponentRange(component)
print arrayName, dataRange
---

Thanks,
yoshimi

2017-04-12 6:10 GMT+09:00 Jamison, Ryan Dale :
> Hello Everyone,
>
> I’m wanting to gain more control over automation with my paraview python
> scripts. This time around, I’d like to be able to extract information from
> the model and use it in my python script.
>
> For example, I’d like to extract the minimum and maximum values of a cell
> variable from a specific block and use those values in the python script.
> Once I extract this information, I’d use it for some additional processing.
> Something like:
>
> minValue, maxValue = someCoolParaviewFunction(blockName, variableName)
>
> Is this possible? If so, any suggestions on how to do it?
>
> Thanks,
>
> Ryan
>
> ___
> 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


Re: [Paraview] Issues Opening Tecplot *.dat File(s)

2017-04-11 Thread Cory Quammen
Zach,

With recent changes to ParaView (March 15, 2017), I was able to "open"
the file in the most recent development version of ParaView without
getting stuck in an infinite loop, but I did get the following
warnings:

Warning: In 
/Users/cory.quammen/src/paraview/VTK/IO/Geometry/vtkTecplotReader.cxx,
line 1795
vtkTecplotReader (0x1350d2c00):
/Users/cory.quammen/Desktop/oneram6-prism_tec_boundary.dat; Tecplot
zone record parameter 'SOLUTIONTIME' is currently unsupported.
Warning: In 
/Users/cory.quammen/src/paraview/VTK/IO/Geometry/vtkTecplotReader.cxx,
line 1789
vtkTecplotReader (0x1350d2c00):
/Users/cory.quammen/Desktop/oneram6-prism_tec_boundary.dat; Tecplot
zone record parameter 'STRANDID' is currently unsupported.
ERROR: In /Users/cory.quammen/src/paraview/VTK/IO/Geometry/vtkTecplotReader.cxx,
line 1902
vtkTecplotReader (0x1350d2c00):
/Users/cory.quammen/Desktop/oneram6-prism_tec_boundary.dat: The record
type 0.317283460316E+02 found in the file is unknown.

The read fails, but hopefully this tells you what is going on.

HTH,
Cory

On Tue, Apr 11, 2017 at 5:49 PM, Zach Davis  wrote:
>
>
>
> Christopher,
>
> Sorry, about the link.  I would attach the file here, but it exceeds the
> mailing list’s size limits.  The solver I’m using is probably using an older
> version of the TecIO library, since changes to the Tecplot file format have
> been changing pretty frequently in recent years…  Hopefully someone else who
> can download the file can help identify which token(s), if any, are causing
> a problem.
>
> Best Regards,
>
>
>
> Zach Davis
> Pointwise®, Inc.
> Sr. Engineer, Sales & Marketing
> 213 South Jennings Avenue
> Fort Worth, TX 76104-1107
>
> E: zach.da...@pointwise.com
> P: (817) 377-2807 x1202
> F: (817) 377-2799
>
> On Apr 11, 2017, at 4:44 PM, Christopher Neal 
> wrote:
>
> That link doesn't seem to work either :(
>
> For me, those terms were apparently out of date with what the reader was
> expecting. And so when it hit those tokens it just froze instead of jumping
> out and throwing an error. It's possible that you have other tokens(i.e.
> options) that are setting this off.  It could also be something else, but
> the scenario is very close to what I was dealing with.  Is the program that
> is writing the Tecplot file up-to-date with the newest Tecplot file format?
>
> On Tue, Apr 11, 2017 at 5:39 PM, Zach Davis  wrote:
>>
>> Hi Christopher,
>>
>> Thanks for you input.  Apologies if the link wasn’t working for you.  At
>> least one person on the mailing list was able to download a copy
>> successfully.  I don’t know if this will help, but you might try seeing if
>> the following link works any better:
>>
>> https://pointwiseenterprise.sharefile.com/d-sd1c1d4e9eeb450e8
>>
>> I did a preliminary search for the terms “f=point” and “c=black” in my
>> text editor.  It doesn’t seem to have found either entries; though, it does
>> appear it’s stuck in a loop of some sort.
>>
>> Best Regards,
>>
>> Zach Davis
>> Pointwise®, Inc.
>> Sr. Engineer, Sales & Marketing
>> 213 South Jennings Avenue
>> Fort Worth, TX 76104-1107
>>
>> E: zach.da...@pointwise.com
>> P: (817) 377-2807 x1202
>> F: (817) 377-2799
>>
>>
>> On Apr 11, 2017, at 4:32 PM, Christopher Neal 
>> wrote:
>>
>> Hi Zach,
>>
>> I had a similar issue recently. I can't seem to download the file (it's
>> giving a 403 server error that I don't have permission to download).  The
>> kitware team found that the Paraview Tecplot reader would get into an
>> infinite loop if it had trouble reading some of the header information. In
>> my case it was a line that contained 'f=point c=black' which was causing the
>> issue.
>>
>> The issue was resolved but the fix isn't in the current version. See the
>> Gitlab issue: https://gitlab.kitware.com/paraview/paraview/issues/17293
>>
>> On Tue, Apr 11, 2017 at 4:16 PM, Zach Davis  wrote:
>>>
>>> Tuesday, 11 April 2017
>>>
>>>
>>>
>>> All,
>>>
>>> I’m encountering a problem in which ParaVIew seems to freeze when
>>> attempting to load a Tecplot *.dat file.  An example of a compressed *.dat
>>> file that’s causing this issue can be downloaded here (~4.4MB).  I’m using
>>> ParaVIew 5.3.0-219-g24f5a44 under macOS 10.12.4.  Note, the file fails to
>>> load under ParaView version 4.4 as well.  I’ve compressed the *.dat file
>>> with gzip for transmission—please unzip it prior to attempting to reproduce
>>> the problem in ParaView.  Uncompressed it's a 16MB file, and shouldn’t take
>>> very long to load…  Any ideas what might be the issue?  Is there a problem
>>> with the file’s format, or is ParaView the culprit?
>>>
>>> Best Regards,
>>>
>>>
>>>
>>> Zach Davis
>>> Pointwise®, Inc.
>>> Sr. Engineer, Sales & Marketing
>>> 213 South Jennings Avenue
>>> Fort Worth, TX 76104-1107
>>>
>>> E: zach.da...@pointwise.com
>>> P: (817) 377-2807 x1202
>>> F: (817) 377-2799
>>>
>>>
>>>
>>> ___
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://

Re: [Paraview] Issues Opening Tecplot *.dat File(s)

2017-04-11 Thread Zach Davis



Christopher,

Sorry, about the link.  I would attach the file here, but it exceeds the 
mailing list’s size limits.  The solver I’m using is probably using an older 
version of the TecIO library, since changes to the Tecplot file format have 
been changing pretty frequently in recent years…  Hopefully someone else who 
can download the file can help identify which token(s), if any, are causing a 
problem.

Best Regards,




Zach Davis
Pointwise®, Inc.
Sr. Engineer, Sales & Marketing
213 South Jennings Avenue
Fort Worth, TX 76104-1107

E: zach.da...@pointwise.com
P: (817) 377-2807 x1202
F: (817) 377-2799
     
  

> On Apr 11, 2017, at 4:44 PM, Christopher Neal  wrote:
> 
> That link doesn't seem to work either :(
> 
> For me, those terms were apparently out of date with what the reader was 
> expecting. And so when it hit those tokens it just froze instead of jumping 
> out and throwing an error. It's possible that you have other tokens(i.e. 
> options) that are setting this off.  It could also be something else, but the 
> scenario is very close to what I was dealing with.  Is the program that is 
> writing the Tecplot file up-to-date with the newest Tecplot file format?
> 
> On Tue, Apr 11, 2017 at 5:39 PM, Zach Davis  > wrote:
> Hi Christopher,
> 
> Thanks for you input.  Apologies if the link wasn’t working for you.  At 
> least one person on the mailing list was able to download a copy 
> successfully.  I don’t know if this will help, but you might try seeing if 
> the following link works any better:
> 
> https://pointwiseenterprise.sharefile.com/d-sd1c1d4e9eeb450e8 
> 
> 
> I did a preliminary search for the terms “f=point” and “c=black” in my text 
> editor.  It doesn’t seem to have found either entries; though, it does appear 
> it’s stuck in a loop of some sort.
> 
> Best Regards,
> 
> 
> Zach Davis
> Pointwise®, Inc.
> Sr. Engineer, Sales & Marketing
> 213 South Jennings Avenue
> Fort Worth, TX 76104-1107
> 
> E: zach.da...@pointwise.com 
> P: (817) 377-2807 x1202 
> F: (817) 377-2799 
>      
>   
>> On Apr 11, 2017, at 4:32 PM, Christopher Neal > > wrote:
>> 
>> Hi Zach,
>> 
>> I had a similar issue recently. I can't seem to download the file (it's 
>> giving a 403 server error that I don't have permission to download).  The 
>> kitware team found that the Paraview Tecplot reader would get into an 
>> infinite loop if it had trouble reading some of the header information. In 
>> my case it was a line that contained 'f=point c=black' which was causing the 
>> issue.
>> 
>> The issue was resolved but the fix isn't in the current version. See the 
>> Gitlab issue: https://gitlab.kitware.com/paraview/paraview/issues/17293 
>> 
>> 
>> On Tue, Apr 11, 2017 at 4:16 PM, Zach Davis > > wrote:
>> Tuesday, 11 April 2017
>> 
>> 
>> 
>> All,
>> 
>> I’m encountering a problem in which ParaVIew seems to freeze when attempting 
>> to load a Tecplot *.dat file.  An example of a compressed *.dat file that’s 
>> causing this issue can be downloaded here 
>>  (~4.4MB).  
>> I’m using ParaVIew 5.3.0-219-g24f5a44 under macOS 10.12.4.  Note, the file 
>> fails to load under ParaView version 4.4 as well.  I’ve compressed the *.dat 
>> file with gzip for transmission—please unzip it prior to attempting to 
>> reproduce the problem in ParaView.  Uncompressed it's a 16MB file, and 
>> shouldn’t take very long to load…  Any ideas what might be the issue?  Is 
>> there a problem with the file’s format, or is ParaView the culprit?
>> 
>> Best Regards,
>> 
>> 
>> 
>> 
>> Zach Davis
>> Pointwise®, Inc.
>> Sr. Engineer, Sales & Marketing
>> 213 South Jennings Avenue
>> Fort Worth, TX 76104-1107
>> 
>> E: zach.da...@pointwise.com 
>> P: (817) 377-2807 x1202 
>> F: (817) 377-2799 
>>      
>>   
>> 
>> ___
>> 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

Re: [Paraview] Issues Opening Tecplot *.dat File(s)

2017-04-11 Thread Christopher Neal
That link doesn't seem to work either :(

For me, those terms were apparently out of date with what the reader was
expecting. And so when it hit those tokens it just froze instead of jumping
out and throwing an error. It's possible that you have other tokens(i.e.
options) that are setting this off.  It could also be something else, but
the scenario is very close to what I was dealing with.  Is the program that
is writing the Tecplot file up-to-date with the newest Tecplot file format?

On Tue, Apr 11, 2017 at 5:39 PM, Zach Davis  wrote:

> Hi Christopher,
>
> Thanks for you input.  Apologies if the link wasn’t working for you.  At
> least one person on the mailing list was able to download a copy
> successfully.  I don’t know if this will help, but you might try seeing if
> the following link works any better:
>
> https://pointwiseenterprise.sharefile.com/d-sd1c1d4e9eeb450e8
>
> I did a preliminary search for the terms “f=point” and “c=black” in my
> text editor.  It doesn’t seem to have found either entries; though, it does
> appear it’s stuck in a loop of some sort.
>
> Best Regards,
>
> [image: Pointwise, Inc.]
> Zach Davis
> Pointwise®, Inc.
> Sr. Engineer, Sales & Marketing
> 213 South Jennings Avenue
> Fort Worth, TX 76104-1107
>
> *E*: zach.da...@pointwise.com
> *P*: (817) 377-2807 x1202 <(817)%20377-2807>
> *F*: (817) 377-2799
>  
>  
>
> On Apr 11, 2017, at 4:32 PM, Christopher Neal 
> wrote:
>
> Hi Zach,
>
> I had a similar issue recently. I can't seem to download the file (it's
> giving a 403 server error that I don't have permission to download).  The
> kitware team found that the Paraview Tecplot reader would get into an
> infinite loop if it had trouble reading some of the header information. In
> my case it was a line that contained 'f=point c=black' which was causing
> the issue.
>
> The issue was resolved but the fix isn't in the current version. See the
> Gitlab issue: https://gitlab.kitware.com/paraview/paraview/issues/17293
>
> On Tue, Apr 11, 2017 at 4:16 PM, Zach Davis  wrote:
>
>> Tuesday, 11 April 2017
>>
>>
>>
>> All,
>>
>> I’m encountering a problem in which ParaVIew seems to freeze when
>> attempting to load a Tecplot *.dat file.  An example of a compressed *.dat
>> file that’s causing this issue can be downloaded here
>>  (~4.4MB).
>> I’m using ParaVIew 5.3.0-219-g24f5a44 under macOS 10.12.4.  Note, the file
>> fails to load under ParaView version 4.4 as well.  I’ve compressed the
>> *.dat file with gzip for transmission—please unzip it prior to attempting
>> to reproduce the problem in ParaView.  Uncompressed it's a 16MB file, and
>> shouldn’t take very long to load…  Any ideas what might be the issue?  Is
>> there a problem with the file’s format, or is ParaView the culprit?
>>
>> Best Regards,
>>
>>
>>
>> [image: Pointwise, Inc.]
>> Zach Davis
>> Pointwise®, Inc.
>> Sr. Engineer, Sales & Marketing
>> 213 South Jennings Avenue
>> Fort Worth, TX 76104-1107
>>
>> *E*: zach.da...@pointwise.com
>> *P*: (817) 377-2807 x1202 <(817)%20377-2807>
>> *F*: (817) 377-2799
>>  
>>  
>>
>>
>> ___
>> 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
>>
>>
>
>
> --
> Christopher Neal
> Research Engineer
> Streamline Numerics, Inc.
> https://www.snumerics.com/
>
>
>


-- 
Christopher Neal
Research Engineer
Streamline Numerics, Inc.
https://www.snumerics.com/
___
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


Re: [Paraview] Issues Opening Tecplot *.dat File(s)

2017-04-11 Thread Zach Davis
Hi Christopher,

Thanks for you input.  Apologies if the link wasn’t working for you.  At least 
one person on the mailing list was able to download a copy successfully.  I 
don’t know if this will help, but you might try seeing if the following link 
works any better:

https://pointwiseenterprise.sharefile.com/d-sd1c1d4e9eeb450e8 


I did a preliminary search for the terms “f=point” and “c=black” in my text 
editor.  It doesn’t seem to have found either entries; though, it does appear 
it’s stuck in a loop of some sort.

Best Regards,


Zach Davis
Pointwise®, Inc.
Sr. Engineer, Sales & Marketing
213 South Jennings Avenue
Fort Worth, TX 76104-1107

E: zach.da...@pointwise.com
P: (817) 377-2807 x1202
F: (817) 377-2799
     
  

> On Apr 11, 2017, at 4:32 PM, Christopher Neal  wrote:
> 
> Hi Zach,
> 
> I had a similar issue recently. I can't seem to download the file (it's 
> giving a 403 server error that I don't have permission to download).  The 
> kitware team found that the Paraview Tecplot reader would get into an 
> infinite loop if it had trouble reading some of the header information. In my 
> case it was a line that contained 'f=point c=black' which was causing the 
> issue.
> 
> The issue was resolved but the fix isn't in the current version. See the 
> Gitlab issue: https://gitlab.kitware.com/paraview/paraview/issues/17293 
> 
> 
> On Tue, Apr 11, 2017 at 4:16 PM, Zach Davis  > wrote:
> Tuesday, 11 April 2017
> 
> 
> 
> All,
> 
> I’m encountering a problem in which ParaVIew seems to freeze when attempting 
> to load a Tecplot *.dat file.  An example of a compressed *.dat file that’s 
> causing this issue can be downloaded here 
>  (~4.4MB).  
> I’m using ParaVIew 5.3.0-219-g24f5a44 under macOS 10.12.4.  Note, the file 
> fails to load under ParaView version 4.4 as well.  I’ve compressed the *.dat 
> file with gzip for transmission—please unzip it prior to attempting to 
> reproduce the problem in ParaView.  Uncompressed it's a 16MB file, and 
> shouldn’t take very long to load…  Any ideas what might be the issue?  Is 
> there a problem with the file’s format, or is ParaView the culprit?
> 
> Best Regards,
> 
> 
> 
> 
> Zach Davis
> Pointwise®, Inc.
> Sr. Engineer, Sales & Marketing
> 213 South Jennings Avenue
> Fort Worth, TX 76104-1107
> 
> E: zach.da...@pointwise.com 
> P: (817) 377-2807 x1202 
> F: (817) 377-2799 
>      
>   
> 
> 
> ___
> 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 
> 
> 
> 
> 
> 
> --
> Christopher Neal
> Research Engineer
> Streamline Numerics, Inc.
> https://www.snumerics.com/ 



signature.asc
Description: Message signed with OpenPGP
___
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


Re: [Paraview] Issues Opening Tecplot *.dat File(s)

2017-04-11 Thread Christopher Neal
Hi Zach,

I had a similar issue recently. I can't seem to download the file (it's
giving a 403 server error that I don't have permission to download).  The
kitware team found that the Paraview Tecplot reader would get into an
infinite loop if it had trouble reading some of the header information. In
my case it was a line that contained 'f=point c=black' which was causing
the issue.

The issue was resolved but the fix isn't in the current version. See the
Gitlab issue: https://gitlab.kitware.com/paraview/paraview/issues/17293

On Tue, Apr 11, 2017 at 4:16 PM, Zach Davis  wrote:

> Tuesday, 11 April 2017
>
>
>
> All,
>
> I’m encountering a problem in which ParaVIew seems to freeze when
> attempting to load a Tecplot *.dat file.  An example of a compressed *.dat
> file that’s causing this issue can be downloaded here
>  (~4.4MB).
> I’m using ParaVIew 5.3.0-219-g24f5a44 under macOS 10.12.4.  Note, the file
> fails to load under ParaView version 4.4 as well.  I’ve compressed the
> *.dat file with gzip for transmission—please unzip it prior to attempting
> to reproduce the problem in ParaView.  Uncompressed it's a 16MB file, and
> shouldn’t take very long to load…  Any ideas what might be the issue?  Is
> there a problem with the file’s format, or is ParaView the culprit?
>
> Best Regards,
>
>
>
> [image: Pointwise, Inc.]
> Zach Davis
> Pointwise®, Inc.
> Sr. Engineer, Sales & Marketing
> 213 South Jennings Avenue
> Fort Worth, TX 76104-1107
>
> *E*: zach.da...@pointwise.com
> *P*: (817) 377-2807 x1202 <(817)%20377-2807>
> *F*: (817) 377-2799
>  
>  
>
>
> ___
> 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
>
>


-- 
Christopher Neal
Research Engineer
Streamline Numerics, Inc.
https://www.snumerics.com/
___
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


[Paraview] Extracting min/max values of current data range as a variable in python

2017-04-11 Thread Jamison, Ryan Dale
Hello Everyone,

I’m wanting to gain more control over automation with my paraview python 
scripts. This time around, I’d like to be able to extract information from the 
model and use it in my python script.

For example, I’d like to extract the minimum and maximum values of a cell 
variable from a specific block and use those values in the python script. Once 
I extract this information, I’d use it for some additional processing. 
Something like:

minValue, maxValue = someCoolParaviewFunction(blockName, variableName)

Is this possible? If so, any suggestions on how to do it?

Thanks,

Ryan
___
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


[Paraview] Issues Opening Tecplot *.dat File(s)

2017-04-11 Thread Zach Davis
Tuesday, 11 April 2017



All,

I’m encountering a problem in which ParaVIew seems to freeze when attempting to 
load a Tecplot *.dat file.  An example of a compressed *.dat file that’s 
causing this issue can be downloaded here 
 (~4.4MB).  I’m 
using ParaVIew 5.3.0-219-g24f5a44 under macOS 10.12.4.  Note, the file fails to 
load under ParaView version 4.4 as well.  I’ve compressed the *.dat file with 
gzip for transmission—please unzip it prior to attempting to reproduce the 
problem in ParaView.  Uncompressed it's a 16MB file, and shouldn’t take very 
long to load…  Any ideas what might be the issue?  Is there a problem with the 
file’s format, or is ParaView the culprit?

Best Regards,




Zach Davis
Pointwise®, Inc.
Sr. Engineer, Sales & Marketing
213 South Jennings Avenue
Fort Worth, TX 76104-1107

E: zach.da...@pointwise.com
P: (817) 377-2807 x1202
F: (817) 377-2799
     
  



signature.asc
Description: Message signed with OpenPGP
___
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


Re: [Paraview] [EXTERNAL] NaN coloring on non-NaN component

2017-04-11 Thread Ibanez, Daniel Alejandro
Thanks, Cory.
I think that answers my question.

From: Cory Quammen 
Sent: Tuesday, April 11, 2017 8:39 AM
To: Ibanez, Daniel Alejandro
Cc: paraview@paraview.org; Granzow, Brian N (External Contacts)
Subject: Re: [Paraview] [EXTERNAL] NaN coloring on non-NaN component

Hi Dan,

I believe you are encountering this bug in 5.2:
https://gitlab.kitware.com/paraview/paraview/issues/17127

It has been fixed in ParaView 5.3.0 and I verified that it works with
the dataset you provided.

Best regards,
Cory

On Tue, Apr 11, 2017 at 10:30 AM, Ibanez, Daniel Alejandro
 wrote:
> Installing the ParaView 5.0.1 binary made this go away.
>
> 
> From: ParaView  on behalf of Ibanez, Daniel
> Alejandro 
> Sent: Tuesday, April 11, 2017 8:15 AM
> To: paraview@paraview.org
> Cc: Granzow, Brian N (External Contacts)
> Subject: [EXTERNAL] [Paraview] NaN coloring on non-NaN component
>
>
> Hello,
>
>
> I'm using the ParaView 5.2.0 binary download for Mac.
>
> I've attached an unstructured grid VTK file, using binary encoding.
>
> When I open this file, and try to color by the Y component
>
> of nodal velocity, I get the NaN color.
>
> I've checked the data right before it goes into the file
>
> and am pretty certain there are no NaN or infinity values
>
> (by std::isnan, std::isinf, and writing to std::cerr in C++).
>
>
> Could someone take a look at this and confirm whether
>
> its a bug or something is actually wrong with my data ?
>
>
> Much appreciated,
>
>
> Dan Ibanez
>
>
> ___
> 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
>



--
Cory Quammen
Staff R&D Engineer
Kitware, Inc.
___
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


Re: [Paraview] [EXTERNAL] NaN coloring on non-NaN component

2017-04-11 Thread Ibanez, Daniel Alejandro
Cory,

Please let us know when the better handling of zero variation
is available in a ParaView release, I'll be pretty happy about that.
The epsilon thing has bugged me for a while now, although I
can keep working with it.

Thanks,
Dan

From: Cory Quammen 
Sent: Tuesday, April 11, 2017 8:48 AM
To: Bauer, Andy (External Contacts)
Cc: Ibanez, Daniel Alejandro; Granzow, Brian N (External Contacts); 
paraview@paraview.org
Subject: Re: [Paraview] [EXTERNAL] NaN coloring on non-NaN component

Andy,

Yes, that's the expected behavior for now in 5.3. That's because we
are adding an epsilon to the maximum in this case to avoid
division-by-zero error in the color mapping math.

Soon, ParaView will set the lookup table range so that the min and max
are the same and handle the division-by-zero issue better. The color
legend will also show the min and max as the same value in this case.

Thanks,
Cory

On Tue, Apr 11, 2017 at 10:43 AM, Andy Bauer  wrote:
> Hi Cory,
>
> What's the behavior supposed to be in PV 5.3 when pseudo-coloring by a
> variable which has 0 variation? When I look at this in PV 5.3 the lookup
> table range goes from 0 to 3.4e38. Is that what it's supposed to be?
>
> Thanks,
> Andy
>
> On Tue, Apr 11, 2017 at 10:39 AM, Cory Quammen 
> wrote:
>>
>> Hi Dan,
>>
>> I believe you are encountering this bug in 5.2:
>> https://gitlab.kitware.com/paraview/paraview/issues/17127
>>
>> It has been fixed in ParaView 5.3.0 and I verified that it works with
>> the dataset you provided.
>>
>> Best regards,
>> Cory
>>
>> On Tue, Apr 11, 2017 at 10:30 AM, Ibanez, Daniel Alejandro
>>  wrote:
>> > Installing the ParaView 5.0.1 binary made this go away.
>> >
>> > 
>> > From: ParaView  on behalf of Ibanez,
>> > Daniel
>> > Alejandro 
>> > Sent: Tuesday, April 11, 2017 8:15 AM
>> > To: paraview@paraview.org
>> > Cc: Granzow, Brian N (External Contacts)
>> > Subject: [EXTERNAL] [Paraview] NaN coloring on non-NaN component
>> >
>> >
>> > Hello,
>> >
>> >
>> > I'm using the ParaView 5.2.0 binary download for Mac.
>> >
>> > I've attached an unstructured grid VTK file, using binary encoding.
>> >
>> > When I open this file, and try to color by the Y component
>> >
>> > of nodal velocity, I get the NaN color.
>> >
>> > I've checked the data right before it goes into the file
>> >
>> > and am pretty certain there are no NaN or infinity values
>> >
>> > (by std::isnan, std::isinf, and writing to std::cerr in C++).
>> >
>> >
>> > Could someone take a look at this and confirm whether
>> >
>> > its a bug or something is actually wrong with my data ?
>> >
>> >
>> > Much appreciated,
>> >
>> >
>> > Dan Ibanez
>> >
>> >
>> > ___
>> > 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
>> >
>>
>>
>>
>> --
>> Cory Quammen
>> Staff R&D Engineer
>> Kitware, Inc.
>> ___
>> 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
>
>



--
Cory Quammen
Staff R&D Engineer
Kitware, Inc.
___
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


Re: [Paraview] [EXTERNAL] NaN coloring on non-NaN component

2017-04-11 Thread Cory Quammen
Andy,

Yes, that's the expected behavior for now in 5.3. That's because we
are adding an epsilon to the maximum in this case to avoid
division-by-zero error in the color mapping math.

Soon, ParaView will set the lookup table range so that the min and max
are the same and handle the division-by-zero issue better. The color
legend will also show the min and max as the same value in this case.

Thanks,
Cory

On Tue, Apr 11, 2017 at 10:43 AM, Andy Bauer  wrote:
> Hi Cory,
>
> What's the behavior supposed to be in PV 5.3 when pseudo-coloring by a
> variable which has 0 variation? When I look at this in PV 5.3 the lookup
> table range goes from 0 to 3.4e38. Is that what it's supposed to be?
>
> Thanks,
> Andy
>
> On Tue, Apr 11, 2017 at 10:39 AM, Cory Quammen 
> wrote:
>>
>> Hi Dan,
>>
>> I believe you are encountering this bug in 5.2:
>> https://gitlab.kitware.com/paraview/paraview/issues/17127
>>
>> It has been fixed in ParaView 5.3.0 and I verified that it works with
>> the dataset you provided.
>>
>> Best regards,
>> Cory
>>
>> On Tue, Apr 11, 2017 at 10:30 AM, Ibanez, Daniel Alejandro
>>  wrote:
>> > Installing the ParaView 5.0.1 binary made this go away.
>> >
>> > 
>> > From: ParaView  on behalf of Ibanez,
>> > Daniel
>> > Alejandro 
>> > Sent: Tuesday, April 11, 2017 8:15 AM
>> > To: paraview@paraview.org
>> > Cc: Granzow, Brian N (External Contacts)
>> > Subject: [EXTERNAL] [Paraview] NaN coloring on non-NaN component
>> >
>> >
>> > Hello,
>> >
>> >
>> > I'm using the ParaView 5.2.0 binary download for Mac.
>> >
>> > I've attached an unstructured grid VTK file, using binary encoding.
>> >
>> > When I open this file, and try to color by the Y component
>> >
>> > of nodal velocity, I get the NaN color.
>> >
>> > I've checked the data right before it goes into the file
>> >
>> > and am pretty certain there are no NaN or infinity values
>> >
>> > (by std::isnan, std::isinf, and writing to std::cerr in C++).
>> >
>> >
>> > Could someone take a look at this and confirm whether
>> >
>> > its a bug or something is actually wrong with my data ?
>> >
>> >
>> > Much appreciated,
>> >
>> >
>> > Dan Ibanez
>> >
>> >
>> > ___
>> > 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
>> >
>>
>>
>>
>> --
>> Cory Quammen
>> Staff R&D Engineer
>> Kitware, Inc.
>> ___
>> 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
>
>



-- 
Cory Quammen
Staff R&D Engineer
Kitware, Inc.
___
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


Re: [Paraview] [EXTERNAL] NaN coloring on non-NaN component

2017-04-11 Thread Andy Bauer
Hi Cory,

What's the behavior supposed to be in PV 5.3 when pseudo-coloring by a
variable which has 0 variation? When I look at this in PV 5.3 the lookup
table range goes from 0 to 3.4e38. Is that what it's supposed to be?

Thanks,
Andy

On Tue, Apr 11, 2017 at 10:39 AM, Cory Quammen 
wrote:

> Hi Dan,
>
> I believe you are encountering this bug in 5.2:
> https://gitlab.kitware.com/paraview/paraview/issues/17127
>
> It has been fixed in ParaView 5.3.0 and I verified that it works with
> the dataset you provided.
>
> Best regards,
> Cory
>
> On Tue, Apr 11, 2017 at 10:30 AM, Ibanez, Daniel Alejandro
>  wrote:
> > Installing the ParaView 5.0.1 binary made this go away.
> >
> > 
> > From: ParaView  on behalf of Ibanez,
> Daniel
> > Alejandro 
> > Sent: Tuesday, April 11, 2017 8:15 AM
> > To: paraview@paraview.org
> > Cc: Granzow, Brian N (External Contacts)
> > Subject: [EXTERNAL] [Paraview] NaN coloring on non-NaN component
> >
> >
> > Hello,
> >
> >
> > I'm using the ParaView 5.2.0 binary download for Mac.
> >
> > I've attached an unstructured grid VTK file, using binary encoding.
> >
> > When I open this file, and try to color by the Y component
> >
> > of nodal velocity, I get the NaN color.
> >
> > I've checked the data right before it goes into the file
> >
> > and am pretty certain there are no NaN or infinity values
> >
> > (by std::isnan, std::isinf, and writing to std::cerr in C++).
> >
> >
> > Could someone take a look at this and confirm whether
> >
> > its a bug or something is actually wrong with my data ?
> >
> >
> > Much appreciated,
> >
> >
> > Dan Ibanez
> >
> >
> > ___
> > 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
> >
>
>
>
> --
> Cory Quammen
> Staff R&D Engineer
> Kitware, Inc.
> ___
> 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


Re: [Paraview] [EXTERNAL] NaN coloring on non-NaN component

2017-04-11 Thread Cory Quammen
Hi Dan,

I believe you are encountering this bug in 5.2:
https://gitlab.kitware.com/paraview/paraview/issues/17127

It has been fixed in ParaView 5.3.0 and I verified that it works with
the dataset you provided.

Best regards,
Cory

On Tue, Apr 11, 2017 at 10:30 AM, Ibanez, Daniel Alejandro
 wrote:
> Installing the ParaView 5.0.1 binary made this go away.
>
> 
> From: ParaView  on behalf of Ibanez, Daniel
> Alejandro 
> Sent: Tuesday, April 11, 2017 8:15 AM
> To: paraview@paraview.org
> Cc: Granzow, Brian N (External Contacts)
> Subject: [EXTERNAL] [Paraview] NaN coloring on non-NaN component
>
>
> Hello,
>
>
> I'm using the ParaView 5.2.0 binary download for Mac.
>
> I've attached an unstructured grid VTK file, using binary encoding.
>
> When I open this file, and try to color by the Y component
>
> of nodal velocity, I get the NaN color.
>
> I've checked the data right before it goes into the file
>
> and am pretty certain there are no NaN or infinity values
>
> (by std::isnan, std::isinf, and writing to std::cerr in C++).
>
>
> Could someone take a look at this and confirm whether
>
> its a bug or something is actually wrong with my data ?
>
>
> Much appreciated,
>
>
> Dan Ibanez
>
>
> ___
> 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
>



-- 
Cory Quammen
Staff R&D Engineer
Kitware, Inc.
___
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


Re: [Paraview] [EXTERNAL] NaN coloring on non-NaN component

2017-04-11 Thread Ibanez, Daniel Alejandro
?Installing the ParaView 5.0.1 binary made this go away.


From: ParaView  on behalf of Ibanez, Daniel 
Alejandro 
Sent: Tuesday, April 11, 2017 8:15 AM
To: paraview@paraview.org
Cc: Granzow, Brian N (External Contacts)
Subject: [EXTERNAL] [Paraview] NaN coloring on non-NaN component


Hello,


I'm using the ParaView 5.2.0 binary download for Mac.

I've attached an unstructured grid VTK file, using binary encoding.

When I open this file, and try to color by the Y component

of nodal velocity, I get the NaN color.

I've checked the data right before it goes into the file

and am pretty certain there are no NaN or infinity values

(by std::isnan, std::isinf, and writing to std::cerr in C++).


Could someone take a look at this and confirm whether

its a bug or something is actually wrong with my data ?


Much appreciated,?


Dan Ibanez
___
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


[Paraview] NaN coloring on non-NaN component

2017-04-11 Thread Ibanez, Daniel Alejandro
Hello,


I'm using the ParaView 5.2.0 binary download for Mac.

I've attached an unstructured grid VTK file, using binary encoding.

When I open this file, and try to color by the Y component

of nodal velocity, I get the NaN color.

I've checked the data right before it goes into the file

and am pretty certain there are no NaN or infinity values

(by std::isnan, std::isinf, and writing to std::cerr in C++).


Could someone take a look at this and confirm whether

its a bug or something is actually wrong with my data ?


Much appreciated,?


Dan Ibanez


piece_0.vtu
Description: piece_0.vtu
___
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


[Paraview] Python programmable script and XML SetInputArrayToProcess to get array name

2017-04-11 Thread THIBON Alfred
Dear Paraviewers,

I am kind of a newby and can't figure out how to access in a custom plugin the 
string with the name of a scalar field from an input.

I followed informations in Pat Marion's page 
https://blog.kitware.com/easy-customization-of-the-paraview-python-programmable-filter-property-panel/
 and add a snippet from 
http://www.paraview.org/Wiki/ParaView/Plugin_HowTo#Drop_down_list_with_values_from_input_arrays.

But if I managed to use variables from a DoubleVectorProperty by calling its 
name property from my script, I can't figure out how to access the name of my 
arrays in the StringVectorProperty populated with SetInputArrayToProcess 
command.

Maybe I am not using the right tools. My goals is to get the string name of my 
array to read pointdata.
Today I can access it by hardcoding the name in my programmable script :

self.array = 'CHAMP___ACCELERATION___001'
inputs[0].PointData[self.array][:,0]

I'd like to get  'CHAMP___ACCELERATION___001' from a drop down list. With the 
following snippet the list is populated but I can't access the string selected. 
That must be simple...

  

  

  


  

  

  

I am not sure my message (and my English) are very clear...

Thank you very much for your incoming help !

Alfred




Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à 
l'intention exclusive des destinataires et les informations qui y figurent sont 
strictement confidentielles. Toute utilisation de ce Message non conforme à sa 
destination, toute diffusion ou toute publication totale ou partielle, est 
interdite sauf autorisation expresse.

Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le 
copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si 
vous avez reçu ce Message par erreur, merci de le supprimer de votre système, 
ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support 
que ce soit. Nous vous remercions également d'en avertir immédiatement 
l'expéditeur par retour du message.

Il est impossible de garantir que les communications par messagerie 
électronique arrivent en temps utile, sont sécurisées ou dénuées de toute 
erreur ou virus.


This message and any attachments (the 'Message') are intended solely for the 
addressees. The information contained in this Message is confidential. Any use 
of information contained in this Message not in accord with its purpose, any 
dissemination or disclosure, either whole or partial, is prohibited except 
formal approval.

If you are not the addressee, you may not copy, forward, disclose or use any 
part of it. If you have received this message in error, please delete it and 
all copies from your system and notify the sender immediately by return message.

E-mail communication cannot be guaranteed to be timely secure, error or 
virus-free.
___
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


[Paraview] ParaView v5.3: Generating textures from scalars and lookup table

2017-04-11 Thread Nenad Vujicic
Hello everyone,

I've just started building my ParaView exporter plugin using ParaView v5.3
with OpenGL2 selected for backend rendering (PARAVIEW_RENDERING_BACKEND),
however, I'm having troubles with generating textures from scalars used for
coloring the meshes. What I'm actually doing here is that I'm generating
texture from currently selected array and lookup-table and I export texture
mapped object instead of exporting object plus scalars and colormap or
colors. Previously (with OpenGL used for backend rendering), I was deriving
class from vtkScalarsToColorsPainter class for this purpose, however, now,
this class is not used anymore with OpenGL2.

Does anyone have idea how to solve this problem?

Thanks in advance,
Nenad.
___
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