Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1from lsst.obs.cfht.ingest import MegacamParseTask 

2 

3config.parse.retarget(MegacamParseTask) 

4config.parse.hdu = 1 # PHU 

5config.parse.translation = {'runId': 'RUNID', 

6 'object': 'OBJECT', 

7 'visit': 'EXPNUM', 

8 'date': 'DATE-OBS', 

9 'expTime': 'EXPTIME', 

10 } 

11config.parse.translators = {'taiObs': 'translate_taiObs', 

12 'ccd': 'translate_ccd', 

13 'filter': 'translate_filter', 

14 'defects': 'translate_defects', 

15 } 

16config.parse.extnames = ["ccd%02d" % ccd for ccd in range(36)] 

17config.register.columns = {'runId': 'text', 

18 'object': 'text', 

19 'visit': 'int', 

20 'ccd': 'int', 

21 'extension': 'int', 

22 'state': 'text', 

23 'filter': 'text', 

24 'date': 'text', 

25 'taiObs': 'text', 

26 'expTime': 'double', 

27 'defects': 'text', 

28 } 

29config.register.unique = ['visit', 'ccd'] 

30config.register.visit = ['visit', 'state', 'taiObs', 'date', 'filter']