Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions ccdproc_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@
# and metadata
hdu = ccddata.to_hdu()

# CCDData has a copy method for convenience:
ccddata_copy = ccddata.copy()

'''
Keyword is an object that represents a key, value pair for use in passing
data between functions in ``ccdproc``. The value is an astropy.units.Quantity,
Expand Down Expand Up @@ -257,12 +260,11 @@
# in the second case the exposure time will be extracted from the
# metadata for each image.
masterdark = ccdproc.CCDData(np.zeros(100, 100))
masterdark.meta['exptime'] = 30.0
masterdark.meta['exposure'] = 30.0
ccddata.meta['EXPOSURE'] = 15.0

exposure_time_key = ccdproc.Keyword('exposure',
unit=u.sec,
synonyms=['exptime'])
unit=u.sec)

# explicitly specify exposure times
ccddata = ccdproc.subtract_dark(ccddata, masterdark,
Expand Down