Re: [Paraview] paraview 5.4.1 rc3, mac os 10.11.6, volume rendering broken

2017-08-08 Thread Dan Lipsa
I see. Thanks Cory.

Dan


On Tue, Aug 8, 2017 at 5:17 PM, Cory Quammen 
wrote:

> Dan,
>
> This is a known issue [1] with the Projected Tetrahedra volume
> rendering algorithm on Mac.
>
> Cory
>
> [1] https://gitlab.kitware.com/paraview/paraview/issues/17303
>
> On Tue, Aug 8, 2017 at 5:09 PM, Dan Lipsa  wrote:
> > Hi all,
> > Volume rendering seems to be broken on my laptop.
> > The first version of ParaView this works correctly on is ParaView 5.2.0.
> > (it is broken on 5.4.0 and 5.3.0)
> >
> > Here is the info about my graphics card.
> > Thanks,
> > Dan
> >
> >
> >
> >
> > AMD Radeon R9 M370X:
> >
> >
> >   Chipset Model: AMD Radeon R9 M370X
> >
> >   Type: GPU
> >
> >   Bus: PCIe
> >
> >   PCIe Lane Width: x8
> >
> >   VRAM (Total): 2048 MB
> >
> >   Vendor: ATI (0x1002)
> >
> >   Device ID: 0x6821
> >
> >   Revision ID: 0x0083
> >
> >   ROM Revision: 113-C5670E-777
> >
> >   gMux Version: 4.0.20 [3.2.8]
> >
> >   EFI Driver Version: 01.00.777
> >
> >   Displays:
> >
> > Color LCD:
> >
> >   Display Type: Retina LCD
> >
> >   Resolution: 2880 x 1800 Retina
> >
> >   Retina: Yes
> >
> >   Pixel Depth: 32-Bit Color (ARGB)
> >
> >   Main Display: Yes
> >
> >   Mirror: Off
> >
> >   Online: Yes
> >
> >   Built-In: Yes
> >
> >
> > ___
> > 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 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] paraview 5.4.1 rc3, mac os 10.11.6, volume rendering broken

2017-08-08 Thread Cory Quammen
Dan,

This is a known issue [1] with the Projected Tetrahedra volume
rendering algorithm on Mac.

Cory

[1] https://gitlab.kitware.com/paraview/paraview/issues/17303

On Tue, Aug 8, 2017 at 5:09 PM, Dan Lipsa  wrote:
> Hi all,
> Volume rendering seems to be broken on my laptop.
> The first version of ParaView this works correctly on is ParaView 5.2.0.
> (it is broken on 5.4.0 and 5.3.0)
>
> Here is the info about my graphics card.
> Thanks,
> Dan
>
>
>
>
> AMD Radeon R9 M370X:
>
>
>   Chipset Model: AMD Radeon R9 M370X
>
>   Type: GPU
>
>   Bus: PCIe
>
>   PCIe Lane Width: x8
>
>   VRAM (Total): 2048 MB
>
>   Vendor: ATI (0x1002)
>
>   Device ID: 0x6821
>
>   Revision ID: 0x0083
>
>   ROM Revision: 113-C5670E-777
>
>   gMux Version: 4.0.20 [3.2.8]
>
>   EFI Driver Version: 01.00.777
>
>   Displays:
>
> Color LCD:
>
>   Display Type: Retina LCD
>
>   Resolution: 2880 x 1800 Retina
>
>   Retina: Yes
>
>   Pixel Depth: 32-Bit Color (ARGB)
>
>   Main Display: Yes
>
>   Mirror: Off
>
>   Online: Yes
>
>   Built-In: Yes
>
>
> ___
> 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 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] troubles with netCDF reader ?

2017-08-08 Thread Aashish Chaudhary
Hi Cynthia,

