Skip to content

Commit

Permalink
Update CaliFlux.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wang1hm committed Mar 13, 2023
1 parent 64307b2 commit 689d7ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lamostabs/CaliFlux.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,10 @@ def Together(mag,mag_err,z,photometry,name):
flux_bin_i = f_fl(lam_bin_i)
#flux_bin_z = f_fl(lam_bin_z)

SumFlux_g = np.sum(RC_g_bin*flux_bin_g)/np.sum(RC_g_bin)
SumFlux_r = np.sum(RC_r_bin*flux_bin_r)/np.sum(RC_r_bin)
SumFlux_i = np.sum(RC_i_bin*flux_bin_i)/np.sum(RC_i_bin)
#SumFlux_z = np.sum(RC_z_bin*flux_bin_z)/np.sum(RC_z_bin)
SumFlux_g = np.sum(RC_g_bin*flux_bin_g*lam_bin_g)/np.sum(RC_g_bin*lam_bin_g)
SumFlux_r = np.sum(RC_r_bin*flux_bin_r*lam_bin_r)/np.sum(RC_r_bin*lam_bin_r)
SumFlux_i = np.sum(RC_i_bin*flux_bin_i*lam_bin_i)/np.sum(RC_i_bin*lam_bin_i)
#SumFlux_z = np.sum(RC_z_bin*flux_bin_z*lam_bin_z)/np.sum(RC_z_bin*lam_bin_z)

#calculate the flux and error from mag to draw the cali_point
#arr_f1 = np.zeros(4)
Expand Down

0 comments on commit 689d7ef

Please sign in to comment.