forked from talister/photometrypipeline
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmytelescopes.py
95 lines (79 loc) · 3.45 KB
/
mytelescopes.py
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
"""
Personal Photometry Pipeline Configuation File
2016-11-01, [email protected]
"""
# Photometry Pipeline
# Copyright (C) 2016-2018 Michael Mommert, [email protected]
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see
# <http://www.gnu.org/licenses/>.
# telescope/instrument configurations
# SCHMIDT setup parameters
schmidt_param = {
'telescope_instrument': 'Schmidt/FLI', # telescope/instrument name
'telescope_keyword': 'SCHMIDT', # telescope/instrument keyword
'observatory_code': '071', # MPC observatory code
'secpix': (1.08, 1.08), # pixel size (arcsec) before binning
# image orientation preferences
'flipx': False,
'flipy': False,
'rotate': 0,
# instrument-specific FITS header keywords
'binning': ('XBINNING', 'YBINNING'), # binning in x/y
'extent': ('NAXIS1', 'NAXIS2'), # N_pixels in x/y
'ra': 'RA', # telescope pointing, RA
'dec': 'DEC', # telescope pointin, Dec
'radec_separator': ' ', # RA/Dec hms separator, use 'XXX'
# if already in degrees
'date_keyword': 'DATE-OBS', # obs date/time
# keyword; use
# 'date|time' if
# separate
'obsmidtime_jd': 'MJD-OBS', # obs midtime jd keyword
# (usually provided by
# pp_prepare
'object': 'OBJECT', # object name keyword
'filter': 'FILTER', # filter keyword
'filter_translations': {'R': 'R'},
# filtername translation dictionary
'exptime': 'EXPTIME', # exposure time keyword (s)
'airmass': 'AIRMASS', # airmass keyword
# source extractor settings
'source_minarea': 12, # default sextractor source minimum N_pixels
'source_snr': 3, # default sextractor source snr for registration
'aprad_default': 5, # default aperture radius in px
'aprad_range': [2, 10], # [minimum, maximum] aperture radius (px)
'sex-config-file': rootpath + '/setup/schmidt.sex',
'mask_file': {},
# mask files as a function of x,y binning
# scamp settings
'scamp-config-file': rootpath + '/setup/schmidt.scamp',
'reg_max_mag': 19,
'reg_search_radius': 0.5, # deg
'source_tolerance': 'high',
# swarp settings
'copy_keywords': ('OBSERVAT,INSTRUME,EXPTIME,OBJECT,' +
'DATE-OBS,TEL_KEYW'),
# keywords to be copied in image
# combination using swarp
'swarp-config-file': rootpath+'/setup/schmidt.swarp',
# default catalog settings
'astrometry_catalogs': ['GAIA'],
'photometry_catalogs': ['SDSS-R9', 'APASS9', 'PANSTARRS']
}
# add telescope configurations to 'official' telescopes.py
implemented_telescopes.append('SCHMIDT')
# translate INSTRUME (or others, see _pp_conf.py) header keyword into
# PP telescope keyword
# example: INSTRUME keyword in header is 'mytel'
instrument_identifiers['FLI'] = 'SCHMIDT'
# translate telescope keyword into parameter set defined here
telescope_parameters['SCHMIDT'] = schmidt_param