If you could modify the vtkNetCDFCFReader (
https://github.com/Kitware/VTK/blob/master/IO/NetCDF/vtkNetCDFCFReader.cxx) to
work with WRF formats, that would be an awesome addition. I know few folks
that can use this work. Unfortunately we do not have any direct funding to
accomplish this but we will be more than happy to guide or help a little if
needed.

Let us know and we can discuss more offline.

Thanks,


On Tue, Aug 8, 2017 at 4:40 PM Dan Lipsa  wrote:

> Hi Cynthia,
> It is possible to change the reader. You'll need to compile ParaView from
> source. The class you need to change is vtkNetCDFCFReader.
> Probably you'll need an extra parameter to the reader that would be the
> time unit. The time unit read from the file should overides this parameter.
>
> You could also submit your changes back to VTK (most readers in ParaView
> are actually part of VTK). This seems like something other people might
> need.
>
> Dan
>
>
>
>
> On Tue, Aug 8, 2017 at 12:43 PM, Hart, Cynthia Joyce - (cyndyb) <
> cyn...@email.arizona.edu> wrote:
>
>> Hello,
>>
>>
>>
>> To make a long story short, this solution you used below, does not work
>> well for the weather forecasting group here on my campus that I am working
>> with.  Is there any possibility of obtaining the source code of the
>> Paraview netCDF reader?  If I could edit that source code to accept the
>> non- CF compliant WRF outputs, I could make use of Paraview in an automated
>> script to create animations for our forecasters much, much more readily
>> than manipulating netCDF file headers.  The data I’d sent to you was but a
>> very small subset of the hundreds of netCDF files we’d need to change,
>> every time we do a model run, and this is a process we’d like to actually
>> automate daily.  I am unable to force the output to be compliant as it is
>> created.  Can you help?
>>
>>
>>
>> Sincerely,
>>
>>
>>
>> Cynthia Hart
>>
>>
>>
>>
>>
>> *From: *Dan Lipsa 
>> *Date: *Friday, June 23, 2017 at 10:57 AM
>> *To: *Aashish Chaudhary 
>> *Cc: *"Hart, Cynthia Joyce - (cyndyb)" , "
>> paraview@paraview.org" 
>> *Subject: *Re: [Paraview] troubles with netCDF reader ?
>>
>>
>>
>> Cynthia,
>>
>> It seems that the files you send us are not CF compliant.
>>
>> The problem is that the Time dimension does not have a unit.
>>
>>
>>
>>
>>
>> Here are some quotes from the CF Conventions document:
>>
>> - The use of coordinate variables is required for all dimensions that
>> correspond to one dimensional space or time coordinates.
>>
>> - Variables representing time must always explicitly include the units
>> attribute; there is no default value
>>
>>
>>
>> So, to fix one of your files, I did:
>>
>>
>>
>> 1. ncdump ARAD4_test2.ncdf > ARAD4_test2_CF.txt
>>
>>
>>
>> 2. I added a new variable Time with the unit specified to the txt file.
>>
>>
>>
>> float Time(Time) ;
>>
>> Time:units = "minutes since 2016-07-29 12:00:00" ;
>>
>>
>>
>> 3.
>>
>> I generated a new nc file:
>>
>> ncgen ARAD4_test2_CF.txt -o  ARAD4_test2_CF.nc
>>
>>
>>
>> This new file is read correctly by ParaView.
>>
>>
>>
>> Best,
>>
>> Dan
>>
>>
>>
>>
>>
>>
>>
>> On Fri, Jun 16, 2017 at 6:31 PM, Aashish Chaudhary <
>> aashish.chaudh...@kitware.com> wrote:
>>
>> Dear Cynthia,
>>
>>
>>
>> Is there any chance that you can send me a sample dataset?
>>
>>
>>
>> - Aashish
>>
>>
>>
>> On Fri, Jun 16, 2017 at 6:15 PM Hart, Cynthia Joyce - (cyndyb) <
>> cyn...@email.arizona.edu> wrote:
>>
>> Folks –
>>
>>
>>
>> I am struggling with using the netCDF reader, with a bunch of timeseries
>> of WRF data output (weather prediction modeling).  I am a visualizer, NOT a
>> meteorologist, and so, my full understanding of the model’s output is shaky
>> at best.  The researcher I am trying to assist is currently on vacation,
>> and I’m trying to animate the output of his WRF model.
>>
>>
>>
>> So!  I have been viewing some of the output using the built in reader in
>> Paraview (the ‘generic and cf’ reader) and it works for some variables, not
>> for others.  I am using NCO tools to extract some of the variables of
>> interest into their own CDF file, to try and isolate the problem Paraview
>> has, reading some variables.. but that doesn’t help.  I am particularly
>> trying to read a variable for radar data, “REFL_10CM”.  Here is the
>> relevant bit of the file header from ncdump, below:
>>
>>
>>
>> netcdf ARAD4_test2 {
>>
>> dimensions:
>>
>> Time = UNLIMITED ; // (1 currently)
>>
>> south_north = 393 ;
>>
>> west_east = 639 ;
>>
>> bottom_top = 37 ;
>>
>> variables:
>>
>> float REFD_MAX(Time, south_north, west_east) ;
>>
>> REFD_MAX:FieldType = 104 ;
>>
>> REFD_MAX:MemoryOrder = "XY " ;
>>
>> REFD_MAX:description = "MAX 

Re: [Paraview] troubles with netCDF reader ?

2017-08-08 Thread Dan Lipsa
Hi Cynthia,
It is possible to change the reader. You'll need to compile ParaView from
source. The class you need to change is vtkNetCDFCFReader.
Probably you'll need an extra parameter to the reader that would be the
time unit. The time unit read from the file should overides this parameter.

You could also submit your changes back to VTK (most readers in ParaView
are actually part of VTK). This seems like something other people might
need.

Dan




On Tue, Aug 8, 2017 at 12:43 PM, Hart, Cynthia Joyce - (cyndyb) <
cyn...@email.arizona.edu> wrote:

> Hello,
>
>
>
> To make a long story short, this solution you used below, does not work
> well for the weather forecasting group here on my campus that I am working
> with.  Is there any possibility of obtaining the source code of the
> Paraview netCDF reader?  If I could edit that source code to accept the
> non- CF compliant WRF outputs, I could make use of Paraview in an automated
> script to create animations for our forecasters much, much more readily
> than manipulating netCDF file headers.  The data I’d sent to you was but a
> very small subset of the hundreds of netCDF files we’d need to change,
> every time we do a model run, and this is a process we’d like to actually
> automate daily.  I am unable to force the output to be compliant as it is
> created.  Can you help?
>
>
>
> Sincerely,
>
>
>
> Cynthia Hart
>
>
>
>
>
> *From: *Dan Lipsa 
> *Date: *Friday, June 23, 2017 at 10:57 AM
> *To: *Aashish Chaudhary 
> *Cc: *"Hart, Cynthia Joyce - (cyndyb)" , "
> paraview@paraview.org" 
> *Subject: *Re: [Paraview] troubles with netCDF reader ?
>
>
>
> Cynthia,
>
> It seems that the files you send us are not CF compliant.
>
> The problem is that the Time dimension does not have a unit.
>
>
>
>
>
> Here are some quotes from the CF Conventions document:
>
> - The use of coordinate variables is required for all dimensions that
> correspond to one dimensional space or time coordinates.
>
> - Variables representing time must always explicitly include the units
> attribute; there is no default value
>
>
>
> So, to fix one of your files, I did:
>
>
>
> 1. ncdump ARAD4_test2.ncdf > ARAD4_test2_CF.txt
>
>
>
> 2. I added a new variable Time with the unit specified to the txt file.
>
>
>
> float Time(Time) ;
>
> Time:units = "minutes since 2016-07-29 12:00:00" ;
>
>
>
> 3.
>
> I generated a new nc file:
>
> ncgen ARAD4_test2_CF.txt -o  ARAD4_test2_CF.nc
>
>
>
> This new file is read correctly by ParaView.
>
>
>
> Best,
>
> Dan
>
>
>
>
>
>
>
> On Fri, Jun 16, 2017 at 6:31 PM, Aashish Chaudhary <
> aashish.chaudh...@kitware.com> wrote:
>
> Dear Cynthia,
>
>
>
> Is there any chance that you can send me a sample dataset?
>
>
>
> - Aashish
>
>
>
> On Fri, Jun 16, 2017 at 6:15 PM Hart, Cynthia Joyce - (cyndyb) <
> cyn...@email.arizona.edu> wrote:
>
> Folks –
>
>
>
> I am struggling with using the netCDF reader, with a bunch of timeseries
> of WRF data output (weather prediction modeling).  I am a visualizer, NOT a
> meteorologist, and so, my full understanding of the model’s output is shaky
> at best.  The researcher I am trying to assist is currently on vacation,
> and I’m trying to animate the output of his WRF model.
>
>
>
> So!  I have been viewing some of the output using the built in reader in
> Paraview (the ‘generic and cf’ reader) and it works for some variables, not
> for others.  I am using NCO tools to extract some of the variables of
> interest into their own CDF file, to try and isolate the problem Paraview
> has, reading some variables.. but that doesn’t help.  I am particularly
> trying to read a variable for radar data, “REFL_10CM”.  Here is the
> relevant bit of the file header from ncdump, below:
>
>
>
> netcdf ARAD4_test2 {
>
> dimensions:
>
> Time = UNLIMITED ; // (1 currently)
>
> south_north = 393 ;
>
> west_east = 639 ;
>
> bottom_top = 37 ;
>
> variables:
>
> float REFD_MAX(Time, south_north, west_east) ;
>
> REFD_MAX:FieldType = 104 ;
>
> REFD_MAX:MemoryOrder = "XY " ;
>
> REFD_MAX:description = "MAX DERIVED RADAR
> REFL" ;
>
> REFD_MAX:units = "dbZ" ;
>
> REFD_MAX:stagger = "" ;
>
> REFD_MAX:coordinates = "XLONG XLAT XTIME"
> ;
>
> float REFL_10CM(Time, bottom_top, south_north, west_east) ;
>
> REFL_10CM:FieldType = 104 ;
>
> REFL_10CM:MemoryOrder = "XYZ" ;
>
> REFL_10CM:description = "Radar
> reflectivity (lamda = 10 cm)" ;
>
> REFL_10CM:units = "dBZ" ;
>
> REFL_10CM:stagger = "" ;
>
>   

Re: [Paraview] Paraview source and its associated qt version

2017-08-08 Thread Cory Quammen
Andrew,

The officially supported version of Qt is 5.9, but you could use down
to Qt 5.6 if you wanted.

Best,
Cory

On Tue, Aug 8, 2017 at 4:25 PM, Andrew Nicholson
 wrote:
> Is there anywhere that highlights what version of qt should be used for
> building from source? Current version of qt being 5.9 from its website. Is
> paraview on this version yet or an older version.
> ___
> 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 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


[Paraview] Paraview source and its associated qt version

2017-08-08 Thread Andrew Nicholson
Is there anywhere that highlights what version of qt should be used for
building from source? Current version of qt being 5.9 from its website. Is
paraview on this version yet or an older version.
___
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] Relation between magnitude and camera view angle in SaveScreenshot

2017-08-08 Thread Gregory Zaccaro
Hi Paraviewers,


I have a simple question regarding the screenshot saving feature within 
Paraview.


I wrote a python script that I run with pvbatch which basically :

1) Load a polydata

2) Create a render view

