Skip to main content

Pds Image Converter

A python module to convert PDS4 images to jpg and other quick view formats.

The public interface of the toolkit is exposed at the root level of the module, i.e.:

from pds_image_converter import convert_image

this is expected to be the most stable portion of the toolkit.

Usage

The tool is expected to be used as an imported function:

from pds_image_converter import convert_image

convert_image(in_image=input_image, output_folder="tmp_out", configfile=cfg)

with

  • in_image: path to the label (xml) or data file
  • output_folder: the output path for the generated image
  • configfile: a path to the config file to use, or alternatively the name of one of the default configurations shipped together with this package. For example janus2quicklook will be resolved to the config file janus2quicklook.toml shipped in the configs dir of the package.

CLI

A cli (pds-image-converter) is also present but should not be used to automate the processing of files under pipelines or similar. It is mostly to support manual operation and testing of the tool.

Additional info, from package template

PyPI PyPI - Python Version PyPI - License Coookiecutter - Wolt


Documentation: https://JANUS-JUICE.github.io/pds-image-converter

Source Code: https://github.com/JANUS-JUICE/pds-image-converter

PyPI: https://pypi.org/project/pds-image-converter/


Installation

pip install pds-image-converter

Development

  • Clone this repository
  • Requirements:
  • Create a virtual environment and install the dependencies
poetry install
  • Activate the virtual environment
poetry shell

Testing

pytest

Documentation

The documentation is automatically generated from the content of the docs directory and from the docstrings of the public signatures of the source code. The documentation is updated and published as a Github Pages page automatically as part each release.

Releasing

Manual release

Releases are done with the command, e.g. incrementing patch:

poetry run just bump patch
# also push, of course:
git push origin main --tags

this will update the changelog, commit it, and make a corresponding tag.

as the CI is not yet configured for publish on pypi it can be done by hand:

poetry publish --build

Automatic release - to be fixed

Trigger the Draft release workflow (press Run workflow). This will update the changelog & version and create a GitHub release which is in Draft state.

Find the draft release from the GitHub releases and publish it. When a release is published, it'll trigger release workflow which creates PyPI release and deploys updated documentation.

Updating with copier

To update the skeleton of the project using copier:

 pipx run copier update --defaults

Pre-commit

Pre-commit hooks run all the auto-formatting (ruff format), linters (e.g. ruff and mypy), and other quality checks to make sure the changeset is in good shape before a commit/push happens.

You can install the hooks with (runs for each commit):

pre-commit install

Or if you want them to run only for each push:

pre-commit install -t pre-push

Or if you want e.g. want to run all checks manually for all files:

pre-commit run --all-files

This project was generated using a fork of the wolt-python-package-cookiecutter template.

Metadata

Release files for pds-image-converter 0.1.8

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

Source distribution (sdist)

Source distribution for pds-image-converter 0.1.8
File Size Uploaded Provenance
pds_image_converter-0.1.8.tar.gz 3.1 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pds-image-converter 0.1.8
File Interpreter ABI Platform
pds_image_converter-0.1.8-py3-none-any.whl Python 3 none any Details

Total release size: 6.2 MB

Release files / pds_image_converter-0.1.8.tar.gz

Download URL pds_image_converter-0.1.8.tar.gz
Size 3.1 MB
Tags Source
SHA-256 checksum
How to use checksums
95fd0bd8869c1f7c4946938bf1ea4931119047448c144dab4476072765ac461d
BLAKE2b-256 checksum
How to use checksums
15ae04ae77cfb1017bfc90a4a531668234d05f9dc3aa25ef4461c8c72cede20c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.4

Release files / pds_image_converter-0.1.8-py3-none-any.whl

Download URL pds_image_converter-0.1.8-py3-none-any.whl
Size 3.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
807c2f46cd8803892c51f05f40b1662fe2bae10882894d01e2a90d86fb33a93c
BLAKE2b-256 checksum
How to use checksums
35887e7e160fb74a2f21053563ca2c74681ae512f16aa85aa3915fbbafa30aea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.4

Security for pds-image-converter 0.1.8

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.

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