-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathget_ccds_with_psf.py
More file actions
executable file
·59 lines (38 loc) · 977 Bytes
/
get_ccds_with_psf.py
File metadata and controls
executable file
·59 lines (38 loc) · 977 Bytes
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
#!/usr/bin/env python3
"""GET_CCDS_WITH_PSF
Obtain list of CCDs (single-exposure single-HDU files) for which valid PSF information
is available. This can serve to create a footprint coverage mask.
Author: Martin Kilbinger <martin.kilbinger@cea.fr>
"""
import sys
from shapepipe.utilities.ccd_psf_handler import CcdPsfHandler
def run_ccd_psf_handler(args=None):
"""Run CCD PSF Handler.
Create instance and run the CCD PSF handler.
Parameters
----------
args : list, optional
command line arguments
Returns
-------
int
exit code
"""
# Create instance
obj = CcdPsfHandler()
return obj.run(args=args)
def main(argv=None):
"""Main.
Main program.
Parameters
----------
argv : list, optional
command line arguments
Returns
-------
int
exit code
"""
return run_ccd_psf_handler(args=argv)
if __name__ == "__main__":
sys.exit(main(sys.argv))