-
Notifications
You must be signed in to change notification settings - Fork 4
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
Xarray-to-vtk #106
Comments
to netcdf file to paraviewFile > Open and choose NetCDF Reader |
to netcdf file to Python (PyVista Plotter for display)
|
Interim example:
|
(also in #99) |
Here is the WIP MR for the full xarray to vtk: https://gitlab.kitware.com/vtk/vtk/-/merge_requests/11513 |
@danlipsa here is link to sample xarray datasets: https://github.com/pydata/xarray-data that we should try to load in your PR |
The attached script works with the xarray MR: https://gitlab.kitware.com/vtk/vtk/-/merge_requests/11513 Variables are shallow copied (unless the numpy array needs to be made contiguous: https://numpy.org/devdocs/reference/generated/numpy.ascontiguousarray.html). Coordinates are deep copied at the moment, because the are stored as double array in the netcdf reader so they require a bit more work - they need to be stored as the orginal type in the reader. |
This is the script that produces these images from https://github.com/pydata/xarray-data |
Using vtkNetCDFCFReader as described in #99
The text was updated successfully, but these errors were encountered: