VisIt failed to show the LAST vertical layer of some variables from the FVCOM NetCDF results #20212
Replies: 2 comments 5 replies
-
Hello @SiqiLiOcean. I'm not sure what you're referring to when you say VisIt failed to show the last vertical layer of some variables. I downloaded the attached data and opened it in the latest version of VisIt, 3.4.2. I made plots of What should be different about these plots? Are we missing data that exists in the files? |
Beta Was this translation helpful? Give feedback.
-
@SiqiLiOcean I wrote a ton of stuff here explaining the situation before I realized...your problem is with the SIL controls...not the way VisIt is displaying the variables. But, I don't want to loose what I wrote so am posting this now. VisIt displays data on meshes. But, a NETCDF file does not define meshes. NETCDF defines multi-dimensional arrays of numbers. Some arrays are #nodes x #layers x #times. Some arrays are #elements x #layers x #times. Some arrays are #nodes x #levels x #times. For each of these NETCDF arrays, VisIt has a choice to make...is that array defining a node-centered quantity or a zone-centered quantity? For the same array of numbers, treating it as a node-centered quantity invoves constructing a different mesh than treating that same array of numbers as a zone-centerd quantity. Lets consider an example using a 3x3 array of numbers. For a node-centered treatment, the mesh that gets constructed is 1:1 with that array. In other words, it too has a 3x3 array of coordinates (3 stesp, 0,1,2 in X and 3 steps, 0,1,2 in Y). For a zone-centered treatment of that same 3x3 array, the mesh that gets constructed actually has 4x4 array of coordinates (4 steps, 0,1,2,3 in X and 4 steps 0,1,2,3 in Y). Worse, in order for the two meshes like this to overlay in an reasonable way, they have to be offset from each other by a half-step in each dimension. In other words, the grid crossings of the 3x3 node-mesh should geometricly line up at the same geometric points as the centers of the zones (cells, elements) in the 4x4 zone-mesh. In the Image reader plugin, we treat wind up defining every variable in the image twice...once as a node-centered quantity and once as a zone-centered quantity. And we construct the two meshes for each case as described above. When the number of variables is small, and the input database does nothing else to inform down-stream consumers how the data should be treated, that is usually works fine because it gives the user the option of deciding which treatment they want during the session. Without explicit information in the NETCDF file telling us precisely what to do (and having written the code in the plugin to respond to it), we have to do some guesswork on how to handle those variables. That guesswork is programmed into the FVCOM plugin in this case based on either the dimension names of the underlying dimension of each variable or the variable names themselves. The plugin defines a
It then apparently has logic to define variables on either of these meshes as either node or zone-centered. Using File Information from a VisIt session viewing the example file provided,
Example
|
Beta Was this translation helpful? Give feedback.
-
I am a ocean model FVCOM user and I love using VisIt to check the FVCOM outputs (in NetCDF). But I found that VisIt failed to show the last vertical layer of some variables, when drawing pseudocolor. I wish to solve this problem and hope anyone could give me some suggestion.
There are three kinds of variables in the FVCOM files.
1> in size of (node, siglay, time), such as 'temp'. For the second dimension, the last layer (j=siglay) could not be drawn. (Please try the 'temp' in the attached data)
2> in size of (nele, siglay, time), such as 'u'. All the layers could be drawn.
3> in size of (node, siglev, time), such as 'omega'. For the second dimension, the last layer (j=siglev) could not be drawn. (Please try the 'omega' in the attached data)
Please download the test data from:
https://drive.google.com/file/d/19GYoOWd8Vqss5OkEFXigFYmw2k7qih-b/view?usp=sharing
Any suggestion would be helpful.
Thanks.
Siqi
Beta Was this translation helpful? Give feedback.
All reactions