Skip to main content

CSST-IFS ETC

Description

Exposure time calculator for CSST-IFS. The Python module is constructed by modifing the JWST ETC (Pandeia), which would be easily imported into Python programs.

Installation

via pip:

pip install ifs_etc

Usage

  • Creating a default configuration dictionaray:

    from ifs_etc.etc1d.config import build_default_calc
    config = build_default_calc()
    
  • Editing the configuration:

    # changing the spectrum of the source  
    config['source']['spectrum']['name'] = 'SFgal_texp_FeH0_tau5_Ew10_AGN1.fits'
    
    # changing the surface brightness of the source
    config['source']['normalization']['value'] = 17.7
    
  • Running the code:

    from ifs_etc.etc1d.perform_calculation import perform_calculation
    report = perform_calculation(calculation)
    
  • The output results:

    • report.__dict__ lists all the information in the result
    • report.snr contains the signal-to-noise ratio generated by the calculation
    • report.readnoise, report.darknoise, report.sourcenoise contain different types of noise.
    • report.mockwave, report.mockflux, report.mockerror provide the mock spectrum of the observation

Examples

  • S/N ratio reached in a exposure time of 900 seconds for an extended source with sdss g-band surface brightness of 18 mag/arcsec2 and AGN spectrum

    from ifs_etc.etc1d.config import build_default_calc
    from ifs_etc.etc1d.perform_calculation import perform_calculation
    
    config = build_default_calc()
    config['obst'] = 300
    config['repn'] = 3
    config['source']['normalization']['value'] = 18.0
    config['source']['spectrum']['name'] = 'SFgal_texp_FeH0_tau5_Ew10_AGN1.fits'
    report = perform_calculation(config)
    print(report.snr)
    
  • Exposure time needed to obtain a S/N ratio of 10 for an elliptical galaxy with SDSS r-band surface brightness of 18 mag/arcsec2

    from ifs_etc.etc1d.config import build_default_calc
    from ifs_etc.etc1d.perform_calculation import perform_calculation
    
    config = build_default_calc()
    config['targetsnr'] = 10
    config['obst'] = 300
    config['source']['normalization']['value'] = 18.0
    config['source']['spectrum']['name'] = 'SFgal_texp_FeH0_tau1_Ewd.fits'
    report = perform_calculation(config, calculation_mode='snr2exptime')
    print(report.exptime)
    

Acknowledgement

This project is supported by the CSST scientific data processing and analysis system of the China Manned Space Project and Shanghai Academic/Technology Research Leader (22XD1404200).

Reference

Metadata

Release files for ifs-etc 0.1.4

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

Source distribution (sdist)

Source distribution for ifs-etc 0.1.4
File Size Uploaded
ifs_etc-0.1.4.tar.gz 38.7 MB Details

Release files / ifs_etc-0.1.4.tar.gz

Download URL ifs_etc-0.1.4.tar.gz
Size 38.7 MB
Tags Source
SHA-256 checksum
How to use checksums
0b975a16d2620f0cb5e5604feb5f1d0b6fbca091d5a67747e534cb352a3db3d0
BLAKE2b-256 checksum
How to use checksums
f1438afcab61feb82a86f1de29cbb4c371d4052877849b03208a4d5965c66926
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.1

Release history Release notifications | RSS feed

This release

0.1.4 This release

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

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