Add rotatable globe based on VTK
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Quiet
- Domain
- data-visualization, desktop
Research direction
Start at the existing PySide6 MainWindow and Background Worker, then evaluate the proposed PyVista QtInteractor/VTK integration and the CF-to-regular-lat/lon remapping path. Done means a real-time rotatable globe supports mouse interaction, viewpoint and timestep controls, and produces publishable matplotlib visualizations from the selected data.
Written by the indexing model from the issue text.
Description
It'd be nice to have a global visualiser tool that we could manipulate in real time, and generate the beautiful publishable matplotlibs once the right thing had been selected. We'd want to move the viewpoint and rotate under mouse control.
The relevant technology is VTK
- VTK (Visualization Toolkit) has a native Qt widget (QVTKRenderWindowInteractor) that embeds directly into Qt6 layouts. It handles globe rendering, texture mapping CF data onto a sphere, mouse rotation, and real-time interaction natively.
- CF/MATLAB-generated data gets mapped as a texture or scalar field onto a vtkSphereSource
- Mouse drag = built-in trackball interactor (no extra code)
- Sliders in Qt → call VTK camera/actor update methods
Which we can access via pyvista, with an architecture something like this:
PySide6 MainWindow
├── PyVista QtInteractor (pyvista.plotting.qt_interactor)
│ └── vtkRenderWindowInteractor (mouse rotate/zoom free)
├── QSlider / QDial → camera lon/lat/altitude
└── QSlider → timestep (if animated)
Background Worker (existing)
└── CF data → reproject to regular lat/lon grid (numpy 2D array)
└── Signal → main thread → update globe texture/scalars
Would require remapping data onto lat/lon (if not already) for easist use.
This more thoroughly explored in this claude conversation
- Dominant language
- Python
- Stars
- 6
- Forks
- 1
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 8
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from NCAS-CMS/xconv2
-
Commands like `--help` and `--version` still open xconv2 consoleMay be free again @bnlawrence claimed this 28 days ago, and no pull request is open. Openenhancement
-
Need to be able to interupt movie building before the movie is finishedMay be free again @bnlawrence claimed this 34 days ago, and no pull request is open. Openbug
-
we need to be able to terminate ssh sessions properly and restart them.May be free again @bnlawrence claimed this 34 days ago, and no pull request is open. Openenhancement
-
plotting data which intersects with the groundMay be free again @bnlawrence claimed this 39 days ago, and no pull request is open. Openenhancement
-
installation
Difficulty 2/5 Under an hour Newbie friendliness 15/100
Similar issues
-
eegprep-lean: set channel types from the Zarr group's channel_typePossibly taken @claude claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
sccn/eegprep#668 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
blacklanternsecurity/bbot#3679 ·
Maintainers usually reply within 2 days
-
Link Checker ReportOpenBot Type: Bug Type: Documentation
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
speakeasy-api/speakeasy#2159 ·
Maintainers usually reply within 1 day