Skip to main content

Tiny library of galaxy surveys most useful parameters with units

Project description

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


galcheat

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 galcheat

CLI

Print the available surveys and associated filters

galcheat

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

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

API

import galcheat

# Start with the list of available surveys
galcheat.available_surveys

# Retrieve a Survey instance
LSST = galcheat.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

galcheat-1.1.3.tar.gz (261.0 kB view details)

Uploaded Source

Built Distribution

galcheat-1.1.3-py2.py3-none-any.whl (17.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file galcheat-1.1.3.tar.gz.

File metadata

  • Download URL: galcheat-1.1.3.tar.gz
  • Upload date:
  • Size: 261.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for galcheat-1.1.3.tar.gz
Algorithm Hash digest
SHA256 53a7073c5ff3f6c2d4abfa7b8bff8c3ecfe9b4fdc1435937a138e9c68debe5e9
MD5 c455de2f185ac75d1bb6948325a74d8d
BLAKE2b-256 9c84418a3eb5f6c045dd4181f89b1f0bf56a66bd69f6d0de27e988929c1c00e0

See more details on using hashes here.

File details

Details for the file galcheat-1.1.3-py2.py3-none-any.whl.

File metadata

  • Download URL: galcheat-1.1.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 17.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for galcheat-1.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c6d5eda3469c6aab0cae2096f44b54a7df3d30188b800a4fa85b20e303e505d4
MD5 3b48e1a94eebe9f807e9666b2b405b1b
BLAKE2b-256 d68a6dec57b02e994d27bb76838c4bcfc7fbeb1d22bcdca7bbd96d538ed2e7a7

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