Multispectral Camera Simultation Model
This Python package offers a simple way of simulating a response of multispectral camera based on hyperspectral input.
To install this, run pip install ms_camera_model.
Example simulation
import logging
import sys
import matplotlib.pyplot as plt
from ms_camera_model import (
FilterSensorUnit,
HyperspectralImageData,
MultispectralCameraModel,
)
from ms_camera_model.image_visualiser import imshow
logging.basicConfig(level=logging.INFO,
format="%(asctime)s [%(levelname)s] -> %(message)s",
datefmt="%Y-%m-%d %H:%M:%S%p",
handlers=[logging.StreamHandler(sys.stdout)])
filter_paths = ["path/to/filter.xlsx"]
sensor_paths = ["path/to/sensor.xlsx"]
hs_path = "path/to/hyperspectral.hdr"
hs_data = HyperspectralImageData.import_hs_img(hs_path)
band_names = ["band1"]
fs_units = []
for i in range(len(filter_paths)):
fs_unit = FilterSensorUnit.from_excel(filter_paths[i], sensor_paths[i])
fs_units.append(fs_unit)
ms_cam_model = MultispectralCameraModel.create_model(hs_data, fs_units, band_names)
ms_cam_model.run_simulation()
imshow(ms_cam_model.out_data, [0])
plt.show()
Metadata
Release files for ms-camera-model 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ms_camera_model-1.0.0.tar.gz | 13.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ms_camera_model-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.9 kB
Release files / ms_camera_model-1.0.0.tar.gz
| Download URL | ms_camera_model-1.0.0.tar.gz |
|---|---|
| Size | 13.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2c49f4800f7f6b5d3150fe2b635ec375a1652b522cafde07e25dab08ba56f53b
|
|
BLAKE2b-256 checksum How to use checksums |
b1f65f53b1828fe8aff6cdbb0b577439cc2a8a1495d7fd755b5e5b5cb20c62c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 18, 2026.
Transparency logRelease files / ms_camera_model-1.0.0-py3-none-any.whl
| Download URL | ms_camera_model-1.0.0-py3-none-any.whl |
|---|---|
| Size | 17.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1a06a063ec90412e65ebe4dc2e34bd84a6b8f7218904829edfc0eab8119d956b
|
|
BLAKE2b-256 checksum How to use checksums |
aa4bec01fca8c7ebcb4a95197974c004b428471967e6b3624534007848c35527
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 18, 2026.
Transparency log