Skip to main content

No project description provided

Project description

black status flake8 status Generic badge PyPI - Version PyPI - Python Version

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pandorapsf-0.8.1.tar.gz (2.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pandorapsf-0.8.1-py3-none-any.whl (2.0 MB view details)

Uploaded Python 3

File details

Details for the file pandorapsf-0.8.1.tar.gz.

File metadata

  • Download URL: pandorapsf-0.8.1.tar.gz
  • Upload date:
  • Size: 2.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.9.13 Darwin/24.6.0

File hashes

Hashes for pandorapsf-0.8.1.tar.gz
Algorithm Hash digest
SHA256 b79eb1506cbcb063ef2e5d024a0bf8f365793c97c08cfdc2adb6a0d4781c337f
MD5 04d52a3dcab70f2e581631e74a20433d
BLAKE2b-256 8482b260267659c48d789fddb21e3ed6f596a9f25f0903fec55f0512a4cdccf4

See more details on using hashes here.

File details

Details for the file pandorapsf-0.8.1-py3-none-any.whl.

File metadata

  • Download URL: pandorapsf-0.8.1-py3-none-any.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.9.13 Darwin/24.6.0

File hashes

Hashes for pandorapsf-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9a132b70869724d96d076cc432615ff0e6e3f2271c9e4651fbb4d4e6b27d20e0
MD5 a29a8f76c3638b866e7c156720c8992f
BLAKE2b-256 3ead1984db2630a7aca27847e7c0ab0c5ca62664d5e714a82e4d1d19ab875ff4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page