Exo-TiC / ExoTiC-LD

Limb-darkening package to calculate the coefficients for specific instruments, stars, and wavelength ranges
https://exotic-ld.readthedocs.io
MIT License
8 stars 6 forks source link

Add in JWST mode sensitivity files #5

Closed hrwakeford closed 2 years ago

hrwakeford commented 2 years ago

Add in ability to run limb-darkening for the following modes:

hrwakeford commented 2 years ago

At some point we will also want to convert the sensitivity files from IDL .sav files to something more appropriate for Python

natashabatalha commented 2 years ago

Here is how you would do that with PandExo

import pandexo.engine.justdoit as jdi
import pandas as pd
#list of instruments
inst = jdi.print_instruments()
#omit jwst
jwst = list(inst)[1:]
thrus = {}
for i in jwst:
    if 'SOSS' in i: 
        name = i+'O1'
        thrus[name] = jdi.get_thruput(i,niriss=1)
        pd.DataFrame(thrus[name]).to_csv(name+'.csv')
        name = i+'O2'
        thrus[name] = jdi.get_thruput(i,niriss=2)
        pd.DataFrame(thrus[name]).to_csv(name+'.csv')
    elif 'NIRSpec G140' in i: 
        name = i+'f100lp'
        thrus[name] = jdi.get_thruput(i,nirspec='f100lp')
        pd.DataFrame(thrus[name]).to_csv(name+'.csv')
        name = i+'f070lp'
        thrus[name] = jdi.get_thruput(i,nirspec='f070lp')
        pd.DataFrame(thrus[name]).to_csv(name+'.csv')        
    else:
        thrus[i] = jdi.get_thruput(i)
        pd.DataFrame(thrus[i]).to_csv(i+'.csv')
hrwakeford commented 2 years ago

Amazing thank you @natashabatalha I will get these incorporated ASAP using PandExo

hrwakeford commented 2 years ago

While working on this issue it has been found that the G750L and G750M sensitivity files did not read in correctly.

In addition the following things will be done to improve the consistency of the code:

hrwakeford commented 2 years ago

Figure showing all the throughputs covered in the code

Screenshot 2022-03-04 at 13 49 56
natashabatalha commented 1 year ago

As requested, here are updates to PCE files with Pandeia 2.

thruputs

UpdatedPandeia2.zip