LSST Applications  21.0.0-172-gfb10e10a+18fedfabac,22.0.0+297cba6710,22.0.0+80564b0ff1,22.0.0+8d77f4f51a,22.0.0+a28f4c53b1,22.0.0+dcf3732eb2,22.0.1-1-g7d6de66+2a20fdde0d,22.0.1-1-g8e32f31+297cba6710,22.0.1-1-geca5380+7fa3b7d9b6,22.0.1-12-g44dc1dc+2a20fdde0d,22.0.1-15-g6a90155+515f58c32b,22.0.1-16-g9282f48+790f5f2caa,22.0.1-2-g92698f7+dcf3732eb2,22.0.1-2-ga9b0f51+7fa3b7d9b6,22.0.1-2-gd1925c9+bf4f0e694f,22.0.1-24-g1ad7a390+a9625a72a8,22.0.1-25-g5bf6245+3ad8ecd50b,22.0.1-25-gb120d7b+8b5510f75f,22.0.1-27-g97737f7+2a20fdde0d,22.0.1-32-gf62ce7b1+aa4237961e,22.0.1-4-g0b3f228+2a20fdde0d,22.0.1-4-g243d05b+871c1b8305,22.0.1-4-g3a563be+32dcf1063f,22.0.1-4-g44f2e3d+9e4ab0f4fa,22.0.1-42-gca6935d93+ba5e5ca3eb,22.0.1-5-g15c806e+85460ae5f3,22.0.1-5-g58711c4+611d128589,22.0.1-5-g75bb458+99c117b92f,22.0.1-6-g1c63a23+7fa3b7d9b6,22.0.1-6-g50866e6+84ff5a128b,22.0.1-6-g8d3140d+720564cf76,22.0.1-6-gd805d02+cc5644f571,22.0.1-8-ge5750ce+85460ae5f3,master-g6e05de7fdc+babf819c66,master-g99da0e417a+8d77f4f51a,w.2021.48
LSST Data Management Base Package
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
lsst.ip.isr.isrMock.FringeDataRefMock Class Reference
Inheritance diagram for lsst.ip.isr.isrMock.FringeDataRefMock:

Public Member Functions

def __init__ (self, **kwargs)
 
def get (self, dataType, **kwargs)
 
def put (self, exposure, filename)
 

Public Attributes

 config
 

Static Public Attributes

string dataId = "isrMock Fake Data"
 
int darkval = 2.
 
int oscan = 250.
 
int gradient = .10
 
int exptime = 15
 
int darkexptime = 40.
 

Detailed Description

Simulated gen2 butler data ref.

Currently only supports get and put operations, which are most
likely to be called for data in ISR processing.

Definition at line 1031 of file isrMock.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.ip.isr.isrMock.FringeDataRefMock.__init__ (   self,
**  kwargs 
)

Definition at line 1045 of file isrMock.py.

1045  def __init__(self, **kwargs):
1046  if 'config' in kwargs.keys():
1047  self.config = kwargs['config']
1048  else:
1049  self.config = IsrMockConfig()
1050  self.config.isTrimmed = True
1051  self.config.doAddFringe = True
1052  self.config.readNoise = 10.0
1053 

Member Function Documentation

◆ get()

def lsst.ip.isr.isrMock.FringeDataRefMock.get (   self,
  dataType,
**  kwargs 
)
Return an appropriate data product.

Parameters
----------
dataType : `str`
    Type of data product to return.

Returns
-------
mock : IsrMock.run() result
    The output product.

Definition at line 1054 of file isrMock.py.

1054  def get(self, dataType, **kwargs):
1055  """Return an appropriate data product.
1056 
1057  Parameters
1058  ----------
1059  dataType : `str`
1060  Type of data product to return.
1061 
1062  Returns
1063  -------
1064  mock : IsrMock.run() result
1065  The output product.
1066  """
1067  if "_filename" in dataType:
1068  return tempfile.mktemp(), "mock"
1069  elif 'transmission_' in dataType:
1070  return TransmissionMock(config=self.config).run()
1071  elif dataType == 'ccdExposureId':
1072  return 20090913
1073  elif dataType == 'camera':
1074  return IsrMock(config=self.config).getCamera()
1075  elif dataType == 'raw':
1076  return CalibratedRawMock(config=self.config).run()
1077  elif dataType == 'bias':
1078  return BiasMock(config=self.config).run()
1079  elif dataType == 'dark':
1080  return DarkMock(config=self.config).run()
1081  elif dataType == 'flat':
1082  return FlatMock(config=self.config).run()
1083  elif dataType == 'fringe':
1084  fringes = []
1085  configCopy = copy.deepcopy(self.config)
1086  for scale, x, y in zip(self.config.fringeScale, self.config.fringeX0, self.config.fringeY0):
1087  configCopy.fringeScale = [1.0]
1088  configCopy.fringeX0 = [x]
1089  configCopy.fringeY0 = [y]
1090  fringes.append(FringeMock(config=configCopy).run())
1091  return fringes
1092  elif dataType == 'defects':
1093  return DefectMock(config=self.config).run()
1094  elif dataType == 'bfKernel':
1095  return BfKernelMock(config=self.config).run()
1096  elif dataType == 'linearizer':
1097  return None
1098  elif dataType == 'crosstalkSources':
1099  return None
1100  else:
1101  return None
1102 
def run(self, coaddExposures, bbox, wcs)
Definition: getTemplate.py:603

◆ put()

def lsst.ip.isr.isrMock.FringeDataRefMock.put (   self,
  exposure,
  filename 
)
Write an exposure to a FITS file.

Parameters
----------
exposure : `lsst.afw.image.Exposure`
    Image data to write out.
filename : `str`
    Base name of the output file.

Definition at line 1103 of file isrMock.py.

1103  def put(self, exposure, filename):
1104  """Write an exposure to a FITS file.
1105 
1106  Parameters
1107  ----------
1108  exposure : `lsst.afw.image.Exposure`
1109  Image data to write out.
1110  filename : `str`
1111  Base name of the output file.
1112  """
1113  exposure.writeFits(filename+".fits")

Member Data Documentation

◆ config

lsst.ip.isr.isrMock.FringeDataRefMock.config

Definition at line 1047 of file isrMock.py.

◆ darkexptime

int lsst.ip.isr.isrMock.FringeDataRefMock.darkexptime = 40.
static

Definition at line 1043 of file isrMock.py.

◆ darkval

int lsst.ip.isr.isrMock.FringeDataRefMock.darkval = 2.
static

Definition at line 1039 of file isrMock.py.

◆ dataId

string lsst.ip.isr.isrMock.FringeDataRefMock.dataId = "isrMock Fake Data"
static

Definition at line 1038 of file isrMock.py.

◆ exptime

int lsst.ip.isr.isrMock.FringeDataRefMock.exptime = 15
static

Definition at line 1042 of file isrMock.py.

◆ gradient

int lsst.ip.isr.isrMock.FringeDataRefMock.gradient = .10
static

Definition at line 1041 of file isrMock.py.

◆ oscan

int lsst.ip.isr.isrMock.FringeDataRefMock.oscan = 250.
static

Definition at line 1040 of file isrMock.py.


The documentation for this class was generated from the following file: