Closed hrwakeford closed 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
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')
Amazing thank you @natashabatalha I will get these incorporated ASAP using PandExo
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:
[ ] Update all of the current sensitivity files to csv files
[ ] Make sure all files are in angstroms for wavelength and percentage for throughput/sensitivity
[ ] Use consistent and clear file names
[x] Make a figure showing all of the throughputs that are available in the code
[ ] Add a gallery of each individual file
Figure showing all the throughputs covered in the code
As requested, here are updates to PCE files with Pandeia 2.
Add in ability to run limb-darkening for the following modes: