convert vtk point data to cell data - cell

I want to convert my vtk point data files to cell data files with a specific cell size, my data is basically 100,000 points data moving in a cylinder, and those points have several variables such as velocity and coordination. could anyone help me out with this problem?
I try to use paraview to give them volumn but cannot be a cylinder. The "point data to cell data" filter cannot save my variables correctly, anyone can help with this case? sorry I cannot share my data due to some other reasons, maybe some hints could help me out of this.
Many thanks in advance!

Related

How to interpret the PCA (fviz_pca_var)?

I need someone to check on my analysis. I really appreciate if someone can help me... I made the following visualization from my data. The correlation coefficient between "Disch" and "precipitation" in my actual data is very low. However, it looks like to me they are highly correlated in this graph... in other words, does the cosine of the angle between 2 variables show the correlation between them? if so, then my "precipitation" and "disch" should be highly correlated... however, they are not... I am confused.correlation circle

Chart dates unevenly spaced on axis with lots of data

problem screenshot
Hey guys, I'm having a problem: as you can see in the screenshot, there are some resolutions that the distance between the last and the second to last dates on x-axis is greater than other ones when you use a lot of data on that axis. Can somebody with a project like that test to see if this happens to every project? Probably this is the way Chart.js handles putting more elements on x-axis, but can I do something about it?
Thank you very much!

How to visualize vtk data set with only point data

I have a vtk dataset with only point data but no cell data. I would like to visualize the dataset as point cloud. When I read the dataset as polyData it wouldn’t show anything on the screen. One work around I did was first writing the dataset as .xyz files, then read from the .xyz files and visualize. Another way I came up with is inserting the points as vertices manually.
Are there any neater ways to achieve this goal?
Thank you very much!
You may check out the vtkVertexGlyphFilter class:
https://vtk.org/doc/nightly/html/classvtkVertexGlyphFilter.html

Extract region from a Curvilinear satellite Dataset

I have satellite swath data from MODIS and need to extract a subset (region) of data to analyze (NOT PLOT). I am trying to find the best way to do this with out loops which can be slow. In the past I have used set.intersect but this does not work on 2D data.
My issue is both Lat and Lon are 2D and I need to find the indices where my conditions are met (lat>=x1)&(lat<=x2) and similar for lon. and then use those 2D indices to slice my main data set (Aerosol Optical Depth)
Latitude Sample
Longitude Sample
Aerosol MetaData
Code so Far
Normally (for 1D lat/lon) I would used Opt_Depth_Land[:,goodlat,goodlon] to extract my data but this does not work for this type of data set.
Any Help would be greatly appreciated.
valid_lat=(lat>=user_lat-radius)&(lat<=user_lat+radius)
valid_lon=(lon>=user_lon-radius)&(lon<=user_lon+radius)
Valid_Coord=np.where((valid_lat==True)&(valid_lon==True))

Some total noob questions on volume rendering

I have been asked to provide a 3D visualisation of data from a prototype of a new type of scanner.
The data will be provided to me as a cube of voxels. Each voxel will be a data structure who's exact contents are yet to be determined.
It seems like xtk might be a good base on which to tackle this problem, but as I'm a total noob in this area, I have some pretty fundamental questions...
1) I'm having trouble finding simple explanations of the various file formats that xtk supports - which (if any) represent cubes of voxels?
2) For those, do the file formats also specify the data structure for each voxel? How would you tackle rendering a file that had an arbitrary data structure? ( ie If, say, each voxel contained a numerical measurement of "foo" at that location - how would you go about getting xtk to render a vizualization)
Apologies for the noob questions - any pointers in the right direction would be very gratefully received.
here is a list of supported file formats: https://github.com/xtk/X/wiki/X:Fileformats
the formats under "DICOM/Volume Files" are the ones you want. we support different data types for the voxels (sint, uint, float, double etc.).
XTK converts the numerical values of each voxel to grayscale and renders them.