{"id":18837680,"url":"https://github.com/psyplot/psy-vtk","last_synced_at":"2025-07-09T09:10:14.874Z","repository":{"id":73611991,"uuid":"188600736","full_name":"psyplot/psy-vtk","owner":"psyplot","description":"VTK plugin for psyplot","archived":false,"fork":false,"pushed_at":"2020-11-12T22:45:13.000Z","size":7870,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-30T08:42:45.850Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/psyplot.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-25T18:37:46.000Z","updated_at":"2020-11-12T22:45:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"76e90891-63a4-4ceb-8340-1e85abe17874","html_url":"https://github.com/psyplot/psy-vtk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psyplot%2Fpsy-vtk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psyplot%2Fpsy-vtk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psyplot%2Fpsy-vtk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psyplot%2Fpsy-vtk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/psyplot","download_url":"https://codeload.github.com/psyplot/psy-vtk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239774324,"owners_count":19694700,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T02:36:00.409Z","updated_at":"2025-02-20T03:44:28.811Z","avatar_url":"https://github.com/psyplot.png","language":"Python","readme":"===============================\npsy-vtk: VTK plugin for psyplot\n===============================\n\nThis  proof of concept shows the principal functionality for using vtk inside\nthe psyplot visualization framework. We use the functionality of psyplot and\ncombine it with the wonderful vtk interface by pyvista_ [1]_.\n\nYou can run some example use cases interactively on mybinder.org: |binder|\n\n.. note::\n\n    This package is in the development mode and it will take several months\n    until it is ready for general usage. But we are looking for contributions\n    and/or feedback. Just raise a new issue or post your comment in\n    `#1`_\n\n\n.. _pyvista: https://docs.pyvista.org\n.. _#1: https://github.com/psyplot/psy-vtk/issues/1\n\n.. |binder| image:: https://mybinder.org/badge_logo.svg\n    :target: https://mybinder.org/v2/gh/psyplot/psy-vtk/master?filepath=examples/\n\nInstallation\n============\nAs stated above, you can run the latest version of this code from mybinder. If\nyou, however, want to install this work in progress on your local computer,\nwe recommend to use conda for it with the provided `environment.yml`_ file.\n\nClone the repository from github::\n\n    git clone https://github.com/psyplot/psy-vtk.git\n    cd psy-vtk\n\nand create the conda environment::\n\n    conda env create -f binder/environment.yml\n    conda activate psy-vtk\n\nNow install the package with the ``-e`` flag if you want it as a development\nversion::\n\n    pip install -e .\n\nIf you want to run the notebooks in the examples_ directory, you should also\ninstall jupyter and panel via::\n\n    conda install jupyter\n\nand then you can run the notebook server via::\n\n    PYVISTA_USE_PANEL=true jupyter notebook --notebook-dir=examples\n\n\n.. _environment.yml: environment.yml\n.. _examples: examples\n\nBasic proof of concept for psy-vtk\n==================================\n\nAs a simple demo: Consider the following basic example (also accessible\nas a notebook the `examples/example_basic.ipynb`_ notebook and on\n`binder \u003chttps://mybinder.org/v2/gh/psyplot/psy-vtk/master?filepath=examples/example_basic.ipynb\u003e`_).\n\n.. code:: ipython3\n\n    import psyplot.project as psy\n    import psy_vtk.plotters as pvtk\n    ds = psy.open_dataset('demo.nc')\n    ds\n\n.. parsed-literal::\n\n    \u003cxarray.Dataset\u003e\n    Dimensions:  (lat: 96, lev: 4, lon: 192, time: 5)\n    Coordinates:\n      * lon      (lon) float64 0.0 1.875 3.75 5.625 7.5 ... 352.5 354.4 356.2 358.1\n      * lat      (lat) float64 88.57 86.72 84.86 83.0 ... -83.0 -84.86 -86.72 -88.57\n      * lev      (lev) float64 1e+05 8.5e+04 5e+04 2e+04\n      * time     (time) datetime64[ns] 1979-01-31T18:00:00 ... 1979-05-31T18:00:00\n    Data variables:\n        t2m      (time, lev, lat, lon) float32 ...\n        u        (time, lev, lat, lon) float32 ...\n        v        (time, lev, lat, lon) float32 ...\n    Attributes:\n        CDI:          Climate Data Interface version 1.6.8 (http://mpimet.mpg.de/...\n        Conventions:  CF-1.4\n        history:      Mon Aug 17 22:51:40 2015: cdo -r copy test-t2m-u-v.nc test-...\n        title:        Test file\n        CDO:          Climate Data Operators version 1.6.8rc2 (http://mpimet.mpg....\n\n.. code:: ipython3\n\n    data = ds.psy.t2m[0, 0]\n\n.. code:: ipython3\n\n    globe_plot = pvtk.GlobePlotter(data)\n    disp = globe_plot.ax.show()\n    disp\n\n.. image:: readme_files/example_basic_5_0.png\n\n.. code:: ipython3\n\n    globe_plot.update(datagrid=True, cmap='viridis')\n    disp\n\n.. image:: readme_files/example_basic_6_0.png\n\n.. _examples/example_basic.ipynb: examples/example_basic.ipynb\n\nReferences\n==========\n.. [1] Sullivan et al., (2019). PyVista: 3D plotting and mesh analysis through a streamlined interface for the Visualization Toolkit (VTK). Journal of Open Source Software, 4(37), 1450, https://doi.org/10.21105/joss.01450\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsyplot%2Fpsy-vtk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpsyplot%2Fpsy-vtk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsyplot%2Fpsy-vtk/lists"}