Skip to main content

Tiny library of galaxy surveys most useful parameters with units

Project description

Main documentation | Getting started | CLI | API | Contributing | License

SurveyCodex

Python package License Python supported versions PyPI All Contributors

Tiny package containing useful parameters from main galaxy surveys (with units).

The goal of this project is to provide a Python library with minimal dependencies that centralises galaxy survey properties with adequate reference. Such information tends to be scattered in many places or is often copy/pasted without all of the relevant information like units or sources.

The current parameters and the corresponding units are specified in the documentation

Getting started

Install the latest version of the library

pip install -U surveycodex

CLI

Print the available surveys and associated filters

surveycodex

Options

  • -s <survey>: print information for a given survey
  • --refs: print the source for each parameter
  • --rich: use pretty printing for the terminal (needs the rich library installed)
  • -h, --help: get help

Examples

surveycodex -s LSST         # LSST info
surveycodex --refs          # all surveys info with refs
surveycodex --refs -s HSC   # HSC info with refs
surveycodex -s LSST --rich  # pretty print rich terminal output for LSST info

API

import surveycodex

# Start with the list of available surveys
surveycodex.available_surveys

# Retrieve a Survey instance
LSST = surveycodex.get_survey("LSST")

# List the available survey filters
LSST.available_filters

# Pick a Filter instance
u_band = LSST.get_filter("u")

# Both Survey and Filter objects have physical attributes
LSST.mirror_diameter

u_band.full_exposure_time

# These attributes are Astropy Quantity objects
# whose value can be retrieved in any desired unit
u_band.psf_fwhm.to_value('arcmin')

Contributing ✨

This project was started in the context of the BlendingToolKit (BTK) and WeakLensingDeblending projects and has received contributions from these wonderful people (emoji key):


Alexandre Boucaud

💻 🤔 🚧 👀

mpaillassa

💻 👀 🔣

Ismael Mendoza

🤔 👀 🔣

Hironao Miyatake

💻 🔣

Axel Guinot

🔣

thuiop

🤔

Rémy Joseph

🤔

This project follows the all-contributors specification.

A number is missing? An error slipped into the files? A survey is not included in the list and you can provide the relevant information or some of it?

Contributions of any kind are welcome! Head over to the contributing guidelines to learn how to participate into making this library more robust and complete.

License

This project is developed under an MIT-license. See LICENSE file for more information.

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

surveycodex-1.2.0.tar.gz (261.3 kB view details)

Uploaded Source

Built Distribution

surveycodex-1.2.0-py2.py3-none-any.whl (18.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file surveycodex-1.2.0.tar.gz.

File metadata

  • Download URL: surveycodex-1.2.0.tar.gz
  • Upload date:
  • Size: 261.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for surveycodex-1.2.0.tar.gz
Algorithm Hash digest
SHA256 5cf63fa7677a0f69f82640b3f6fe637a48697069839d398ab07852fbe9a38316
MD5 413b6f0b6c65c8cfe49aaa36905c0f4d
BLAKE2b-256 8b4488f10c09c07d278f78145305474f73a6d4b1cd8927c30fffa1a81e2cd2c5

See more details on using hashes here.

File details

Details for the file surveycodex-1.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for surveycodex-1.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ade9ac8de3b2c27e3045a10dd05f957e78c52c59bd9ae63ab2fda84475b89f7f
MD5 aea02c656f59819d0c7a105e0379b627
BLAKE2b-256 6f094639e9649677771d80ce66d14aaf406f7b9a8999a9e0f639914f5963f0c7

See more details on using hashes here.

Supported by

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