Skip to main content

exposure time calculator

Project description

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
  • Two 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)
      

Reference

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

ifs_etc-0.0.1.tar.gz (309.6 kB view details)

Uploaded Source

File details

Details for the file ifs_etc-0.0.1.tar.gz.

File metadata

  • Download URL: ifs_etc-0.0.1.tar.gz
  • Upload date:
  • Size: 309.6 kB
  • Tags: Source
  • Uploaded using 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.28.1 CPython/3.7.1

File hashes

Hashes for ifs_etc-0.0.1.tar.gz
Algorithm Hash digest
SHA256 38a1eb3acb0a9febed8577754b7724f99d7bfef50d582b5b2b847395e48e4d84
MD5 47bdbb6de1001b262837e75917b4748d
BLAKE2b-256 b0caa743d03479c849ddd76b62fe04d2b0403f6d2123b9e28537ae45a2625a55

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