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

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

from lsst.obs.cfht.ingest import MegacamParseTask 

 

config.parse.retarget(MegacamParseTask) 

config.parse.hdu = 1 # PHU 

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

'object': 'OBJECT', 

'visit': 'EXPNUM', 

'date': 'DATE-OBS', 

'expTime': 'EXPTIME', 

} 

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

'ccd': 'translate_ccd', 

'filter': 'translate_filter', 

'defects': 'translate_defects', 

} 

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

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

'object': 'text', 

'visit': 'int', 

'ccd': 'int', 

'extension': 'int', 

'state': 'text', 

'filter': 'text', 

'date': 'text', 

'taiObs': 'text', 

'expTime': 'double', 

'defects': 'text', 

} 

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

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