3) Set up the camera (position, focal point, view angle)

4) Take a screenshot with SaveScreenshot(file_name, renderView1, quality=100, 
magnification=magnification)


There is a correlation between the magnification and the allowed View Angle 
values, but I can't figure out what it is.


The scale changes a lot between 150 deg and 170 deg of View Angle if the 
magnification =1.
When magnification is superior to 1 (ex. 2), the scales doesn't change much 
between 150 and 170 deg of View Angle. Why ?


What did I miss to understand the relation between these two parameters ?

Gregory Zaccaro
___
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] Screenshot resolution and 2D actors size

2017-08-08 Thread Cory Quammen
> Regarding the pvbatch issue, do you have any hint?

That is odd. I'm not sure what is going on exactly. Have you tried
running your script with pvpython?

Thanks,
Cory

> Kindly,
>
> Lionel
> 
> De : Cory Quammen [cory.quam...@kitware.com]
> Envoyé : mardi 8 août 2017 16:44
> À : Wilhelm Lionel
> Cc : paraview@paraview.org
> Objet : Re: [Paraview] Screenshot resolution and 2D actors size
>
> Hi Lionel,
>
> This is a bug [1] that will be fixed in ParaView 5.4.1, coming out in
> the next week or so. In fact, it is fixed in the latest 5.4.1 release
> candidate, which you can get from www.paraview.org/download.
>
> HTH,
> Cory
>
> [1] https://gitlab.kitware.com/paraview/paraview/issues/17603
>
> On Tue, Aug 8, 2017 at 10:29 AM, Wilhelm Lionel  
> wrote:
>> Dear Paraview community,
>>
>>
>> I created a full layout with 5 different views and would like to save a
>> screenshot. The paraview GUI looks exactly like the image I want to save so
>> I just use File -> Save Screenshot and keep the default resolution. The
>> settings and the generated image are attached as "settings_test1" and
>> "test1" (everything works fine).
>>
>>
>> If I change the resolution of one pixel in one of the dimensions (width for
>> example), the resulting image shows huge scalar bars. Here are also attached
>> the screenshot settings and the resulting image ( as "settings_test2" and
>> "test2" ). I have to mention that the small numbers on the views are in fact
>> 3D Text objects.
>>
>>
>> The entire visualization is produced by a Python script that I launch in the
>> following way : Tools -> Python Shell -> Run Script. In order to avoid
>> resolution problems, I also tried to run the script with pvbatch and at the
>> end save the screenshot with the following settings :
>>
>>
>> SaveScreenshot(OutputImageName,layout, SaveAllViews=1,
>> ImageResolution=UsrImageRes,
>> FontScaling="Scale fonts proportionally",
>> SeparatorWidth=1,
>> SeparatorColor=(1,1,1),
>> ImageQuality=100
>> )
>>
>>
>> These settings are the same as the ones presented in the "settings_test*"
>> images. The result attached as "test3.png".
>>
>>
>> Is this a bug or this behaviour should be expected ? Does anybody has an
>> idea ? Are the problems with pvbatch and the GUI related or not ?
>>
>>
>> I'm using Paraview 5.4.0 with MPI enabled when I use the GUI.
>>
>>
>> Kindly,
>>
>>
>> Lionel Wilhelm
>>
>>
>> ___
>> 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 Engineer
> Kitware, Inc.



