py4D-browser plugin that adds utility functions which transform the datacube
Project description
py4D-browser-transform
py4D-browser-transform is a plugin for py4D-browser that provides utility functions for transforming the datacube, currently including flipping, transposing, permuting axes. Other functions like cropping, resampling, and adjusting intensity offsets or scaling might be added in the future.
Installation
You can install py4D-browser-transform directly from GitHub using pip and git (assuming you have git avaialble):
pip install git+https://github.com/chiahao3/py4D-browser-transform
💡 Note:
- If you install into a fresh Python environment,
py4D-browserandpy4DSTEMwill be automatically installed as dependencies so you don't need to install them first.- If you already have
py4D-browserinstalled, you can install this plugin into the same Python environment.
Usage
After installation, you should see the "Transform" submenu appear under the "Plugins" menu.
From here, you can:
- Flip or transpose the diffraction pattern.
- Permute dataset axes if your 4D dataset is not in the expected order.
These operations would direcly modify the loaded datacube, but will not affect the raw file stored on disk. You can export the transformed datacube to disk using File > Export Datacube.
💡 Note:
- The order of flipping and permutation matters so if you mix these two operations, you'll have to reverse the operaitons in the exact opposite order to get back to the original state. For example, if you permute and then flip/transpose, you'll have to undo the flip/transpose and then reset the permute.
License
GNU GPLv3
py4D-browser-transform is open source software distributed under a GPLv3 license. It is free to use, alter, or build on, provided that any work derived from py4D-browser-transform is also kept free and open.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py4d_browser_transform-0.0.1.tar.gz.
File metadata
- Download URL: py4d_browser_transform-0.0.1.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74b86785463dabec57216940268a5dbd34d8672eee5dbe5d951d8020f805e025
|
|
| MD5 |
7e1df786faaa1e4a8bfc2b82266accd9
|
|
| BLAKE2b-256 |
4964c82b9179c97b658049799e60f1774fde0f8f575df2fb97d936c417af945a
|
Provenance
The following attestation bundles were made for py4d_browser_transform-0.0.1.tar.gz:
Publisher:
publish_pypi.yml on chiahao3/py4D-browser-transform
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
py4d_browser_transform-0.0.1.tar.gz -
Subject digest:
74b86785463dabec57216940268a5dbd34d8672eee5dbe5d951d8020f805e025 - Sigstore transparency entry: 437178032
- Sigstore integration time:
-
Permalink:
chiahao3/py4D-browser-transform@37a25b3fbed7cf4e387ee4410b96437dbe66a7b3 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/chiahao3
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_pypi.yml@37a25b3fbed7cf4e387ee4410b96437dbe66a7b3 -
Trigger Event:
release
-
Statement type:
File details
Details for the file py4d_browser_transform-0.0.1-py3-none-any.whl.
File metadata
- Download URL: py4d_browser_transform-0.0.1-py3-none-any.whl
- Upload date:
- Size: 17.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
028ef8f6bdc867dbf1885179aefa13245d3defe6e7d4e6c5142cdaad1af5ad70
|
|
| MD5 |
ed5dc13431daae1115ac1d2867c7d426
|
|
| BLAKE2b-256 |
893d5dd45083183e4d49dd8f2566e1ce00060c2a30d4454ef0f98703abb4bc06
|
Provenance
The following attestation bundles were made for py4d_browser_transform-0.0.1-py3-none-any.whl:
Publisher:
publish_pypi.yml on chiahao3/py4D-browser-transform
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
py4d_browser_transform-0.0.1-py3-none-any.whl -
Subject digest:
028ef8f6bdc867dbf1885179aefa13245d3defe6e7d4e6c5142cdaad1af5ad70 - Sigstore transparency entry: 437178049
- Sigstore integration time:
-
Permalink:
chiahao3/py4D-browser-transform@37a25b3fbed7cf4e387ee4410b96437dbe66a7b3 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/chiahao3
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_pypi.yml@37a25b3fbed7cf4e387ee4410b96437dbe66a7b3 -
Trigger Event:
release
-
Statement type: