Skip to main content

Program to compute beaming factor.

Project description

Beaming Facor Library

A pre-computed beaming factor library is presented in directory BeamingFactor_Lib.

BeamingFactor

Installation:

  We present python based program BeamingFactor for users who want to compute factors themselves.

pip install beamingfactor  

Quick Start Usage:

Users should specify at least three components for a run:

  • the spectrum file
  • the filter transmission curve
  • orbital parameters

Examples:

from beamingfactor import BeamingFactor as bf
bf.factor(specfile='/path/to/file/file_name',spectype='PHOENIX',band='V',K=100)  

Input Spectra Files:

Supported spectral type included: ATLAS9, PHOENIX, TMAP, and USER.
Users can specify synthetic spectra (files direct download from PHOENIX[^1](Must use high resolution file), ATLAS9, or TMAP), for example:

bf.factor(specfile='/path/to/file/file_name',spectype='ATLAS9',band='V',K=100)

Alternatively, users can specific their own flux calibrated spectra as follows:

bf.factor(specfile='/path/to/file/file_name',spectype='USER',band='V',K=100)  
  • Files should be an ascii format csv file.
  • First column should be wavelength in Angstorm and second column being flux, seperated by comma.
  • First line can be comments or colnames begin with '#'.

An example spectrum file:

#Wave,Flux  
200,2.0  
3000,2.1  

Input Filter Passband:

Filter name should be given with band='Filter_Name'.
Support Filter_Name: u,g,r,i,z,TESS,G,Gbp,Grp,U,B,V,R,I,kepler,NUV_CSST,u_c,g_c,r_c,i_c,z_c,y_c.

u,g,r,i,z are from SDSS;

NUV_CSST,u_c,g_c,r_c,i_c,z_c,y_c are from CSST

TESS for TESS

kepler for Kepler

For Example:

bf.factor(specfile='/path/to/file/file_name',spectype='ATLAS9',band='G',K=100)  

Alternatively, users can specify their own transmission curve as follows:

bf.factor(specfile='/path/to/file/file_name',spectype='USER',band='USER',bandfile='/path/to/your/file',bandtype='E',K=100)  
  • Files should be an ascii format csv file.
  • First column should be wavelength in Angstorm and second column being corresponding transmission efficiency, seperated by comma.
  • First line can be comments or colnames begin with '#'.

An example filter transmission curve file:

#Wave,T  
200,0.01  
3000,0.5  

The default filter type is for energy counter detector (bandtype='E'). For photon counter detertor, please give bandtype='P'.

Orbital Parameters:

Users can directly define the radial velocity speed range with RV_min (km/s) and RV_max (km/s).
Alternatively, users can defined the orbaital parameters with K (km/s), V0 (km/s), e, omega (degree).
For example:

bf.factor(specfile='/path/to/file/file_name',spectype='ATLAS9',band='G',K=100,V0=40,e=0.1,omega=20)
bf.factor(specfile='/path/to/file/file_name',spectype='ATLAS9',band='G',RV_min=-100,RV_max=+120)

[^1]: Must use high resolution (R=500,000) file.

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

beamingfactor-1.0.1.tar.gz (3.6 MB view details)

Uploaded Source

Built Distribution

beamingfactor-1.0.1-py2.py3-none-any.whl (3.6 MB view details)

Uploaded Python 2 Python 3

File details

Details for the file beamingfactor-1.0.1.tar.gz.

File metadata

  • Download URL: beamingfactor-1.0.1.tar.gz
  • Upload date:
  • Size: 3.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.5

File hashes

Hashes for beamingfactor-1.0.1.tar.gz
Algorithm Hash digest
SHA256 74c7ff620425c6b3219b286fa1d4271ae2fc284bd492f6b0ade454f249d71c2f
MD5 70392b5eecaae44d7e2ae8e4ac1422ea
BLAKE2b-256 508756cfbae6103b1947fa2f50dbf5681c66595cf0c0bccfacd339972b14599b

See more details on using hashes here.

File details

Details for the file beamingfactor-1.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for beamingfactor-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 69a2ce68dd71ae8e7ef9f5e3a36b05779d8f7e746e7249cb0e1f82748bf7c454
MD5 7df6afd5532de83635792129fbc53f1d
BLAKE2b-256 a7908468dd11d39f31e102cabfa2a0023fa6a2b70b4661082b9820c0ca241331

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