Skip to content

Commit

Permalink
Add new visitInfo fields
Browse files Browse the repository at this point in the history
  • Loading branch information
parejkoj committed Aug 31, 2022
1 parent df9c7e0 commit be1ff98
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions python/lsst/obs/base/makeRawVisitInfoViaObsInfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,16 @@ def observationInfo2visitInfo(obsInfo, log=None):
argDict["instrumentLabel"] = obsInfo.instrument
if obsInfo.focus_z is not None:
argDict["focusZ"] = obsInfo.focus_z.to_value("mm")
if obsInfo.observation_type is not None:
argDict["observationType"] = obsInfo.observation_type
if obsInfo.science_program is not None:
argDict["scienceProgram"] = obsInfo.science_program
if obsInfo.observation_reason is not None:
argDict["observationReason"] = obsInfo.observation_reason
if obsInfo.object is not None:
argDict["object"] = obsInfo.object
if obsInfo.has_simulated_content is not None:
argDict["hasSimulatedContent"] = obsInfo.has_simulated_content

# VisitInfo uses the middle of the observation for the date
if obsInfo.datetime_begin is not None and obsInfo.datetime_end is not None:
Expand Down

0 comments on commit be1ff98

Please sign in to comment.