![]() |
COMPASS
5.4.4
End-to-end AO simulation tool using GPU acceleration
|
this class provides the wfs_pyr_pyrhr features to COMPASS More...
#include <sutra_wfs_pyr_pyrhr.h>
Public Member Functions | |
SutraWfs_PyrHR (CarmaContext *context, SutraTelescope *d_tel, CarmaObj< cuFloatComplex > *d_camplipup, CarmaObj< cuFloatComplex > *d_camplifoc, CarmaObj< cuFloatComplex > *d_fttotim, long nxsub, long nvalid, long npupils, 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 roket, int device) | |
SutraWfs_PyrHR (CarmaContext *context, SutraTelescope *d_tel, CarmaObj< cuFloatComplex > *d_camplipup, CarmaObj< cuFloatComplex > *d_camplifoc, CarmaObj< cuFloatComplex > *d_fttotim, long nxsub, long nvalid, long npupils, 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 roket, int nbdevices, int *devices) | |
~SutraWfs_PyrHR () | |
int | load_arrays (cuFloatComplex *halfxy, float *cx, float *cy, float *weights, float *sincar, float *submask, int *validsubsx, int *validsubsy, int *phasemap, float *fluxPerSub, float *ttprojmat) |
int | set_submask (float *submask) |
int | set_phalfxy (cuFloatComplex *phalfxy) |
int | fill_binimage (int async=0) |
int | comp_image (bool noise=true) |
void | comp_modulation (int cpt) |
int | copy_valid_pix (float *img, int *validx, int *validy, int im_dim) |
int | set_pyr_modulation_points (float *cx, float *cy, int npts) |
int | set_pyr_modulation_points (float *cx, float *cy, float *weights, int npts) |
int | set_pyr_mod_weights (float *weights, int npts) |
int | define_mpi_rank (int rank, int size) |
int | allocate_buffers (map< vector< int >, cufftHandle * > campli_plans, map< vector< int >, cufftHandle * > fttotim_plans) |
int | comp_nphot (float ittime, float optthroughput, float diam, float cobs, float zerop, float gsmag) |
![]() | |
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_pyr_pyrhr features to COMPASS
Definition at line 30 of file sutra_wfs_pyr_pyrhr.h.
SutraWfs_PyrHR::SutraWfs_PyrHR | ( | CarmaContext * | context, |
SutraTelescope * | d_tel, | ||
CarmaObj< cuFloatComplex > * | d_camplipup, | ||
CarmaObj< cuFloatComplex > * | d_camplifoc, | ||
CarmaObj< cuFloatComplex > * | d_fttotim, | ||
long | nxsub, | ||
long | nvalid, | ||
long | npupils, | ||
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 | roket, | ||
int | device | ||
) |
SutraWfs_PyrHR::SutraWfs_PyrHR | ( | CarmaContext * | context, |
SutraTelescope * | d_tel, | ||
CarmaObj< cuFloatComplex > * | d_camplipup, | ||
CarmaObj< cuFloatComplex > * | d_camplifoc, | ||
CarmaObj< cuFloatComplex > * | d_fttotim, | ||
long | nxsub, | ||
long | nvalid, | ||
long | npupils, | ||
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 | roket, | ||
int | nbdevices, | ||
int * | devices | ||
) |
SutraWfs_PyrHR::~SutraWfs_PyrHR | ( | ) |
|
virtual |
Implements SutraWfs.
Definition at line 83 of file sutra_wfs_pyr_pyrhr.h.
|
virtual |
Implements SutraWfs.
void SutraWfs_PyrHR::comp_modulation | ( | int | cpt | ) |
int SutraWfs_PyrHR::comp_nphot | ( | float | ittime, |
float | optthroughput, | ||
float | diam, | ||
float | cobs, | ||
float | zerop, | ||
float | gsmag | ||
) |
int SutraWfs_PyrHR::copy_valid_pix | ( | float * | img, |
int * | validx, | ||
int * | validy, | ||
int | im_dim | ||
) |
|
virtual |
Implements SutraWfs.
Definition at line 82 of file sutra_wfs_pyr_pyrhr.h.
|
virtual |
Implements SutraWfs.
int SutraWfs_PyrHR::load_arrays | ( | cuFloatComplex * | halfxy, |
float * | cx, | ||
float * | cy, | ||
float * | weights, | ||
float * | sincar, | ||
float * | submask, | ||
int * | validsubsx, | ||
int * | validsubsy, | ||
int * | phasemap, | ||
float * | fluxPerSub, | ||
float * | ttprojmat | ||
) |
int SutraWfs_PyrHR::set_phalfxy | ( | cuFloatComplex * | phalfxy | ) |
int SutraWfs_PyrHR::set_pyr_mod_weights | ( | float * | weights, |
int | npts | ||
) |
int SutraWfs_PyrHR::set_pyr_modulation_points | ( | float * | cx, |
float * | cy, | ||
float * | weights, | ||
int | npts | ||
) |
int SutraWfs_PyrHR::set_pyr_modulation_points | ( | float * | cx, |
float * | cy, | ||
int | npts | ||
) |
int SutraWfs_PyrHR::set_submask | ( | float * | submask | ) |
bool SutraWfs_PyrHR::compute_pyrfocalplane |
Definition at line 33 of file sutra_wfs_pyr_pyrhr.h.
CarmaObj<float>* SutraWfs_PyrHR::d_hrimg |
Definition at line 34 of file sutra_wfs_pyr_pyrhr.h.
CarmaObj<float>* SutraWfs_PyrHR::d_modu_gather |
Definition at line 39 of file sutra_wfs_pyr_pyrhr.h.
CarmaObj<cuFloatComplex>* SutraWfs_PyrHR::d_phalfxy |
Definition at line 37 of file sutra_wfs_pyr_pyrhr.h.
CarmaObj<cuFloatComplex>* SutraWfs_PyrHR::d_poffsets |
Definition at line 38 of file sutra_wfs_pyr_pyrhr.h.
CarmaObj<float>* SutraWfs_PyrHR::d_psum |
Definition at line 35 of file sutra_wfs_pyr_pyrhr.h.
CarmaObj<float>* SutraWfs_PyrHR::d_pyrfocalplane |
Definition at line 36 of file sutra_wfs_pyr_pyrhr.h.
long SutraWfs_PyrHR::npupils |
Definition at line 32 of file sutra_wfs_pyr_pyrhr.h.
CarmaHostObj<float>* SutraWfs_PyrHR::pyr_cx |
Definition at line 40 of file sutra_wfs_pyr_pyrhr.h.
CarmaHostObj<float>* SutraWfs_PyrHR::pyr_cy |
Definition at line 41 of file sutra_wfs_pyr_pyrhr.h.
CarmaHostObj<float>* SutraWfs_PyrHR::pyr_mod_weights |
Definition at line 42 of file sutra_wfs_pyr_pyrhr.h.