From 34abe834f0cbfb3252806e862f93c1dd696b53f3 Mon Sep 17 00:00:00 2001 From: Hu1haoZhang <103899953+Hu1haoZhang@users.noreply.github.com> Date: Thu, 13 Jul 2023 17:04:39 -0700 Subject: [PATCH] add build file --- .DS_Store | Bin 0 -> 8196 bytes build/lib/reflected_light_sim/__init__.py | 1 + build/lib/reflected_light_sim/reflectance.py | 85 ++++++++++++++++++ dist/reflected_light_sim-0.1-py3-none-any.whl | Bin 0 -> 3653 bytes dist/reflected_light_sim-0.1.tar.gz | Bin 0 -> 3624 bytes 5 files changed, 86 insertions(+) create mode 100644 .DS_Store create mode 100644 build/lib/reflected_light_sim/__init__.py create mode 100644 build/lib/reflected_light_sim/reflectance.py create mode 100644 dist/reflected_light_sim-0.1-py3-none-any.whl create mode 100644 dist/reflected_light_sim-0.1.tar.gz diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..d7211fc9b21131fab34650c74c69f5cf2bca7399 GIT binary patch literal 8196 zcmeHMO^?z*7=DLEDH1m%t_cTCns~((WYslZSQZYOsE4i5gPKZdWgAP2w1|d~^sN8E zzu?th;(zg^&wQ|fvLu`Mfr&H8%rl*NpPAu#XWG7nh*)dv)`==aWFT`amr$IMct6i8 zDW_Vtfed`29(9pV$Rm5jS~q9~v;tZIt$oP*m=kMC)TLHHE3m2nkKId%)@>Tnho$)4J_@3q6GRRy_@O#L-u)pG zYHL}}Bpxc(S7#XbaZ;;&W4W#Tg^LBFV3drP)=4z6l5R4NTiwxfe)S}Z0%ulwy2jqokyH3cYpl;G=12=u^(w=!J5>c!cv zWVjx=@Nz&t_3?!!K|Mx&@OwttwAc6Q_u%zL?H9d%PR%mA;M)0=hSxl3-=~|;&uLwGL6NC~~CWSO7iyK->{7_jtUImT`|W5zwGEdwtl_)4EL^uu<;W+U04@1;Vm~u{2 UVJZ lambda_start*10.0) & (lam < lambda_end*10.0))[0] + + # Convert + return lam[isub]/10.0,spec[isub] * 10 * 100**2 #nm, phot/m2/s/nm + + def cal_refflux_pl(d_star_earth,host_spec,r_star,r_planet,a_planet, albedo,wvl): + ''' + Calculation about reflected flux from planet + ''' + wvl *= u.nm + ph_energy = ((cons.h * cons.c / (wvl) ) /u.ph).to(u.J / u.ph) + + host_spec_J = (host_spec* u.ph / (u.m**2 * u.s * u.nm) * ph_energy).to(u.J / (u.m**2 * u.s * u.nm)) + + lum_star = host_spec_J * 4 * np.pi * r_star**2 + + # flux of star on planet + flux_sp = lum_star / (4 * np.pi * a_planet**2) + + lum_planet = flux_sp * r_planet**2 * np.pi * albedo + + flux_planet = lum_planet / (4 * np.pi * d_star_earth**2) + + flux_planet_ph = (flux_planet / ph_energy).to(u.ph / (u.m**2 * u.s * u.nm)) + + # Convert + return flux_planet_ph #nm, phot/m2/s/nm + \ No newline at end of file diff --git a/dist/reflected_light_sim-0.1-py3-none-any.whl b/dist/reflected_light_sim-0.1-py3-none-any.whl new file mode 100644 index 0000000000000000000000000000000000000000..313482691e598a7082d0d94ad9aa03b153ffb268 GIT binary patch literal 3653 zcma)l7vun#ew8kcew*Y%^mRV_#|rG4^GwMRt`fw}`TaNY*il%32hL zp)x8v$(}o=HE_k7OxJb!#&&vTyV^Lc;X4+gc5i5~y}umL2Rm#y0Q zatH$S5g$Fo=n>$0&db%A;Oc_&!n?T>aDjMlC=Q4B!4q&e1;4PQG$;xp+efA(rCHZl zVwC!oEf@iqABfhoj7hdk06;zm0C4nQi2t9($;a814o$K2_8mR}-1&g>j~cKIaD9Ui z_F{X_U;wIEPCR}o$y+CrouqI3R2nNTQ#w|?B7#Q|r@2%doBl|pXs(UWB+BiCS;^`} zi>GA?c5H4mkvT13+vD``pit^^xkq`pVO6=7yoleS`-XTEh-YPmv#ia$E6fIU4kGW_ z9DL{Q?e%cLx^RlYPIHtal*F(YA!uQI`C&Slz4C~iVozXe>E?`~%@q%qwN!M*QQa0z z6IRh>RG0q)3`ShoCuahb7k|BGYG^_;??I*yUrj~%F-Gk=$PEW?2Rs-X)Sc|4(a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b?!*Tl6?7uho YucF1Em|4F4$x46ecRj!`=eN=S0N6DQ;s5{u literal 0 HcmV?d00001 diff --git a/dist/reflected_light_sim-0.1.tar.gz b/dist/reflected_light_sim-0.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..4b8f615a42c27f6116dc7fb27376d61000d7a783 GIT binary patch literal 3624 zcmV+@4%hJ?iwFpvj<93`|8iw!Y-M9~Wn^D$X=iA3Uvp_~Eif)IE_7jX0PP)XbK5pD zpZP0r_Vh%#5=A|ocuqH`*h;L{mOPS@G~>D&h=e3Ge3c;Ws5kfDZx^H}N>&oPP1R0~ zox~)8#qMGW>@Gk6GAc&pKUehQIiofUpZy_VCh)1NY1ZrOdrYsIwQBVl`S@%P5Q~V0 z!2a3OgxWE2BkrjXqz6hS#W?$F+J3`hVlN(RxOj`|SUVm@laR>nHI5Z8rP+y?^7c zVE=2a`}V)C?EhZue=TSK&AQpD9UG=H{ZHQhU-VA9{ZaR;_5W6*@hSUXGh2!MuY>(R zZa^$pZ5}tF|C{^l|4-EZU-ri2f?LcJOw&&NU>RaFAi7l~HM3SH-}zz@Q$U%r(50TH zUBQ(L!F`W#K^81z(S#(E32FNy{LiiS^K#$nI6}!xfXoUP`++l*~(SnhKQCi}lD4E!dIvV!~ z=B={G9gh}%9FdTTDC8E>C=u>iPHdwLt89n6JmrAJr2>QoL}LLpKsigq^=&@GE0fg< z;;F;MqC{+tq^EHNi2@U)CQDe4iXRfe97h8R9ORaDT}vl%Q1k#58l@@{m~yx9-OZYC zq0QpZ1C~sdv3*dPV(K1dW9Ep>X5(>CBN-z8o>X&OGblN<9D55m-I&D zYB+e?JL{g2gU$$^4@%@+Z+t#@GbVsB?DWU)$>0^~^xu>3d;PN#>Hcsv?2blcFw}aN zR~Nl5r1koz7jMpb{nz9rls0oi`9|7r+ax|iMl*Z{7OM!Ij|fsD>O z7Z=D%>%0N!hbSL89bCO1_FkWl$@$>otP6=RyC7NT#M10Tg_GGwNmp$yv8^0klR~7^}EKHd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