pandora-visibility
Tool for calculating the visibility of targets from Pandora
See the docs/ folder for an example notebook on using this software.
NIRDA trace check and the offline Gaia catalog
By default Visibility.get_visibility(..., optimize_roll=True) also rejects rolls where the NIRDA slitless traces of nearby stars land on the target's extraction aperture (use_trace_sweep=True, see src/pandoravisibility/trace.py). The nearby stars come from a local copy of Gaia DR3 managed by gaiaoffline, which is installed with this package but whose database (~30 GB) must be downloaded once, as described in its README (a precomputed copy is on Zenodo). Without the database, construct Visibility with use_trace_sweep=False; the roll search then behaves as before.
The check takes trace_contamination_tol (default 1e-3, contaminating over target flux in the worst spectral channel), nirda_roi_x and nirda_roi_y (default 80 x 256, the flight ROI, with the target's pivot where it was measured on orbit; any other size centers the target's trace, keeping it within 225 columns of the right edge). Every other model setting (roll-to-detector mapping, trace extent, aperture, line-spread function, roll uncertainty, catalog depth) is a module constant at the top of trace.py or star_field.py. trace.plot_trace draws the simulated subarray at a given roll.
Simulated VISDA star field
visda.plot_visible_field draws what the visible camera (VISDA) would see in one uncoadded 0.2 s frame at a given roll: the Gaia stars from star_field.query_visible_field (same gaiaoffline catalog), in the VisSci detector frame, with a red box on the target and a blue box on the field center. The field size (default 1056 x 1056 px), the target's pixel, both box sizes and the BP magnitude limit (default 16) are keyword arguments. The camera model (pixel scale, roll-to-detector mapping, Gaia-to-counts photometry, PSF, noise and saturation) is a set of module constants at the top of visda.py, calibrated on VisSci data from orbit. Both docs notebooks end with these fields.
Acknowledgements
This project incorporates code from m4opt, which is licensed under the BSD 3-Clause License.
Metadata
Release files for pandoravisibility 2.1.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 | Provenance | Actions |
|---|---|---|---|---|
| pandoravisibility-2.1.0.tar.gz | 53.9 kB | With provenance | Details for pandoravisibility-2.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pandoravisibility-2.1.0-py3-none-any.whl | Python 3 | none | any | Details for pandoravisibility-2.1.0-py3-none-any.whl |
Total release size: 112.4 kB
Release files / pandoravisibility-2.1.0.tar.gz
| Download URL | pandoravisibility-2.1.0.tar.gz |
|---|---|
| Size | 53.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d1135d535c4898a7fa215b7824930c5bfe571c0560b6d1f315829b4ba713f1e5
|
|
BLAKE2b-256 checksum How to use checksums |
1c38aeaf15a1a9c146b365a65d4c42d9d4994e9acb2e2ecc8b6fa6d5198d4406
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 20, 2026.
Transparency logRelease files / pandoravisibility-2.1.0-py3-none-any.whl
| Download URL | pandoravisibility-2.1.0-py3-none-any.whl |
|---|---|
| Size | 58.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7f789d8ec40a2c9124736f9264e548af90b5a33189808da20966ba9b2936d2e8
|
|
BLAKE2b-256 checksum How to use checksums |
0a6676d47b6460b80f31b3d3edaa03a705214674671efb50fc2f8be8145b5120
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 20, 2026.
Transparency logSecurity for pandoravisibility 2.1.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pandoravisibility-2.1.0.tar.gz
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 Nov 20, 2026.
Transparency logA 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.