Slicer¶
-
class
mpdaf.MUSE.
Slicer
[source]¶ Bases:
object
Convert slice number between the various numbering schemes.
The definition of the various numbering schemes and the conversion table can be found in the “Global Positioning System” document (VLT-TRE-MUSE-14670-0657).
All the methods are static and thus there is no need to instanciate an object to use this class.
Examples
Convert slice number 4 in CCD numbering to SKY numbering :
>>> print(Slicer.ccd2sky(4)) 10
>>> print(Slicer.sky2ccd(10)) 4
Convert slice number 12 of stack 3 in OPTICAL numbering to SKY numbering:
>>> print(Slicer.optical2sky((2, 12))) 25
>>> print(Slicer.sky2optical(25)) (2, 12)
Convert slice number 12 of stack 3 in OPTICAL numbering to CCD numbering:
>>> print(Slicer.optical2ccd((2, 12))) 27
>>> print(Slicer.ccd2optical(27)) (2, 12)
Methods Summary
ccd2optical
(s)Convert a slice number from CCD to OPTICAL numbering scheme. ccd2sky
(s)Convert a slice number from CCD to SKY numbering scheme. optical2ccd
(s)Convert a slice number from OPTICAL to CCD numbering scheme. optical2sky
(s)Convert a slice number from OPTICAL to SKY numbering scheme. sky2ccd
(s)Convert a slice number from SKY to CCD numbering scheme. sky2optical
(s)Convert a slice number from SKY to OPTICAL numbering scheme. Methods Documentation
-
static
ccd2optical
(s)[source]¶ Convert a slice number from CCD to OPTICAL numbering scheme.
Return None if the input slice number is invalid.
Parameters: s (int) – slice number in CCD numbering scheme
-
static
ccd2sky
(s)[source]¶ Convert a slice number from CCD to SKY numbering scheme.
Return None if the input slice number is invalid.
Parameters: s (int) – slice number in CCD numbering scheme
-
static
optical2ccd
(s)[source]¶ Convert a slice number from OPTICAL to CCD numbering scheme.
Return None if the input slice number is invalid.
Parameters: s (tuple of ints) – slice number in OPTICAL numbering scheme
-
static
optical2sky
(s)[source]¶ Convert a slice number from OPTICAL to SKY numbering scheme.
Return None if the input slice number is invalid.
Parameters: s (tuple of ints) – slice number in OPTICAL numbering scheme
-
static