Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated emission lines and continuum models #572

Merged
merged 3 commits into from Nov 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Binary file not shown.
2 changes: 1 addition & 1 deletion py/desisim/io.py
Expand Up @@ -1205,7 +1205,7 @@ def empty_metatable(nmodel=1, objtype='ELG', subtype='', simqso=False, input_met
objmeta.add_column(Column(name='SLOPES', length=nmodel, dtype='f4',
data=np.zeros( (nmodel, 5) )-1))
objmeta.add_column(Column(name='EMLINES', length=nmodel, dtype='f4',
data=np.zeros( (nmodel, 62, 3) )-1))
data=np.zeros( (nmodel, 73, 3) )-1))
else:
objmeta.add_column(Column(name='PCA_COEFF', length=nmodel, dtype='f4',
data=np.zeros( (nmodel, 4) )))
Expand Down
25 changes: 13 additions & 12 deletions py/desisim/scripts/lya_simqso_model.py
Expand Up @@ -64,8 +64,8 @@
}

BossDr9_fiducial_continuum = grids.BrokenPowerLawContinuumVar([
grids.GaussianSampler(-1.50,0.3),
grids.GaussianSampler(-0.50,0.3),
grids.GaussianSampler(-1.50,0.678),
grids.GaussianSampler(-0.50,0.678),
grids.GaussianSampler(-0.37,0.3),
grids.GaussianSampler(-1.70,0.3),
grids.GaussianSampler(-1.03,0.3) ],
Expand Down Expand Up @@ -127,16 +127,17 @@ def EmLineTemplate_modified_develop(*args,**kwargs):

def EmLineTemplate_modified(*args,**kwargs):
kwargs.setdefault('scaleEWs',{
'Lyepsdel':1,
'CIII':0.3,
'NII':1.1,
'LyB/OIVn':0.7,
'LyB/OIVb':1.1,
'CIII*':1.8,
'LyAb':1.1,'LyAn':1.1
#Add more lines if needed.
})
kwargs['EmissionLineTrendFilename']=resource_filename('desisim', 'data/emlinetrends_Harris2016mod')
'Lyepsdel':0.08,
'CIII977':1.7,
'NIII991':1.8,
'NII':0.8,
'FeIII:UV1n':0.1,
'FeIII:UV1b':0.1,
'LyAb':1.2,'LyAn':1.2,
'CIII*':1.7
})
kwargs['EmissionLineTrendFilename']=resource_filename('desisim', 'data/emlinetrends_Harris2016mod_v2')
print('Using emission lines file: {}'.format(kwargs['EmissionLineTrendFilename']))
return grids.generateBEffEmissionLines(*args,**kwargs)

def model_vars(qsoGrid,wave,nSightLines=0,
Expand Down