COMPASS  5.4.4
End-to-end AO simulation tool using GPU acceleration
sutraWrap.Target Class Reference
Collaboration diagram for sutraWrap.Target:

Public Member Functions

None __init__ (self, carmaWrap.context context, Telescope d_tel, int ntargets, numpy.ndarray[numpy.float32] xpos, numpy.ndarray[numpy.float32] ypos, numpy.ndarray[numpy.float32] lambda_um, numpy.ndarray[numpy.float32] mag, float zerop, numpy.ndarray[numpy.int64] sizes, int Npts, int device)
 Create and initialise an target object. More...
 
str __str__ (self)
 

Properties

 d_targets = property
 Vector of targets. More...
 
 ntargets = property
 Number of targets. More...
 

Detailed Description

Definition at line 8636 of file sutraWrap.py.

Constructor & Destructor Documentation

◆ __init__()

None sutraWrap.Target.__init__ (   self,
carmaWrap.context  context,
Telescope  d_tel,
int  ntargets,
numpy.ndarray[numpy.float32]  xpos,
numpy.ndarray[numpy.float32]  ypos,
numpy.ndarray[numpy.float32]  lambda_um,
numpy.ndarray[numpy.float32]  mag,
float  zerop,
numpy.ndarray[numpy.int64]  sizes,
int  Npts,
int  device 
)

Create and initialise an target object.

Parameters
context(CarmaContext) : current carma context
d_tel(SutraTelescope) : SutraTelescope object
ntargets(int): number of targets
xpos(np.ndarray[ndim=1,dtype=np.float32_t]) : X positions of each target in arcsec
ypos(np.ndarray[ndim=1,dtype=np.float32_t]) : Y positions of each target in arcsec
lambda_um(np.ndarray[ndim=1,dtype=np.float32_t]) : Wavelength of each target in µm
mag(np.ndarray[ndim=1,dtype=np.float32_t]) : magnitude of each target
zerop(float) : Flux at magnitude 0 in photons/m²/s
sizes(np.ndarray[ndim=1,dtype=np.int64_t]) : Support size of each target
Npts(int): number of points in the pupil
device(int): GPU device index

Definition at line 8664 of file sutraWrap.py.

Member Function Documentation

◆ __str__()

str sutraWrap.Target.__str__ (   self)

Definition at line 8665 of file sutraWrap.py.

Property Documentation

◆ d_targets

sutraWrap.Target.d_targets = property
static

Vector of targets.

   @n type of :  typing.List[Source]

Definition at line 8672 of file sutraWrap.py.

◆ ntargets

sutraWrap.Target.ntargets = property
static

Number of targets.

   @n type of :  int

Definition at line 8681 of file sutraWrap.py.


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