Skip to content

Commit

Permalink
Adding the correction for e-correction for BGS samples in EDR
Browse files Browse the repository at this point in the history
  • Loading branch information
aureliocarnero committed May 15, 2023
1 parent c52706c commit 1e5c871
Show file tree
Hide file tree
Showing 3 changed files with 434 additions and 0 deletions.
7 changes: 7 additions & 0 deletions py/LSS/common_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,13 @@ def add_dered_flux(data,fcols=['G','R','Z','W1','W2']):
return data

def add_ke(dat):

#THERE IS A BUG IN THE CALCULATION OF EQ_ALL_0P1 and ABSMAG_R FOR EDR. You should run the script
#scripts/SV3/fix_v1tov2_toEDR.py in the final directory of your BGS sample to have it correct

print('WARNING: You are running the function add_ke. This function has a bug calculating the e-correction for EDR')
print('WARNING: You can correct the column EQ_ALL_0P1 and remove the e-correction from the ABSMAG_R column by running the script: scripts/SV3/fix_v1tov2_toEDR.py')

#dat should be table with flux_g_dered and flux_r_dered
#from kcorr package https://github.com/SgmAstro/DESI, needs to be added to path
#
Expand Down
Loading

0 comments on commit 1e5c871

Please sign in to comment.