pandorapsf
This is a standalone tool for working with the NASA Pandora Mission PSF. This can be used to model the expected distribution of starlight on the detector.
Installation
To install you can use
pip install pandorapsf --upgrade
You should update your package often, as we frequently put out new versions with updated Current Best Estimates, and some limited new functionality. Check your version number using
import pandorapsf as ppsf
ppsf.__version__
Configuration
pandorapsf has a configuration system. This determines where pandorapsf will expect your data to be stored.
Users can find where the configuration file is stored using
from pandorapsf import CONFIGDIR
print(CONFIGDIR)
You can display your current configuration using
from pandorapsf import display_config
display_config()
You can access particular configuration parameters using
You can display your current configuration, for example use the following to find the data_dir parameter.
from pandorapsf import config
config["SETTINGS"]["data_dir"]
You can update the configuration either by updating the config.ini file in your CONFIRDIR or you can update them in your environment using save_config, e.g.
from pandorapsf import save_config
config["SETTINGS"]["log_level"] = "INFO"
save_config(config)
If you want to reset back to defaults you can use
from pandorapsf import reset_config
reset_config()
Configuration Parameters
Below is a table of all the configuration parameters in pandorapsf and their current defaults
| (section, key) | Description |
|---|---|
| ('SETTINGS', 'data_dir') | Where data will be stored for the package. This includes ~0.5Gb of PSF files which will be downloaded. |
| ('SETTINGS', 'log_level') | Default level for the logger. Change this to make the tool more or less verbose by default. |
| ('SETTINGS', 'vis_psf_download_location') | Where the visible channel PSF file is located online for download. |
| ('SETTINGS', 'nir_psf_download_location') | Where the NIR channel PSF file is located online for download. |
| ('SETTINGS', 'vis_psf_creation_date') | This is the string provided in the "CREATION" keyword of the PSF fits file header. This will be used to verify that the PSF file is the correct version. |
| ('SETTINGS', 'nir_psf_creation_date') | This is the string provided in the "CREATION" keyword of the PSF fits file header. This will be used to verify that the PSF file is the correct version. |
Obtaining PSF files
When you install this tool you will additionally need to download the PSF grid online. This grid will be updated periodically as we improve our estimates of Pandora's performance. pandorapsf will download the files for you and put them in your configured data directory.
As we release new versions of pandorapsf, the default configuration will change to point to new PSF files that contain our new best estimates. Keep your pandorapsf version up to date to ensure you have the most recent changes.
Dependencies
This tool depends on sparse3d which implements the sparse matrix maths needed to quickly model scenes.
Metadata
Release files for pandorapsf 0.8.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 |
|---|---|---|---|---|
| pandorapsf-0.8.1.tar.gz | 2.0 MB | Without provenance | Details for pandorapsf-0.8.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pandorapsf-0.8.1-py3-none-any.whl | Python 3 | none | any | Details for pandorapsf-0.8.1-py3-none-any.whl |
Total release size: 4.1 MB
Release files / pandorapsf-0.8.1.tar.gz
| Download URL | pandorapsf-0.8.1.tar.gz |
|---|---|
| Size | 2.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b79eb1506cbcb063ef2e5d024a0bf8f365793c97c08cfdc2adb6a0d4781c337f
|
|
BLAKE2b-256 checksum How to use checksums |
8482b260267659c48d789fddb21e3ed6f596a9f25f0903fec55f0512a4cdccf4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.9.13 Darwin/24.6.0
|
Release files / pandorapsf-0.8.1-py3-none-any.whl
| Download URL | pandorapsf-0.8.1-py3-none-any.whl |
|---|---|
| Size | 2.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9a132b70869724d96d076cc432615ff0e6e3f2271c9e4651fbb4d4e6b27d20e0
|
|
BLAKE2b-256 checksum How to use checksums |
3ead1984db2630a7aca27847e7c0ab0c5ca62664d5e714a82e4d1d19ab875ff4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.9.13 Darwin/24.6.0
|
Security for pandorapsf 0.8.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.