Coverage for python/lsst/sims/GalSimInterface/galSimCelestialObject.py : 79%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
""" This is a class meant to carry around all of the data required by the GalSimInterpreter to draw an image of a single object. The idea is that all of the drawing functions in the GalSimInterpreter will just take a GalSimCelestialObject as an argument, rather than taking a bunch of different arguments, one for each datum. """
halfLightRadius, minorAxis, majorAxis, positionAngle, sindex, sed, bp_dict, photParams, npoints, fits_image_file, pixel_scale, rotation_angle, gamma1=0, gamma2=0, kappa=0, uniqueId=None): """ @param [in] galSimType is a string, either 'pointSource', 'sersic', 'RandomWalk', or 'FitsImage' denoting the shape of the object
@param [in] xPupil is the x pupil coordinate of the object in radians
@param [in] yPupil is the y pupil coordinate of the object in radians
@param [in] halfLightRadius is the halfLightRadius of the object in radians
@param [in] minorAxis is the semi-minor axis of the object in radians
@param [in] majorAxis is the semi-major axis of the object in radians
@param [in] positionAngle is the position angle of the object in radians
@param [in] sindex is the sersic index of the object
@param [in] sed is an instantiation of lsst.sims.photUtils.Sed representing the SED of the object (with all normalization, dust extinction, redshifting, etc. applied)
@param [in] bp_dict is an instantiation of lsst.sims.photUtils.BandpassDict representing the bandpasses of this telescope
@param [in] photParams is an instantioation of lsst.sims.photUtils.PhotometricParameters representing the physical parameters of the telescope that inform simulated photometry
Together, sed, bp_dict, and photParams will be used to create a dict that maps bandpass name to electron counts for this celestial object.
@param [in] npoints is the number of point sources in a RandomWalk
@param [in] fits_image_file is the filename for the FitsImage
@param [in] pixel_scale is the pixel size in arcsec of the FitsImage
@param [in] rotation_angle is the rotation angle in degrees for the FitsImage
@param [in] gamma1 is the real part of the WL shear parameter
@param [in] gamma2 is the imaginary part of the WL shear parameter
@param [in] kappa is the WL convergence parameter
@param [in] uniqueId is an int storing a unique identifier for this object """ # The galsim.lens(...) function wants to be passed reduced # shears and magnification, so convert the WL parameters as # defined in phosim instance catalogs to these values. See # https://github.com/GalSim-developers/GalSim/blob/releases/1.4/doc/GalSim_Quick_Reference.pdf # and Hoekstra, 2013, http://lanl.arxiv.org/abs/1312.5981
def sed(self):
def uniqueId(self):
def uniqueId(self, value): raise RuntimeError("You should not be setting the unique id on the fly; " \ + "just instantiate a new GalSimCelestialObject")
def galSimType(self):
def galSimType(self, value): raise RuntimeError("You should not be setting galSimType on the fly; " \ + "just instantiate a new GalSimCelestialObject")
def xPupilRadians(self):
def xPupilRadians(self, value): raise RuntimeError("You should not be setting xPupilRadians on the fly; " \ + "just instantiate a new GalSimCelestialObject")
def xPupilArcsec(self):
def xPupilArcsec(self, value): raise RuntimeError("You should not be setting xPupilArcsec on the fly; " \ + "just instantiate a new GalSimCelestialObject")
def yPupilRadians(self):
def yPupilRadians(self, value): raise RuntimeError("You should not be setting yPupilRadians on the fly; " \ + "just instantiate a new GalSimCelestialObject")
def yPupilArcsec(self):
def yPupilArcsec(self, value): raise RuntimeError("You should not be setting yPupilArcsec on the fly; " \ + "just instantiate a new GalSimCelestialObject")
def halfLightRadiusRadians(self): return self._halfLightRadiusRadians
def halfLightRadiusRadians(self, value): raise RuntimeError("You should not be setting halfLightRadiusRadians on the fly; " \ + "just instantiate a new GalSimCelestialObject")
def halfLightRadiusArcsec(self):
def halfLightRadiusArcsec(self, value): raise RuntimeError("You should not be setting halfLightRadiusArcsec on the fly; " \ + "just instantiate a new GalSimCelestialObject")
def minorAxisRadians(self):
def minorAxisRadians(self, value): raise RuntimeError("You should not be setting minorAxisRadians on the fly; " \ + "just instantiate a new GalSimCelestialObject")
def majorAxisRadians(self):
def majorAxisRadians(self, value): raise RuntimeError("You should not be setting majorAxisRadians on the fly; " \ + "just instantiate a new GalSimCelestialObject")
def positionAngleRadians(self):
def positionAngleRadians(self, value): raise RuntimeError("You should not be setting positionAngleRadians on the fly; " \ + "just instantiate a new GalSimCelestialObject")
def sindex(self):
def sindex(self, value): raise RuntimeError("You should not be setting sindex on the fly; " \ + "just instantiate a new GalSimCelestialObject")
def npoints(self):
def npoints(self, value): raise RuntimeError("You should not be setting npoints on the fly; " \ + "just instantiate a new GalSimCelestialObject")
def fits_image_file(self): return self._fits_image_file
def fits_image_file(self, value): raise RuntimeError("You should not be setting fits_image_file on the fly; " "just instantiate a new GalSimCelestialObject")
def pixel_scale(self): return self._pixel_scale
def pixel_scale(self, value): raise RuntimeError("You should not be setting pixel_scale on the fly; " "just instantiate a new GalSimCelestialObject")
def rotation_angle(self): return self._rotation_angle
def rotation_angle(self, value): raise RuntimeError("You should not be setting rotation_angle on the fly; " "just instantiate a new GalSimCelestialObject")
def g1(self):
def g1(self, value): raise RuntimeError("You should not be setting g1 on the fly; " \ + "just instantiate a new GalSimCelestialObject")
def g2(self):
def g2(self, value): raise RuntimeError("You should not be setting g2 on the fly; " \ + "just instantiate a new GalSimCelestialObject")
def mu(self):
def mu(self, value): raise RuntimeError("You should not be setting mu on the fly; " \ + "just instantiate a new GalSimCelestialObject")
""" @param [in] band is the name of a bandpass
@param [out] the ADU in that bandpass, as stored in self._fluxDict """ raise RuntimeError("Asked GalSimCelestialObject for flux in %s; that band does not exist" % band)
|