Skip to main content

Two packages that can be used to estimate the metallicity of stars from the CSST filter systems

Project description

CSST_parameter

The code is used to estimate the metallicity and effective temperature of stars from the CSST broad-band filter systems. It is worth noting that only FGK-type stars are valid. \

How to install

#from PyPI
pip install CSST

Quick start

The input are NUV, u, g, i, z, y magnitudes and color error. An assumption that magnitudes are independent Gaussian variables is made. We recommend that the error of the color should not be larger than 0.025 mag.
You can precess the data through the command line like this.

from CSST import CSST
CSST.CSST_parameter(NUV,u,g,i,z,y,error) 

The output is one file named CSST_parameter.csv, which stores the photometric metallicity and the effective temperature of the stars.\

An example

If a file (a.csv) is given, NUV, u, g, i, z, y magnitudes are contained in this file. Once the color error is given, you can precess the data through the command line like this.

py
import pandas as pd
data=pd.read_csv('a.csv')
NUV0=data.loc[:,['NUV']].values
u0=data.loc[:,['u']].values
g0=data.loc[:,['g']].values
i0=data.loc[:,['i']].values
z0=data.loc[:,['z']].values
y0=data.loc[:,['y']].values
NUV,u,g,i,z,y=NUV0.flatten(),u0.flatten(),g0.flatten(),i0.flatten(),z0.flatten(),y0.flatten()
# give the color error
error=(0.01**2+0.01**2)**0.5
# estimate the parameter of the stars 
from CSST import CSST
CSST.CSST_parameter(NUV,u,g,i,z,y,error)           

The output is one file named CSST_parameter.csv, which stores the photometric metallicity and the effective temperature of the stars.

API

CSST_parameter(NUV,u,g,i,z,y,error)
       
Args:      
    
    NUV: array-like, shape (n, )
       CSST NUV band
    
    u: array-like, shape (n, )
       CSST u band
    
    g: array-like, shape (n, )
       CSST g band
       
    i: array-like, shape (n, )
       CSST i band

    z: array-like, shape (n, )
       CSST z band
       
    y: array-like, shape (n, )
       CSST y band           
       
    error: float
       color error.     

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

csst_feh-0.0.7.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

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

csst_feh-0.0.7-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file csst_feh-0.0.7.tar.gz.

File metadata

  • Download URL: csst_feh-0.0.7.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.7

File hashes

Hashes for csst_feh-0.0.7.tar.gz
Algorithm Hash digest
SHA256 fd1f672203fcdd5b08763b1c7f9633e3fe92ab594fc03add66de68752133429c
MD5 ca04a620e79374615643cf11e20d4812
BLAKE2b-256 34f28c0757299b4dfc8ad962fe08d00224a9879fab44026c2ffd28f82e0f162d

See more details on using hashes here.

File details

Details for the file csst_feh-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: csst_feh-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.7

File hashes

Hashes for csst_feh-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 433008a16093c5e85e489e417aa3958593f2c439396dbe89a3e1827b5f6a9742
MD5 e9a17d459cf8855aa914f0d841ebfca0
BLAKE2b-256 3c50181ae363808d63da28c790f8a946feb6dbd5a3cfe90240bb9b7f9826cd7f

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