-- 
Cory Quammen
Staff R 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] Screenshot resolution and 2D actors size

2017-08-08 Thread Wilhelm Lionel
Hi Cory, 

Thanks a lot for your fast response. I will give a try with the new release by 
tomorrow. 

Regarding the pvbatch issue, do you have any hint?

Kindly, 

Lionel 

De : Cory Quammen [cory.quam...@kitware.com]
Envoyé : mardi 8 août 2017 16:44
À : Wilhelm Lionel
Cc : paraview@paraview.org
Objet : Re: [Paraview] Screenshot resolution and 2D actors size

Hi Lionel,

This is a bug [1] that will be fixed in ParaView 5.4.1, coming out in
the next week or so. In fact, it is fixed in the latest 5.4.1 release
candidate, which you can get from www.paraview.org/download.

HTH,
Cory

[1] https://gitlab.kitware.com/paraview/paraview/issues/17603

On Tue, Aug 8, 2017 at 10:29 AM, Wilhelm Lionel  wrote:
> Dear Paraview community,
>
>
> I created a full layout with 5 different views and would like to save a
> screenshot. The paraview GUI looks exactly like the image I want to save so
> I just use File -> Save Screenshot and keep the default resolution. The
> settings and the generated image are attached as "settings_test1" and
> "test1" (everything works fine).
>
>
> If I change the resolution of one pixel in one of the dimensions (width for
> example), the resulting image shows huge scalar bars. Here are also attached
> the screenshot settings and the resulting image ( as "settings_test2" and
> "test2" ). I have to mention that the small numbers on the views are in fact
> 3D Text objects.
>
>
> The entire visualization is produced by a Python script that I launch in the
> following way : Tools -> Python Shell -> Run Script. In order to avoid
> resolution problems, I also tried to run the script with pvbatch and at the
> end save the screenshot with the following settings :
>
>
> SaveScreenshot(OutputImageName,layout, SaveAllViews=1,
> ImageResolution=UsrImageRes,
> FontScaling="Scale fonts proportionally",
> SeparatorWidth=1,
> SeparatorColor=(1,1,1),
> ImageQuality=100
> )
>
>
> These settings are the same as the ones presented in the "settings_test*"
> images. The result attached as "test3.png".
>
>
> Is this a bug or this behaviour should be expected ? Does anybody has an
> idea ? Are the problems with pvbatch and the GUI related or not ?
>
>
> I'm using Paraview 5.4.0 with MPI enabled when I use the GUI.
>
>
> Kindly,
>
>
> Lionel Wilhelm
>
>
> ___
> 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 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] Bug in PLOT3D meta reader

2017-08-08 Thread Cory Quammen
Yoshimi's fix has been merged into VTK and will be in ParaView 5.5 due
out in November.

https://gitlab.kitware.com/vtk/vtk/merge_requests/3090/diffs

Thank you for the report, Eric, and for the fix, Yoshimi.

Cory

On Wed, Aug 2, 2017 at 12:28 AM, kenichiro yoshimi
 wrote:
