vic2png
Utility for converting .VIC/.IMG images to compressed image formats.
Installation
From PyPI
pip install vic2png
From Source
git clone https://github.com/nasa-jpl/vic2png
cd vic2png/
python3 -m venv venv # Optional
source venv/bin/activate # Optional
pip install .
Usage
Command Line Interface
usage: vic2png [-h] [-o OUT] [-f FORMAT] [-dnmax DNMAX] [-dnmin DNMIN] [--silent] FILE
positional arguments:
FILE Vicar or PDS .VIC/.IMG format file to be converted
options:
-h, --help show this help message and exit
-o OUT, --out OUT Output directory or whole filename
-f FORMAT, --format FORMAT
Output format, default is .png but can provide jpg or tif
-dnmax DNMAX Max. DN value to clip the upper bound of data in the input image.
-dnmin DNMIN Min. DN value to clip the lower bound of data in the input image.
--silent If used, no output will be printed during execution.
Example CLI Usage
# Basic conversion to PNG
vic2png image.vic
# Convert to JPEG with custom output path
vic2png image.vic -o output/converted.jpg
# Convert with DN value clipping (and tif format output)
vic2png image.vic -dnmin 0 -dnmax 255 -f .tif
Python Usage
This package can be used directly in Python scripts:
from vic2png import vic2png
# Basic conversion
out_png = vic2png("image.vic")
# Advanced usage with all options
out_path = vic2png(
source=Path("image.vic"),
out=Path("output/converted.jpg"),
fmt=".jpg",
dnmin=0,
dnmax=255,
verbose=True
)
Author
Jacqueline Ryan, Jet Propulsion Laboratory
Metadata
Release files for vic2png 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vic2png-0.4.1.tar.gz | 921.0 kB | Without provenance | Details for vic2png-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vic2png-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for vic2png-0.4.1-py3-none-any.whl |
Total release size: 932.5 kB
Release files / vic2png-0.4.1.tar.gz
| Download URL | vic2png-0.4.1.tar.gz |
|---|---|
| Size | 921.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
acb4230bf245c75e0b806ad83cd0e8c434e921e62162356d9e555a39701ed31d
|
|
BLAKE2b-256 checksum How to use checksums |
cc172bef72055d29fad5bdce8c083ab4e0233e0d005e69a50f66ca7f0e9b4f9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.31.0
|
Release files / vic2png-0.4.1-py3-none-any.whl
| Download URL | vic2png-0.4.1-py3-none-any.whl |
|---|---|
| Size | 11.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
514ce020559d5de3c7b6afb8f58262ba2f233e993b8447ef346eb61ebe57431b
|
|
BLAKE2b-256 checksum How to use checksums |
484460591bfff9034f200019d69c0f7c8fadfc964560b4a9688902dadd7dbfab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.31.0
|
Security for vic2png 0.4.1
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.