![]() |
COMPASS
5.4.4
End-to-end AO simulation tool using GPU acceleration
|
this class provides the wfs_sh features to COMPASS More...
#include <sutra_wfs_sh.h>
Public Member Functions | |
SutraWfsSH (CarmaContext *context, SutraTelescope *d_tel, CarmaObj< cuFloatComplex > *d_camplipup, CarmaObj< cuFloatComplex > *d_camplifoc, CarmaObj< cuFloatComplex > *d_fttotim, long nxsub, long nvalid, long npix, long nphase, long nrebin, long nfft, long ntot, long npup, float pdiam, float nphotons, float nphot4imat, int lgs, bool fakecam, int max_flux_per_pix, int max_pix_value, bool is_low_order, bool roket, int device) | |
SutraWfsSH (const SutraWfsSH &wfs) | |
~SutraWfsSH () | |
int | define_mpi_rank (int rank, int size) |
int | allocate_buffers (map< vector< int >, cufftHandle * > campli_plans, map< vector< int >, cufftHandle * > fttotim_plans) |
int | load_arrays (int *phasemap, int *hrmap, int *binmap, float *offsets, float *fluxPerSub, int *validsubsx, int *validsubsy, int *istart, int *jstart, float *ttprojmat, cuFloatComplex *kernel) |
int | fill_binimage (int async) |
int | comp_image (bool noise=true) |
int | comp_nphot (float ittime, float optthroughput, float diam, int nxsub, float zerop=0, float gsmag=0, float lgsreturnperwatt=0, float laserpower=0) |
int | set_bincube (float *bincube, int nElem) |
int | set_field_stop (map< vector< int >, cufftHandle * > campli_plans, float *field_stop, int N) |
![]() | |
virtual | ~SutraWfs () |
int | wfs_initgs (CarmaObj< float > *d_lgskern, CarmaObj< cuFloatComplex > *d_ftlgskern, map< vector< int >, cufftHandle * > ftlgskern_plans, float xpos, float ypos, float lambda, float mag, float zerop, long size, float noise, long seed, float G, float thetaML, float dx, float dy) |
int | set_pupil (float *pupil) |
int | set_binimg (float *binimg, int nElem) |
int | set_dark (float *dark, int nElem) |
int | set_flat (float *flat, int nElem) |
int | set_fakecam (bool fakecam) |
int | set_max_flux_per_pix (int max_flux_per_pix) |
int | set_max_pix_value (int max_pix_value) |
int | load_kernels (float *lgskern) |
int | sensor_trace (SutraAtmos *yatmos) |
int | sensor_trace (SutraDms *ydm, int rst) |
int | sensor_trace (SutraAtmos *atmos, SutraDms *ydms) |
int | sensor_trace (int rst) |
int | slopes_geom (float *slopes, int type=0) |
int | slopes_geom (int type=0) |
int | set_noise (float noise, long seed) |
Additional Inherited Members | |
![]() | |
SutraWfs (CarmaContext *context, SutraTelescope *d_tel, CarmaObj< cuFloatComplex > *d_camplipup, CarmaObj< cuFloatComplex > *d_camplifoc, CarmaObj< cuFloatComplex > *d_fttotim, string type, long nxsub, long nvalid, long npix, long nphase, long nrebin, long nfft, long ntot, long npup, float pdiam, float nphotons, float nphot4imat, int lgs, bool fakecam, int max_flux_per_pix, int max_pix_value, bool is_low_order, bool roket, int device) | |
this class provides the wfs_sh features to COMPASS
Definition at line 29 of file sutra_wfs_sh.h.
SutraWfsSH::SutraWfsSH | ( | CarmaContext * | context, |
SutraTelescope * | d_tel, | ||
CarmaObj< cuFloatComplex > * | d_camplipup, | ||
CarmaObj< cuFloatComplex > * | d_camplifoc, | ||
CarmaObj< cuFloatComplex > * | d_fttotim, | ||
long | nxsub, | ||
long | nvalid, | ||
long | npix, | ||
long | nphase, | ||
long | nrebin, | ||
long | nfft, | ||
long | ntot, | ||
long | npup, | ||
float | pdiam, | ||
float | nphotons, | ||
float | nphot4imat, | ||
int | lgs, | ||
bool | fakecam, | ||
int | max_flux_per_pix, | ||
int | max_pix_value, | ||
bool | is_low_order, | ||
bool | roket, | ||
int | device | ||
) |
SutraWfsSH::SutraWfsSH | ( | const SutraWfsSH & | wfs | ) |
SutraWfsSH::~SutraWfsSH | ( | ) |
|
virtual |
Implements SutraWfs.
|
virtual |
Implements SutraWfs.
int SutraWfsSH::comp_nphot | ( | float | ittime, |
float | optthroughput, | ||
float | diam, | ||
int | nxsub, | ||
float | zerop = 0 , |
||
float | gsmag = 0 , |
||
float | lgsreturnperwatt = 0 , |
||
float | laserpower = 0 |
||
) |
|
virtual |
Implements SutraWfs.
|
virtual |
Implements SutraWfs.
int SutraWfsSH::load_arrays | ( | int * | phasemap, |
int * | hrmap, | ||
int * | binmap, | ||
float * | offsets, | ||
float * | fluxPerSub, | ||
int * | validsubsx, | ||
int * | validsubsy, | ||
int * | istart, | ||
int * | jstart, | ||
float * | ttprojmat, | ||
cuFloatComplex * | kernel | ||
) |
int SutraWfsSH::set_bincube | ( | float * | bincube, |
int | nElem | ||
) |
int SutraWfsSH::set_field_stop | ( | map< vector< int >, cufftHandle * > | campli_plans, |
float * | field_stop, | ||
int | N | ||
) |
CarmaObj<int>* SutraWfsSH::d_binmap |
Definition at line 32 of file sutra_wfs_sh.h.
CarmaObj<cuFloatComplex>* SutraWfsSH::d_fsamplifoc |
Definition at line 36 of file sutra_wfs_sh.h.
CarmaObj<cuFloatComplex>* SutraWfsSH::d_fsamplipup |
Definition at line 35 of file sutra_wfs_sh.h.
CarmaObj<int>* SutraWfsSH::d_validpuppixx |
Definition at line 33 of file sutra_wfs_sh.h.
CarmaObj<int>* SutraWfsSH::d_validpuppixy |
Definition at line 34 of file sutra_wfs_sh.h.
cufftHandle* SutraWfsSH::fsampli_plan |
Definition at line 37 of file sutra_wfs_sh.h.