Skip to content

Commit

Permalink
#120 Merge pull request from deshima-dev/astropenguin/issue107
Browse files Browse the repository at this point in the history
Fix temperature units of weather log
  • Loading branch information
astropenguin authored Jun 20, 2024
2 parents 4ad18b0 + 6de8280 commit ec238f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion demerge/merge/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ def create_dems(
readout_hdul = fits.open(readout_path, mode="readonly")
ddbfits_hdul = fits.open(ddbfits_path, mode="readonly")
weather_table = ascii.read(weather_path)
weather_table["tmperature"] += 273.15
# 最後の1行は終端を表す意味のないデータが入っているため無視する
antenna_table = ascii.read(antenna_path)[:-1]
# 観測スクリプトに含まれているパラメタを抽出する
Expand Down Expand Up @@ -489,7 +490,7 @@ def create_dems(
corresp=corresp,
to=loadtype,
T_room=lower_cabin_temp[0],
T_amb=np.nanmean(weather_table["tmperature"]) + 273.15,
T_amb=np.nanmean(weather_table["tmperature"]),
)

if loadtype == "Tsignal":
Expand Down

0 comments on commit ec238f7

Please sign in to comment.