> Hello Eric,
>
> If the number of blocks in dataset decreases over time steps then
> vtkMultiBlockPLOT3DReader seems to fail to count it. For your
> information, I tried commenting out the line 822 in
> ParaView-v5.4.0/VTK/IO/Parallel/vtkMultiBlockPLOT3DReader.cxx and this
> worked with your data.
> -
>   if ( numGrid > (int)this->Internal->Dimensions.size() )
>   {
> this->Internal->Dimensions.resize(numGrid);
>   }
>
> =>
>
>   //if ( numGrid > (int)this->Internal->Dimensions.size() )
>   {
> this->Internal->Dimensions.resize(numGrid);
>   }
> -
>
> Thanks,
> yoshimi
>
> 2017-08-02 2:16 GMT+09:00 Eric Lynch :
>> I believe there is a bug in the PLOT3D metafile reader.  I've attached two
>> PLOT3D meshes and a metafile.  Version 5.4.1 appears to read the metafile
>> successfully.  After reading it, I can see the outline of the two blocks in
>> the first mesh file.  If I advance to the next time step, I can see the
>> outline of the three blocks in the second mesh.  If I then go back to the
>> previous time step, I get an error message saying:
>>
>>
>>
>> ERROR: In
>> /home/buildslave/dashboards/buildbot/paraview-pvbinsdash-linux-shared-release_superbuild/build/superbuild/paraview/src/VTK/IO/Parallel/vtkMultiBlockPLOT3DReader.cxx,
>> line 1397 vtkMPIMultiBlockPLOT3DReader (0x6b53260): Encountered premature
>> end-of-file while reading the geometry file (or the file is corrupt).
>>
>>
>>
>> ERROR: In
>> /home/buildslave/dashboards/buildbot/paraview-pvbinsdash-linux-shared-release_superbuild/build/superbuild/paraview/src/VTK/Common/ExecutionModel/vtkExecutive.cxx,
>> line 784 vtkCompositeDataPipeline (0x6946da0): Algorithm
>> vtkMPIMultiBlockPLOT3DReader(0x6b53260) returned failure for request:
>> vtkInformation (0x68935b0)
>>
>>   Debug: Off
>>
>>   Modified Time: 982828
>>
>>   Reference Count: 1
>>
>>   Registered Events: (none)
>>
>>   Request: REQUEST_DATA
>>
>>   ALGORITHM_AFTER_FORWARD: 1
>>
>>   FROM_OUTPUT_PORT: 0
>>
>>   FORWARD_DIRECTION: 0
>>
>>
>>
>> To my knowledge, the last version without this bug was 4.3.1.
>>
>>
>>
>> Thanks,
>>
>> Eric
>>
>>
>> ___
>> 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



-- 
Cory Quammen
Staff R 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] Hiding all pipeline objects

2017-08-08 Thread Utkarsh Ayachit
With 5.1.2, try this:


>>> view = GetActiveView()

>>> sources = GetSources().values()

>>> for aSource in sources:

... Hide(aSource, view)


Utkarsh






On Tue, Aug 8, 2017 at 1:05 PM, Amelia Launspach 
wrote:

> Using paraview 5.1.2, thats a bummer
>
> On Tue, Aug 8, 2017 at 12:03 PM, Utkarsh Ayachit <
> utkarsh.ayac...@kitware.com> wrote:
>
>> What version of ParaView  are you using? `simple.HideAll` has been
>> supported since 5.2.
>>
>> On Tue, Aug 8, 2017 at 12:39 PM, Amelia Launspach > > wrote:
>>
>>> Hi everyone,
>>>
>>> I'm trying to hide all pipeline objects on my view. My paraview.simple
>>> does not have a "HideAll" so I'm not sure how to do this. The following
>>> methods have not worked for me:
>>>
>>> def HideAll(view=None):
>>>
>>> """Hide all pipeline sources in the given view.
>>>
>>> If view is not specified, active view is used."""
>>>
>>> if not view:
>>>
>>> view = active_objects.view
>>>
>>> controller = servermanager.ParaViewPipelineController()
>>>
>>> controller.HideAll(view)
>>>
>>>
>>> paraview.simple.HideAll()
>>>
>>>
>>>
>>> Does anyone know how I could accomplish this?
>>> Seems simple enough but nothing is working
>>>
>>> Thanks,
>>> Amy
>>>
>>> ___
>>> 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] Hiding all pipeline objects

2017-08-08 Thread Amelia Launspach
Using paraview 5.1.2, thats a bummer

On Tue, Aug 8, 2017 at 12:03 PM, Utkarsh Ayachit <
utkarsh.ayac...@kitware.com> wrote:

> What version of ParaView  are you using? `simple.HideAll` has been
> supported since 5.2.
>
> On Tue, Aug 8, 2017 at 12:39 PM, Amelia Launspach 
> wrote:
>
>> Hi everyone,
>>
>> I'm trying to hide all pipeline objects on my view. My paraview.simple
>> does not have a "HideAll" so I'm not sure how to do this. The following
>> methods have not worked for me:
>>
>> def HideAll(view=None):
>>
>> """Hide all pipeline sources in the given view.
>>
>> If view is not specified, active view is used."""
>>
>> if not view:
>>
>> view = active_objects.view
>>
>> controller = servermanager.ParaViewPipelineController()
>>
>> controller.HideAll(view)
>>
>>
>> paraview.simple.HideAll()
>>
>>
>>
>> Does anyone know how I could accomplish this?
>> Seems simple enough but nothing is working
>>
>> Thanks,
>> Amy
>>
>> ___
>> 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] Hiding all pipeline objects

2017-08-08 Thread Utkarsh Ayachit
What version of ParaView  are you using? `simple.HideAll` has been
supported since 5.2.

On Tue, Aug 8, 2017 at 12:39 PM, Amelia Launspach 
wrote:

> Hi everyone,
>
> I'm trying to hide all pipeline objects on my view. My paraview.simple
> does not have a "HideAll" so I'm not sure how to do this. The following
> methods have not worked for me:
>
> def HideAll(view=None):
>
> """Hide all pipeline sources in the given view.
>
> If view is not specified, active view is used."""
>
> if not view:
>
> view = active_objects.view
>
> controller = servermanager.ParaViewPipelineController()
>
> controller.HideAll(view)
>
>
> paraview.simple.HideAll()
>
>
>
> Does anyone know how I could accomplish this?
> Seems simple enough but nothing is working
>
> Thanks,
> Amy
>
> ___
> 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] troubles with netCDF reader ?

