<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Determine the basic properties of this target.
The Target class handles the properties of the star, and (if relevant) the planet or periodic signal associated with that star. I've
Step1:  Determine the basic properties of this instrument.
Classes derived from the Instrument class handle all instrument-specific information, including
- the reduction of CCD frames
- the extraction of key information from headers
- the mapping of reference positions to apertures
- ...
Step2:  Determine the basic properties of this night, including a nightly observing log.
This creates a summary observing log that contains all the files from that night. This can be useful for identifying which exposures should be used for various calibration and analysis steps.
Step3:  Determine the basic properties of this observation, including the data associated with it.
-identify data associated with this observation
Step4:  -
-calculate auxiliary information (e.g. barycentric correction)
-create master calibration data relevant to this observation
-identify likely cosmic rays in this image
-define reference positions from which spectra should be extracted
-identify relevant pixels, define extraction apertures
-extract spectra, and visualize the process
<ASSISTANT_TASK:>
Python Code:
from mosasaurus.Target import Target
# load a target from SIMBAD
t = Target(starname='GJ1132', name='GJ1132b')
t.summarize()
t.star.summarize()
# create a target from values (in case you want to work offline)
import astropy.units as u
t = Target(starname='GJ1132', name='GJ1132b', 
            ra=153.71622708*u.deg, dec=-47.15684639*u.deg,
            pmra=-1046., pmdec=416., epoch=2000.0)
t.summarize()
t.star.summarize()
Explanation: Determine the basic properties of this target.
The Target class handles the properties of the star, and (if relevant) the planet or periodic signal associated with that star. I've
End of explanation
from mosasaurus.instruments import LDSS3C
i = LDSS3C(grism='vph-red')
i.summarize()
i.keysforlogheader
Explanation: Determine the basic properties of this instrument.
Classes derived from the Instrument class handle all instrument-specific information, including
- the reduction of CCD frames
- the extraction of key information from headers
- the mapping of reference positions to apertures
- ...
End of explanation
from mosasaurus.Night import Night
n = Night('ut160227_28', instrument=i)
n.createNightlyLog(remake=False)
n.summarize()
Explanation: Determine the basic properties of this night, including a nightly observing log.
This creates a summary observing log that contains all the files from that night. This can be useful for identifying which exposures should be used for various calibration and analysis steps.
End of explanation
from mosasaurus.Observation import Observation
o = Observation(t, i, n)
o.summarize()
o.loadHeaders()
Explanation: Determine the basic properties of this observation, including the data associated with it.
-identify data associated with this observation
End of explanation
col = n.log['object']
col.
Explanation: -
-calculate auxiliary information (e.g. barycentric correction)
-create master calibration data relevant to this observation
-identify likely cosmic rays in this image
-define reference positions from which spectra should be extracted
-identify relevant pixels, define extraction apertures
-extract spectra, and visualize the process
End of explanation
<END_TASK>