From a035c5996be350af33f3e21deeb0d34d8a918273 Mon Sep 17 00:00:00 2001 From: Matthew Craig Date: Tue, 29 Apr 2014 09:54:23 -0500 Subject: [PATCH] Remove Keyword synonyms, add copy --- ccdproc_api.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ccdproc_api.py b/ccdproc_api.py index 7d09ab9..382f08a 100644 --- a/ccdproc_api.py +++ b/ccdproc_api.py @@ -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, @@ -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,