2017-08-08 Thread Hart, Cynthia Joyce - (cyndyb)
Hello,

To make a long story short, this solution you used below, does not work well 
for the weather forecasting group here on my campus that I am working with.  Is 
there any possibility of obtaining the source code of the Paraview netCDF 
reader?  If I could edit that source code to accept the non- CF compliant WRF 
outputs, I could make use of Paraview in an automated script to create 
animations for our forecasters much, much more readily than manipulating netCDF 
file headers.  The data I’d sent to you was but a very small subset of the 
hundreds of netCDF files we’d need to change, every time we do a model run, and 
this is a process we’d like to actually automate daily.  I am unable to force 
the output to be compliant as it is created.  Can you help?

Sincerely,

Cynthia Hart


From: Dan Lipsa 
Date: Friday, June 23, 2017 at 10:57 AM
To: Aashish Chaudhary 
Cc: "Hart, Cynthia Joyce - (cyndyb)" , 
"paraview@paraview.org" 
Subject: Re: [Paraview] troubles with netCDF reader ?

Cynthia,
It seems that the files you send us are not CF compliant.
The problem is that the Time dimension does not have a unit.


Here are some quotes from the CF Conventions document:
- The use of coordinate variables is required for all dimensions that 
correspond to one dimensional space or time coordinates.
- Variables representing time must always explicitly include the units 
attribute; there is no default value

So, to fix one of your files, I did:

1. ncdump ARAD4_test2.ncdf > ARAD4_test2_CF.txt

2. I added a new variable Time with the unit specified to the txt file.


float Time(Time) ;
Time:units = "minutes since 2016-07-29 12:00:00" ;

3.
I generated a new nc file:
ncgen ARAD4_test2_CF.txt -o  ARAD4_test2_CF.nc

This new file is read correctly by ParaView.

Best,
Dan



On Fri, Jun 16, 2017 at 6:31 PM, Aashish Chaudhary 
> wrote:
Dear Cynthia,

Is there any chance that you can send me a sample dataset?

- Aashish

On Fri, Jun 16, 2017 at 6:15 PM Hart, Cynthia Joyce - (cyndyb) 
> wrote:
Folks –

I am struggling with using the netCDF reader, with a bunch of timeseries of WRF 
data output (weather prediction modeling).  I am a visualizer, NOT a 
meteorologist, and so, my full understanding of the model’s output is shaky at 
best.  The researcher I am trying to assist is currently on vacation, and I’m 
trying to animate the output of his WRF model.

So!  I have been viewing some of the output using the built in reader in 
Paraview (the ‘generic and cf’ reader) and it works for some variables, not for 
others.  I am using NCO tools to extract some of the variables of interest into 
their own CDF file, to try and isolate the problem Paraview has, reading some 
variables.. but that doesn’t help.  I am particularly trying to read a variable 
for radar data, “REFL_10CM”.  Here is the relevant bit of the file header from 
ncdump, below:

netcdf ARAD4_test2 {
dimensions:
Time = UNLIMITED ; // (1 currently)
south_north = 393 ;
west_east = 639 ;
bottom_top = 37 ;
variables:
float REFD_MAX(Time, south_north, west_east) ;
REFD_MAX:FieldType = 104 ;
REFD_MAX:MemoryOrder = "XY " ;
REFD_MAX:description = "MAX DERIVED RADAR REFL" 
;
REFD_MAX:units = "dbZ" ;
REFD_MAX:stagger = "" ;
REFD_MAX:coordinates = "XLONG XLAT XTIME" ;
float REFL_10CM(Time, bottom_top, south_north, west_east) ;
REFL_10CM:FieldType = 104 ;
REFL_10CM:MemoryOrder = "XYZ" ;
REFL_10CM:description = "Radar reflectivity 
(lamda = 10 cm)" ;
REFL_10CM:units = "dBZ" ;
REFL_10CM:stagger = "" ;
REFL_10CM:coordinates = "XLONG XLAT XTIME" ;
float XLAT(Time, south_north, west_east) ;
XLAT:FieldType = 104 ;
XLAT:MemoryOrder = "XY " ;
XLAT:description = "LATITUDE, SOUTH IS 
NEGATIVE" ;
XLAT:units = "degree_north" ;
XLAT:stagger = "" ;
XLAT:coordinates = "XLONG XLAT" ;
float XLONG(Time, south_north, west_east) ;
XLONG:FieldType = 104 ;
XLONG:MemoryOrder = "XY " ;
XLONG:description = "LONGITUDE, WEST IS 
NEGATIVE" ;
XLONG:units = 

[Paraview] Hiding all pipeline objects

2017-08-08 Thread Amelia Launspach
Hi everyone,

I'm trying to hide all pipeline objects on my view. My paraview.simple does
not have a "HideAll" so I'm not sure how to do this. The following methods
have not worked for me:

def HideAll(view=None):

"""Hide all pipeline sources in the given view.

If view is not specified, active view is used."""

if not view:

view = active_objects.view

controller = servermanager.ParaViewPipelineController()

controller.HideAll(view)


paraview.simple.HideAll()



Does anyone know how I could accomplish this?
Seems simple enough but nothing is working

Thanks,
Amy
___
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] Dynamic colouring of the geometry in the animation, of warped eigenmodes

2017-08-08 Thread Juha Kortelainen

Hello all,

Thank you, Cory and Ken, for your answers. The trick with the Calculator 
and WarpByVector filters was what I was originally looking for as a 
quick solution, but when I tried some examples with the Programmable 
filter, I found it a very useful way to implement filters for relatively 
simple and light data processing. Though, I still need to study more 
about the details to make my Programmable filter to really work for my case.


