Skip to main content

CSST_parameter

The code is used to estimate the metallicity and effective temperature of the 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. 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.     

Metadata

Release files for CSST-feh 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for CSST-feh 0.0.8
File Size Uploaded
csst_feh-0.0.8.tar.gz 7.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for CSST-feh 0.0.8
File Interpreter ABI Platform
csst_feh-0.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 14.8 kB

Release files / csst_feh-0.0.8.tar.gz

Download URL csst_feh-0.0.8.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7717baa3e8234edc15f98d8818d14f707c3956e368d45637b4f681cb75c1ebd6
BLAKE2b-256 checksum
How to use checksums
9f463ca95f0675cb9675db793cd1d9d738fd4263e63e74953c9c4f14490faca8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.7

Release files / csst_feh-0.0.8-py3-none-any.whl

Download URL csst_feh-0.0.8-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31917023e05bb88914e25f5d47889d5434e9ac00b5468045b281698a6066dfd0
BLAKE2b-256 checksum
How to use checksums
12349c6da617d5eaa6984bc607176a64fa6be605e8ecdabaa91ab6f780153325
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.7

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page