Re: [Paraview] curvilinear CF conventions

2017-12-11 Thread David Deepwell
Hi Ken,

So section 5.2 
(http://cfconventions.org/Data/cf-conventions/cf-conventions-1.7/cf-conventions.html#_two_dimensional_latitude_longitude_coordinate_variables)
 doesn’t apply for arbitrary coordinate variables? I would have thought that it 
would be general and not just for latitude and longitude.

I have used the warp by scalar before, but I would prefer it if Paraview simply 
understood the geometry immediately. I have also found another method to adjust 
the grid which is quite good. The calculator has a Coordinate Results option 
which creates the vector field of the grid.

Thanks,
David


On Dec 11, 2017, at 7:09 PM, Moreland, Kenneth 
> wrote:

David,

The way you are attempting to specify coordinates does not follow the CF 
convention. Your variables have a “coordinates” property that simply says “zc.” 
That is not sufficient in the CF convention to use that as a Z coordinate to 
add to the other independent coordinates. In fact, I cannot find any part of 
the CF convention (http://cfconventions.org/latest.html) that allows you to 
arbitrarily assign a Z coordinate to a 2D grid.

That said, accomplishing what you want is easy with ParaView. Just load your 
data like you are now (so it comes in as a flat rectilinear grid). Then run the 
“Warp By Scalar” filter and set the “Scalars” property to “zc”. That will apply 
the elevation to your data like you want.

-Ken

From: David Deepwell [mailto:ddeepw...@uwaterloo.ca]
Sent: Saturday, December 9, 2017 12:54 PM
To: Moreland, Kenneth >
Cc: David Deepwell >; 
paraview@paraview.org
Subject: [EXTERNAL] Re: [Paraview] curvilinear CF conventions

Hi Ken,

I’ve attached a file which I think satisfies the curvilinear CF conventions. 
The grid is 2 dimensional where the z coordinate (called zc) depends on the 
horizontal and vertical dimensions (x and z).

Cheers,
David



On Dec 9, 2017, at 11:34 AM, Moreland, Kenneth 
> wrote:

David,

The netCDF/CF reader should be able to read curvilinear coordinates. There is 
not enough information in your email to determine whether the issue is with the 
ParaView reader or an issue with the data file. It would be helpful if you 
could send us an example file so we can replicate your problem.

-Ken

Sent from my iPad

On Dec 9, 2017, at 9:12 AM, David Deepwell 
> wrote:
Hi all,

I have a netcdf file that follows the CF conventions in curvilinear 
(structured) coordinates. Paraview however doesn’t recognize the auxiliary 
variable as the grid variable on which the rest of the fields should be plotted 
on. I’m not sure if this a bug with paraview misinterpreting the CF convention 
or if I just happen to have an attribute missing that Paraview is looking for.

Cheers,
David
___
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] curvilinear CF conventions

2017-12-11 Thread Moreland, Kenneth
David,

The way you are attempting to specify coordinates does not follow the CF 
convention. Your variables have a “coordinates” property that simply says “zc.” 
That is not sufficient in the CF convention to use that as a Z coordinate to 
add to the other independent coordinates. In fact, I cannot find any part of 
the CF convention (http://cfconventions.org/latest.html) that allows you to 
arbitrarily assign a Z coordinate to a 2D grid.

That said, accomplishing what you want is easy with ParaView. Just load your 
data like you are now (so it comes in as a flat rectilinear grid). Then run the 
“Warp By Scalar” filter and set the “Scalars” property to “zc”. That will apply 
the elevation to your data like you want.

-Ken

From: David Deepwell [mailto:ddeepw...@uwaterloo.ca]
Sent: Saturday, December 9, 2017 12:54 PM
To: Moreland, Kenneth 
Cc: David Deepwell ; paraview@paraview.org
Subject: [EXTERNAL] Re: [Paraview] curvilinear CF conventions

Hi Ken,

I’ve attached a file which I think satisfies the curvilinear CF conventions. 
The grid is 2 dimensional where the z coordinate (called zc) depends on the 
horizontal and vertical dimensions (x and z).

Cheers,
David



On Dec 9, 2017, at 11:34 AM, Moreland, Kenneth 
> wrote:

David,

The netCDF/CF reader should be able to read curvilinear coordinates. There is 
not enough information in your email to determine whether the issue is with the 
ParaView reader or an issue with the data file. It would be helpful if you 
could send us an example file so we can replicate your problem.

-Ken

Sent from my iPad

On Dec 9, 2017, at 9:12 AM, David Deepwell 
> wrote:
Hi all,

I have a netcdf file that follows the CF conventions in curvilinear 
(structured) coordinates. Paraview however doesn’t recognize the auxiliary 
variable as the grid variable on which the rest of the fields should be plotted 
on. I’m not sure if this a bug with paraview misinterpreting the CF convention 
or if I just happen to have an attribute missing that Paraview is looking for.

Cheers,
David
___
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] [paraview] visualize higher order element.

2017-12-11 Thread Ezhilmathi Krishnasamy
Hi Andy,

Thanks a lot :) this is working!  this is what I want.

Kind regards,
Mathi

On 11 October 2017 at 17:47, Andy Bauer  wrote:

> Hi Mathi,
>
> When I looked at the file in ParaView it seems like the connectivity is
> wrong with your cells. If you try the Clean to Grid filter that should fix
> your problem. I would suggest fixing the connectivity though as the best
> way to manage the data since the Clean to Grid filter will merge coincident
> points and may inadvertently mess up your point data fields for the
> coincident points. Note that the Clean to Grid filter reduced the number of
> points in your grid from 2,006,480 to 451,792.
>
> Cheers,
> Andy
>
> On Wed, Oct 11, 2017 at 10:17 AM, Ezhilmathi Krishnasamy <
> ezhkr...@student.liu.se> wrote:
>
>> Hi Andy,
>>
>> Any idea or info about this extracting the surface of the geometry
>> in higher order element mesh (or solution).
>>
>> Kind regards,
>> Mathi
>>
>> On 20 September 2017 at 21:32, Ezhilmathi Krishnasamy <
>> ezhkr...@student.liu.se> wrote:
>>
>>> Hi Andy,
>>>
>>> Thanks!
>>>
>>> I am attaching you the image here, I would like to see the sphere
>>> surface inside the
>>> cube. Instead I am still seeing the elements.
>>>
>>> Kind regards,
>>> Mathi​
>>>  sol.vtu
>>> 
>>> ​
>>>
>>> On 20 September 2017 at 21:15, Andy Bauer 
>>> wrote:
>>>
 Hi,

 What do you mean by the extract operator? ParaView has a variety of
 filters (similar to VisIt's operators) for performing extracts of different
 types. Could you also share your dataset? That may make it easier to
 diagnose the issue.

 Best,
 Andy

 On Wed, Sep 20, 2017 at 2:33 PM, Ezhilmathi Krishnasamy <
 ezhkr...@student.liu.se> wrote:

> Hi,
>
> I have fluid domain as a cube and inside this cube I have sphere. In
> the linear element mesh if I use extract operator and apply the clip as
> well I can see the sphere surface.
>
> But where as in higher order element mesh.
> If i follow the same procedure, I don't see the sphere surface instead
> I see only the elements in the cube.
>
> Could anyone please tell me how to solve this problem.
>
> Kind regards,
> Mathi
>
>
> Sent from my iPhone
> ___
> 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