- Juha -



Juha,

As Cory said you can create a plugin to replicate this behavior, but I believe 
you can also get similar behavior through a collection of filters. Although 
this is a bit cumbersome, you can try the following steps:

1. Before applying the WarpByVector filter, add the Calculator filter to your data. Set the "Result 
Array Name" to "OriginalCoords" and the expression to simply "coords". This will 
capture the point coordinates before warping.
2. Apply WarpByVector to this calculator filter as you did before to the FEM 
data.
3. Apply another Calculator filter to the output of WarpByVector. This time, set the "Result Array 
Name" to "ActualDisplacement" and the expression to "coords-OriginalCoords". This 
will capture the actual displacement applied after the scale factor is used.
4. Color your data by the "ActualDispalcement" field.
5. Set up your animation of the "ScaleFactor" for the WarpByVector filter as 
you did before.

You should now see "dynamic" colors based on the magnitude of the actual 
displacement.

-Ken

-Original Message-
From: ParaView [mailto:paraview-bounces at paraview.org 
] On Behalf Of Cory Quammen

Sent: Monday, August 7, 2017 7:27 AM
To: Juha Kortelainen >
Cc: ParaView >

Subject: [EXTERNAL] Re: [Paraview] Dynamic colouring of the geometry in the 
animation of warped eigenmodes

On Sun, Aug 6, 2017 at 1:30 PM, Juha Kortelainen > wrote:
/Hi all, />//>/I’m using the warp filter to visualise the computed eigenmodes of a />/structure (computed using a FEM code). Animating the eigenmodes works />/fine with the WarpByVector filter using the ScalarFactor as the />/animation variable. In addition to animating the deformation of the />/structure, I would like to apply colouring of the deformation vector />/field on the geometry so that the colour would change dynamically />/according to the magnitude of deformation during the animation. This />/can be done with the Salome platform’s ParaViS modile (a modified />/version of ParaView), which has an additional ScaleVector filter to do />/the colouring trick. Can this dynamic colouring be done with standard 

ParaView and if so, how is it done? /
Yes, with some work. Take a look at this blog post for the general
idea:https://blog.kitware.com/easy-customization-of-the-paraview-python-programmable-filter-property-panel/

Basically, you can create XML plugins based on the Programmable Filter that 
feature some properties, such as a scale factor. The scale factor property 
should be exposed in the animation controls. Within your Programmable Filter 
script, you can perform the scaling of the vector with that scale factor 
property value. There are many examples of Python scripts for the Programmable 
Filter in Section 13.3 the ParaView Guide to get you started.

HTH,
Cory


//>/___ />/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 />/J />/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 Engineer
Kitware, Inc.
___
Powered bywww.kitware.com

Visit other Kitware open-source projects 
athttp://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


[Paraview] how to uninstall paraview

2017-08-08 Thread Jose Javier Munoz Criollo

Hi

I'm facing a problem in Fedora 26, it seems like my Paraview GUI (5.4) 
is very very slow, compared with previous versions. I usually do the 
installation from the Fedora repositories. Now I'm trying to built from 
source to see if I can fix this problem.


However, after the first try it didn't work. It built correctly but the 
problem persists. I would like to uninstall it and try with an older 
version. Typically I would use Fedora package manager to remove Paraview 
but in this case I'm not sure how to properly uninstall it.


Any help would be highly appreciated.

Regards

___
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] Screenshot resolution and 2D actors size

2017-08-08 Thread Cory Quammen
Hi Lionel,

This is a bug [1] that will be fixed in ParaView 5.4.1, coming out in
the next week or so. In fact, it is fixed in the latest 5.4.1 release
candidate, which you can get from www.paraview.org/download.

HTH,
Cory

[1] https://gitlab.kitware.com/paraview/paraview/issues/17603

On Tue, Aug 8, 2017 at 10:29 AM, Wilhelm Lionel  wrote:
> Dear Paraview community,
>
>
> I created a full layout with 5 different views and would like to save a
> screenshot. The paraview GUI looks exactly like the image I want to save so
> I just use File -> Save Screenshot and keep the default resolution. The
> settings and the generated image are attached as "settings_test1" and
> "test1" (everything works fine).
>
>
> If I change the resolution of one pixel in one of the dimensions (width for
> example), the resulting image shows huge scalar bars. Here are also attached
> the screenshot settings and the resulting image ( as "settings_test2" and
> "test2" ). I have to mention that the small numbers on the views are in fact
> 3D Text objects.
>
>
> The entire visualization is produced by a Python script that I launch in the
> following way : Tools -> Python Shell -> Run Script. In order to avoid
> resolution problems, I also tried to run the script with pvbatch and at the
> end save the screenshot with the following settings :
>
>
> SaveScreenshot(OutputImageName,layout, SaveAllViews=1,
> ImageResolution=UsrImageRes,
> FontScaling="Scale fonts proportionally",
> SeparatorWidth=1,
> SeparatorColor=(1,1,1),
> ImageQuality=100
> )
>
>
> These settings are the same as the ones presented in the "settings_test*"
> images. The result attached as "test3.png".
>
>
> Is this a bug or this behaviour should be expected ? Does anybody has an
> idea ? Are the problems with pvbatch and the GUI related or not ?
>
>
> I'm using Paraview 5.4.0 with MPI enabled when I use the GUI.
>
>
> Kindly,
>
>
> Lionel Wilhelm
>
>
> ___
> 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 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] ParaView newbie with a (hopefully) simple question

2017-08-08 Thread Utkarsh Ayachit
>
> Would there be anyway to automatically group together all the sources
> without looping?
>

This should work:

* GroupDatasets(Input=GetSources().values())*


Utkarsh
___
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] Get value of a vtkintarray object by the filed name

2017-08-08 Thread Shayan Nikoohemat
Hi David,

Thanks for the reply, it works now, but I can't see the original RGB colors
in renderview. In color map editor, I changed the settings to RGB but still
the color scale is scaled based on color pallet. Is there any other
settings that I missed?

Thanks.

On Tue, Aug 8, 2017 at 1:46 PM, David E DeMarle 
wrote:

> Try:
>
> inRArray = ids.GetPointData().GetArray("R")
> inGArray = ids.GetPointData().GetArray("G")
> inBArray = ids.GetPointData().GetArray("B")  for x in range(0, 
> ids.GetNumberOfPoints()):
>   rF = inRArray.GetValue(x)
>   gF = inGArray.GetValue(x)
>   bF = inBArray.GetValue(x)
>
>
> David E DeMarle
> Kitware, Inc.
> Principal Engineer
> 21 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-881-4909
>
> On Tue, Aug 8, 2017 at 7:08 AM, Shayan Nikoohemat <
> shayan.nikoohe...@gmail.com> wrote:
>
>> I have a Paraview programmable filter written in python, that I am
>> running on a table of points to assign RGB colors as UnsignedCharArray.
>> I'm just stuck in one part of the code to get the value of R, G, B fields
>> in the range. Here is the table example:
>>
>> [image: Inline image 1]
>>
>> ids = self.GetInput()
>> ods = self.GetOutput()
>>
>> ocolors = vtk.vtkUnsignedCharArray()
>> ocolors.SetName("colors")
>> ocolors.SetNumberOfComponents(3)
>> ocolors.SetNumberOfTuples(ids.GetNumberOfPoints())
>>
>> inArray = ids.GetPointData().GetArray(0)for x in range(0, 
>> ids.GetNumberOfPoints()):
>>   rF = inArray.GetValue(x) # here I need something like GetValue(x, "R")
>>   gF = inArray.GetValue(x) # here I need something like GetValue(x, "G")
>>   bF = inArray.GetValue(x) # here I need something like GetValue(x, "B")
>>
>>   ocolors.SetTuple3(x, rF,gF,bF)
>>
>> ods.GetPointData().AddArray(ocolors)
>>
>> Can anyone help me to fix this.
>>
>> The code source is from an old post from 2012.
>>
>> Thanks.
>>
>> Shayan
>>
>>
>> ___
>> 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] Get value of a vtkintarray object by the filed name

2017-08-08 Thread David E DeMarle
Try:

inRArray = ids.GetPointData().GetArray("R")
inGArray = ids.GetPointData().GetArray("G")
inBArray = ids.GetPointData().GetArray("B")  for x in range(0,
ids.GetNumberOfPoints()):
  rF = inRArray.GetValue(x)
  gF = inGArray.GetValue(x)
  bF = inBArray.GetValue(x)


David E DeMarle
Kitware, Inc.
Principal Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909

On Tue, Aug 8, 2017 at 7:08 AM, Shayan Nikoohemat <
shayan.nikoohe...@gmail.com> wrote:

> I have a Paraview programmable filter written in python, that I am
> running on a table of points to assign RGB colors as UnsignedCharArray.
> I'm just stuck in one part of the code to get the value of R, G, B fields
> in the range. Here is the table example:
>
> [image: Inline image 1]
>
> ids = self.GetInput()
> ods = self.GetOutput()
>
> ocolors = vtk.vtkUnsignedCharArray()
> ocolors.SetName("colors")
> ocolors.SetNumberOfComponents(3)
> ocolors.SetNumberOfTuples(ids.GetNumberOfPoints())
>
> inArray = ids.GetPointData().GetArray(0)for x in range(0, 
> ids.GetNumberOfPoints()):
>   rF = inArray.GetValue(x) # here I need something like GetValue(x, "R")
>   gF = inArray.GetValue(x) # here I need something like GetValue(x, "G")
>   bF = inArray.GetValue(x) # here I need something like GetValue(x, "B")
>
>   ocolors.SetTuple3(x, rF,gF,bF)
>
> ods.GetPointData().AddArray(ocolors)
>
> Can anyone help me to fix this.
>
> The code source is from an old post from 2012.
>
> Thanks.
>
> Shayan
>
>
> ___
> 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


[Paraview] Get value of a vtkintarray object by the filed name

2017-08-08 Thread Shayan Nikoohemat
I have a Paraview programmable filter written in python, that I am running
on a table of points to assign RGB colors as UnsignedCharArray. I'm just
stuck in one part of the code to get the value of R, G, B fields in the
range. Here is the table example:

[image: Inline image 1]

ids = self.GetInput()
ods = self.GetOutput()

ocolors = vtk.vtkUnsignedCharArray()
ocolors.SetName("colors")
ocolors.SetNumberOfComponents(3)
ocolors.SetNumberOfTuples(ids.GetNumberOfPoints())

inArray = ids.GetPointData().GetArray(0)for x in range(0,
ids.GetNumberOfPoints()):
  rF = inArray.GetValue(x) # here I need something like GetValue(x, "R")
  gF = inArray.GetValue(x) # here I need something like GetValue(x, "G")
  bF = inArray.GetValue(x) # here I need something like GetValue(x, "B")

  ocolors.SetTuple3(x, rF,gF,bF)

ods.GetPointData().AddArray(ocolors)

Can anyone help me to fix this.

The code source is from an old post from 2012.

Thanks.

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