GithubHelp home page GithubHelp logo

mjpark-astro / sedpy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bd-j/sedpy

0.0 0.0 0.0 4.09 MB

Utilities for astronomical spectral energy distributions

License: MIT License

Python 100.00%

sedpy's Introduction

sedpy

Modules for storing and operating on astronomical source spectral energy distributions.

Documentation Status

Installation & setup:

sedpy is pip installable:

python -m pip install astro-sedpy

Or you can install the latest version from github:

git clone https://github.com/bd-j/sedpy
cd sedpy
pip install .

Then in python, e.g.,

from sedpy import observate
# get magnitude from a spectrum:
filt = observate.Filter("sdss_r0")
mag = filt.ab_mag(angstroms, f_lambda_cgs)
# or get several magnitudes at once
filterlist = observate.load_filters(["galex_NUV", "sdss_r0"])
mags = observate.getSED(angstroms, f_lambda_cgs, filterlist=filters)

For the filters available by default see the filter_list. For adding transmission curves, see these docs.

This code can be referenced as:

Description:

  • observate has methods for generating synthetic photometry through any filters, and classes for dealing with filters generally. There is some functionality for spectra (vaccum to air conversions). With a huge debt to Mike Blanton's kcorrect code .
  • attenuation contains simple dust attenuation methods.
  • smoothing methods for smoothing well-sampled spectra.
  • extinction (Deprecated) classes for a detailed modeling of extinction curves, following the Fitzpatrick & Massa parameterizations. See dust_extinction instead.

sedpy's People

Contributors

bd-j avatar elijahmathews avatar alexavillaume avatar jrleja avatar moustakas avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.