Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Render Variables in VAPOR 3.5 from VDC Files Created from Raw Data #2920

Closed
robsopuh87 opened this issue Nov 29, 2021 · 11 comments
Closed
Assignees
Milestone

Comments

@robsopuh87
Copy link

I recently updated to VAPOR 3.5 after used an older version, which I believed it was version 3.2, on my computer that runs on Windows 10 operating system. During I was using the older version of VAPOR, I was able to create vdc files from raw data using the vdccreate and raw2vdc utility functions. Recently I have been interested in specifying coordinate data points within the vdc file and since I was having a little difficulty in version 3.2, I though updating to version 3.5 would help me. But using version 3.5 has not helped and I have experience different issues. The data that I want to visualize in VAPOR is data that represents temperature. I have included, at the bottom of this description, the file that has the temperature data values named temp.txt and from which the binary data file temp_binary.bin has been created and I have also included in this ticket the files with coordinate data points named x_coords.txt, y_coords.txt, and z_coords.txt. I have tried creating a vdc file in two different ways. The first way, I only include the temperature data values in the vdc file. The second way, I include the coordinate data points and the temperature data values in the vdc file. When I only include the temperature data values using the vdccreate and the raw2vdc utilities, within the Command Prompt window, I proceed as follows:

vdccreate -vars3d temp -dimension 4X4X4 temp.vdc
raw2vdc -varname temp temp.vdc temp_binary.bin

The process seems to be fine and I do not get any errors on my Command Prompt Window. However, when I open the vdc file from VAPOR and try to render a volume, I do not get the correct output. I can only see a reddish color, and nothing makes sense. You can see what the output looks like in the picture named WrongData.png.

When I try to include the coordinate data points and the temperature data values in the vdc file using the vdccreate and raw2vdc utilities, within the Command Prompt window, I proceed as follows:

vdccreate -vars3d temp -xcoords x_coords.txt -ycoords y_coords.txt -zcoords z_coords.txt -dimension 4X4X4 temp.vdc
raw2vdc -varname temp temp.vdc temp_binary.bin

By including the coordinate data points, I also do not get any errors on the Command Prompt window. However, when I open the vdc file from VAPOR, it crushes, and the VAPOR window closes. I have deleted my VAPOR 3.5 version and download it again several times, but it has not helped, and I continue experiencing the same issue. A member of my group still has the version 3.4 and when we run the same commands with the same data files, we get the correct result when open the vdc file and create a volume render. The correct result of this data is shown in picture named ExpectedResults.JPG. This version of VAPOR 3.4 is installed in a Linux operating system. Before updating to version 3.5 on my Windows 10, I was not having problems rendering variables in VAPOR. I have even tried installing earlier version of VAPOR like 3.4, 3.3, and 3.2 but now none of them are working for me and I get the same failures. Thank you in advance for your help in this regard.

ExpectedResults

WrongData

temp.txt

x_coords.txt

y_coords.txt

z_coords.txt

@robsopuh87 robsopuh87 added the Bug label Nov 29, 2021
@sgpearse sgpearse self-assigned this Nov 30, 2021
@clyne clyne added the High label Nov 30, 2021
@clyne clyne added this to the 3_6_0 Release milestone Nov 30, 2021
@sgpearse
Copy link
Collaborator

sgpearse commented Dec 6, 2021

@robsopuh87 I think this is a problem with the size of your test data. 4x4x4 may be too small for VDC conversion.

I'm going to write a new issue that summarizes your finding (#2926). I believe you can get around this problem with a larger grid.

Check out this set of files that contain XYZ coordinates as text, and a 256^3 binary data set. Use the following commands and it should work.

vdccreate -force -xcoords x_coords.txt -ycoords y_coords.txt -zcoords z_coords.txt -vars3d temp -dimension 256x256x256 bov.vdc
raw2vdc -varname temp bov.vdc 256f.bin

@clyne
Copy link
Collaborator

clyne commented Dec 7, 2021

Duplicate #2926

@clyne
Copy link
Collaborator

clyne commented Dec 7, 2021

What is the resolution of the actual data that you want to convert? Unless they are "large" converting to NetCDF rather than VDC would be a better option.

@robsopuh87
Copy link
Author

robsopuh87 commented Dec 10, 2021 via email

@sgpearse
Copy link
Collaborator

@robsopuh87 Could you provide us with a data file on your 320x256x289 grid, along with any text files you're using to specify coordinates? Feel free to email us at vapor@ucar.edu if you need to keep the data private.

@robsopuh87
Copy link
Author

robsopuh87 commented Dec 10, 2021 via email

@sgpearse
Copy link
Collaborator

Thanks Robert. I have the files.

Can you provide the exact commands that demonstrate the bug with the files you've given? I have the commands for the 4x4x4 case, but not the one regarding your larger dataset. We need something like the following, but regarding your actual data:

vdccreate -vars3d temp -dimension 4X4X4 temp.vdc
raw2vdc -varname temp temp.vdc temp_binary.bin

Thanks for your patience and for filing the bug report.

@robsopuh87
Copy link
Author

robsopuh87 commented Dec 20, 2021 via email

@sgpearse
Copy link
Collaborator

sgpearse commented Jan 7, 2022

@robsopuh87 Robert, I'm able to reproduce the short read problem with the 3.5.0 installer, but not with our current weekly installer. I'm not sure what's happened to our file I/O between 3.5.0 and now, but could you try our weekly release and let us know if the problem persists?

@robsopuh87
Copy link
Author

Dear VAPOR team,

I have downloaded the weekly release as you have recommended me. The problem is resolved, and I no longer see the short read problem. Now, I am able to generate a vdc file that contains the coordinate data points of my domain. Thank you so much for all your help and time in this regard.

@sgpearse
Copy link
Collaborator

Great, thanks for reporting this problem. I'll close the issue. Please don't hesitate to reach out again if you need help or find a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants