Skip to main content

# Module read_hnd

For interacting with HND file types

To set it up, you just install it as any other module:

pip install –user read_hnd

This should fix any dependency issues and hopefully work without too much issue.

### Module use: To run the code there are a few options:

Convert all the HND images in that folder and save then in a Processed subfolder

python -m read_hnd -f C:pathtofolder

Read and display the image

python -m read_hnd -i C:pathtoimage.hnd -p=1

Save the image

python -m read_hnd -i C:pathtoimage.hnd -o C:pathtosave.tiff

Also save the metadata

python -m read_hnd -i C:pathtoimage.hnd -o C:pathtosave.tiff -m C:pathtomeatadata.txt

### Use in python code: `python from read_hnd import read_hnd # Load module fp = read_hnd.HndReader(inputfile) # Create object to interact with file fp.headerData() # Read the header fp.pixelData() # Read pixel data (must read header first) matplotlib.plot.imshow(fp.uncompressedImage) # Show the image using matplotlib plt.show() `

This is very much still a work in progress, so there may be bugs. For example, the metadata doesn’t seem to read correctly (i.e., you get some non-sensical values)

Metadata

Release files for read-hnd 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for read-hnd 0.2.3
File Size Uploaded Provenance Actions
read_hnd-0.2.3.tar.gz 785.9 kB Without provenance Details for read_hnd-0.2.3.tar.gz

Release files / read_hnd-0.2.3.tar.gz

Download URL read_hnd-0.2.3.tar.gz
Size 785.9 kB
Tags Source
SHA-256 checksum
How to use checksums
72762f5771755a94e78f9c892467edea05bfe0e8e3be36a8e0230a18ee4abab3
BLAKE2b-256 checksum
How to use checksums
78a27a772ae99b5a7973553a6dd2e1fb1d8462c3aefc5853f760c3d4d1f8fbea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0

Security for read-hnd 0.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.3 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page