Name | ngawari JSON |
Version |
0.1.10
JSON |
| download |
home_page | None |
Summary | A simple and functional toolkit for working with data in VTK. |
upload_time | 2025-09-01 09:34:30 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.9 |
license | MIT |
keywords |
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Ngawari
Ngawari is a Python-based toolkit for simplifying operations in data analysis and processing, particularly focused on medical imaging and computational geometry. It is built heavily on top of the [VTK library](https://vtk.org/).
## Features
- Advanced geometric calculations and transformations
- Medical imaging data processing
- Statistical analysis tools
- 3D visualization capabilities
## Installation
To install Ngawari, run the following command:
```bash
pip install ngawari
```
## Usage
Here's a quick example of how to use Ngawari:
```python
from ngawari import ftk, fIO, vtkfilters
import numpy as np
# Create a simple sphere
sphere = vtkfilters.buildSphereSource([0, 0, 0], radius=1.0)
# Get points as numpy array
points = vtkfilters.getPtsAsNumpy(sphere)
# Add a scalar array
vtkfilters.setArrayFromNumpy(sphere, points[:, 0], "x_coords", SET_SCALAR=True)
# Apply a filter
smoothed = vtkfilters.smoothTris(sphere, iterations=10)
# Write to file
fIO.writeVTKFile(smoothed, "smoothed_sphere.vtp")
# Build image over sphere:
image = vtkfilters.buildRawImageDataFromPolyData(smoothed, res=[0.1,0.1,0.1])
# Add a scalar array to the image
vtkfilters.setArrayFromNumpy(image, np.random.rand(image.GetNumberOfPoints()), "random_scalar", SET_SCALAR=True)
# Null scalars outside sphere
image_nulled = vtkfilters.filterNullOutsideSurface(image, smoothed)
# Write to file
fIO.writeVTKFile(image_nulled, "image_over_sphere.vti")
```
For more detailed usage instructions, please refer to the documentation.
## Documentation
Full documentation is available at [https://fraser29.github.io/ngawari/](https://fraser29.github.io/ngawari/)
## Contributing
We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for more details.
## License
Ngawari is released under the MIT License. See the [LICENSE](LICENSE) file for more details.
## Contact
For any questions or support, please open an issue on our [GitHub repository](https://github.com/fraser29/ngawari) or contact us at support@ngawari.com.
## Dependencies
This project uses the following major dependencies:
- VTK (BSD 3-Clause License) - https://vtk.org/
Raw data
{
"_id": null,
"home_page": null,
"name": "ngawari",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": null,
"author": null,
"author_email": "\"Fraser M. Callaghan\" <callaghan.fm@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/b7/a6/647000b95d72f69ac8ea2beca6805544ab4c4cbe4ca123143fddc1bdc98b/ngawari-0.1.10.tar.gz",
"platform": null,
"description": "# Ngawari\n\nNgawari is a Python-based toolkit for simplifying operations in data analysis and processing, particularly focused on medical imaging and computational geometry. It is built heavily on top of the [VTK library](https://vtk.org/).\n\n## Features\n\n- Advanced geometric calculations and transformations\n- Medical imaging data processing\n- Statistical analysis tools\n- 3D visualization capabilities\n\n## Installation\n\nTo install Ngawari, run the following command:\n\n```bash\npip install ngawari\n```\n\n## Usage\n\nHere's a quick example of how to use Ngawari:\n\n```python\nfrom ngawari import ftk, fIO, vtkfilters\nimport numpy as np\n\n# Create a simple sphere\nsphere = vtkfilters.buildSphereSource([0, 0, 0], radius=1.0)\n\n# Get points as numpy array\npoints = vtkfilters.getPtsAsNumpy(sphere)\n\n# Add a scalar array\nvtkfilters.setArrayFromNumpy(sphere, points[:, 0], \"x_coords\", SET_SCALAR=True)\n\n# Apply a filter\nsmoothed = vtkfilters.smoothTris(sphere, iterations=10)\n\n# Write to file\nfIO.writeVTKFile(smoothed, \"smoothed_sphere.vtp\")\n\n# Build image over sphere:\nimage = vtkfilters.buildRawImageDataFromPolyData(smoothed, res=[0.1,0.1,0.1])\n\n# Add a scalar array to the image\nvtkfilters.setArrayFromNumpy(image, np.random.rand(image.GetNumberOfPoints()), \"random_scalar\", SET_SCALAR=True)\n\n# Null scalars outside sphere\nimage_nulled = vtkfilters.filterNullOutsideSurface(image, smoothed)\n\n# Write to file\nfIO.writeVTKFile(image_nulled, \"image_over_sphere.vti\")\n```\n\nFor more detailed usage instructions, please refer to the documentation.\n\n## Documentation \n\nFull documentation is available at [https://fraser29.github.io/ngawari/](https://fraser29.github.io/ngawari/)\n\n## Contributing\n\nWe welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for more details.\n\n## License\n\nNgawari is released under the MIT License. See the [LICENSE](LICENSE) file for more details.\n\n## Contact\n\nFor any questions or support, please open an issue on our [GitHub repository](https://github.com/fraser29/ngawari) or contact us at support@ngawari.com.\n\n## Dependencies\n\nThis project uses the following major dependencies:\n- VTK (BSD 3-Clause License) - https://vtk.org/ ",
"bugtrack_url": null,
"license": "MIT",
"summary": "A simple and functional toolkit for working with data in VTK.",
"version": "0.1.10",
"project_urls": {
"Homepage": "https://github.com/fraser29/ngawari"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "c8a9297be580deead58c50a11af2f7abedad00a816b51425e7e140372a06ab25",
"md5": "6203fd6575220943c7dc07ff87e61754",
"sha256": "a93327972bbee4b9ec4744b8d3931c0e5017d41f11038ee6ac96f06de6f92352"
},
"downloads": -1,
"filename": "ngawari-0.1.10-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6203fd6575220943c7dc07ff87e61754",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 52325,
"upload_time": "2025-09-01T09:34:28",
"upload_time_iso_8601": "2025-09-01T09:34:28.962546Z",
"url": "https://files.pythonhosted.org/packages/c8/a9/297be580deead58c50a11af2f7abedad00a816b51425e7e140372a06ab25/ngawari-0.1.10-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "b7a6647000b95d72f69ac8ea2beca6805544ab4c4cbe4ca123143fddc1bdc98b",
"md5": "d154dfbf41cf5e0a5cb6fbc2e07fa98b",
"sha256": "7b202cb223ee11818e115d60a4855b3216c8001c3a4e5c05734f4916c7c0a038"
},
"downloads": -1,
"filename": "ngawari-0.1.10.tar.gz",
"has_sig": false,
"md5_digest": "d154dfbf41cf5e0a5cb6fbc2e07fa98b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 51491,
"upload_time": "2025-09-01T09:34:30",
"upload_time_iso_8601": "2025-09-01T09:34:30.411242Z",
"url": "https://files.pythonhosted.org/packages/b7/a6/647000b95d72f69ac8ea2beca6805544ab4c4cbe4ca123143fddc1bdc98b/ngawari-0.1.10.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-09-01 09:34:30",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "fraser29",
"github_project": "ngawari",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "ngawari"
}