lsst.afw
13.0-92-g8ecf155+1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
python
lsst
afw
image
mask
maskContinued.py
Go to the documentation of this file.
1
#
2
# LSST Data Management System
3
# Copyright 2008-2017 LSST/AURA.
4
#
5
# This product includes software developed by the
6
# LSST Project (http://www.lsst.org/).
7
#
8
# This program is free software: you can redistribute it and/or modify
9
# it under the terms of the GNU General Public License as published by
10
# the Free Software Foundation, either version 3 of the License, or
11
# (at your option) any later version.
12
#
13
# This program is distributed in the hope that it will be useful,
14
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
# GNU General Public License for more details.
17
#
18
# You should have received a copy of the LSST License Statement and
19
# the GNU General Public License along with this program. If not,
20
# see <http://www.lsstcorp.org/LegalNotices/>.
21
#
22
23
from
__future__
import
absolute_import, division, print_function
24
25
__all__ = [
"Mask"
,
"MaskPixel"
]
26
27
from
future.utils
import
with_metaclass
28
import
numpy
as
np
29
30
from
lsst.utils
import
TemplateMeta
31
from
.mask
import
MaskX
32
from
..slicing
import
supportSlicing
33
34
supportSlicing
(MaskX)
35
36
MaskPixel = np.int32
37
38
39
class
Mask
(with_metaclass(TemplateMeta, object)):
40
TEMPLATE_PARAMS = (
"dtype"
,)
41
TEMPLATE_DEFAULTS = (MaskPixel,)
42
43
def
__reduce__
(self):
44
from
lsst.afw.fits
import
reduceToFits
45
return
reduceToFits
(self)
46
47
48
Mask.register(MaskPixel, MaskX)
49
Mask.alias(
"X"
, MaskX)
50
51
for
cls
in
(MaskX, ):
52
supportSlicing
(cls)
lsst::afw::image.slicing.supportSlicing
def supportSlicing
Definition:
slicing.py:93
lsst::afw::fits.pickleFits.reduceToFits
def reduceToFits
Definition:
pickleFits.py:6
lsst::afw::image.mask.maskContinued.Mask
Definition:
maskContinued.py:39
lsst::afw::fits
Definition:
fits.h:28
lsst::afw::image.mask.maskContinued.Mask.__reduce__
def __reduce__
Definition:
maskContinued.py:43
Generated on Fri Aug 18 2017 09:33:39 for lsst.afw by
1.8.5