|
VIRCAM Pipeline 2.3.12
|
| void | imcore_apclust (ap_t *ap, int np, plstruct *plstr) |
| Detect multiple objects from a given Plessey array. | |
| void | imcore_apinit (ap_t *ap) |
| Initialise the ap structure. | |
| void | imcore_apreinit (ap_t *ap) |
| Re-initialise the ap structure. | |
| void | imcore_apclose (ap_t *ap) |
| Close ap structure. | |
| void | imcore_apline (ap_t *ap, float dat[], float conf[], float smoothed[], float smoothedc[], int j, unsigned char *bpm) |
| Detect objects on a line of data. | |
| void | imcore_areals (ap_t *ap, int iareal[NAREAL]) |
| Work out the areal profiles for an object. | |
| int | imcore_classify (casu_tfits *catalogue, float minsize, int cattype) |
| Do star/galaxy classification. | |
| void | imcore_tabinit (ap_t *ap, int *xcol, int *ycol, int cattype, cpl_table **tab) |
| Initialise catalogues. | |
| int | imcore_do_seeing (ap_t *ap, int cattype, int nobjects, cpl_table *tab) |
| Do seeing estimate. | |
| int | imcore_process_results (ap_t *ap, int cattype, float gain, int *nobjects, cpl_table *tab) |
| Process results. | |
| int | imcore_tabclose (ap_t *ap, int cattype) |
| Close the table structure. | |
| void | imcore_tabinit_gen (int ncols, const char *ttype[], const char *tunit[], cpl_type tform[], cpl_table **tab) |
| Initialise tables (generic) | |
| int | imcore_do_seeing_gen (ap_t *ap, const char *col_ellipt, const char *col_pkht, char *col_areals[NAREAL], int nobjects, cpl_table *tab) |
| Do seeing estimate (generic) | |
| void | imcore_tabinit_1 (int *imcore_xcol, int *imcore_ycol, cpl_table **tab) |
| Initialise type 1 catalogue. | |
| int | imcore_do_seeing_1 (ap_t *ap, int nobjects, cpl_table *tab) |
| Do seeing estimate for type 1 catalogue. | |
| int | imcore_process_results_1 (ap_t *ap, int *nobjects, cpl_table *tab) |
| Process results for type 1 catalogue. | |
| void | imcore_tabinit_2 (int *imcore_xcol, int *imcore_ycol, cpl_table **tab) |
| Initialise type 2 catalogue. | |
| int | imcore_do_seeing_2 (ap_t *ap, int nobjects, cpl_table *tab) |
| Do seeing estimate for type 2 catalogue. | |
| int | imcore_process_results_2 (ap_t *ap, float gain, int *nobjects, cpl_table *tab) |
| Process results for type 2 catalogue. | |
| void | imcore_tabinit_3 (int *imcore_xcol, int *imcore_ycol, cpl_table **tab) |
| Initialise type 1 catalogue. | |
| int | imcore_do_seeing_3 (ap_t *ap, int nobjects, cpl_table *tab) |
| Do seeing estimate for type 3 catalogue. | |
| int | imcore_process_results_3 (ap_t *ap, int *nobjects, cpl_table *tab) |
| Process results for type 3 catalogue. | |
| void | imcore_tabinit_4 (ap_t *ap, int *imcore_xcol, int *imcore_ycol, cpl_table **tab) |
| Initialise type 4 catalogue (object mask) | |
| int | imcore_do_seeing_4 (ap_t *ap) |
| Dummy seeing routine for type 4 catalogue (object mask) | |
| int | imcore_process_results_4 (ap_t *ap) |
| Process results for type 4 catalogue (object mask) | |
| int | imcore_tabclose_4 (ap_t *ap) |
| Close object mask. | |
| void | imcore_tabinit_6 (int *imcore_xcol, int *imcore_ycol, cpl_table **tab) |
| Initialise type 6 catalogue. | |
| int | imcore_do_seeing_6 (ap_t *ap, int nobjects, cpl_table *tab) |
| Do seeing estimate for type 6 catalogue. | |
| int | imcore_process_results_6 (ap_t *ap, float gain, int *nobjects, cpl_table *tab) |
| Process results for type 6 catalogue. | |
| int | imcore_background (ap_t *ap, int nbsize, float nullval) |
| Model and create background map. | |
| int | imcore_backstats (ap_t *ap, float nullval, int satonly, float *skymed, float *skysig, float *sat) |
| Work out robust background estimate over a whole input image. | |
| void | imcore_backest (ap_t *ap, float x, float y, float *skylev, float *skyrms) |
| Work out estimated sky for a pixel position. | |
| void | imcore_medsig (int *shist, int nh, int ist, int itarg, float *med, float *sig) |
| Analyse histogram to work out median and sigma. | |
| int | imcore_conf (casu_fits *infile, casu_fits *conf, int ipix, float threshold, int icrowd, float rcore, int nbsize, int cattype, float filtfwhm, float gain, casu_tfits **outcat) |
| Do source extraction. | |
| int | imcore_extend (ap_t *ap, float xniso, float xbar, float ybar, float sxx, float sxy, float syy, float areal0, float tmax, float *ttotal) |
| Do aperture integration. | |
| void | imcore_bfilt (float **xbuf, int nx, int ny) |
| Do bilinear median and linear filtering on background values. | |
| int | imcore_opm (casu_fits *infile, casu_fits *conf, int ipix, float threshold, int nbsize, float filtfwhm, int niter) |
| Create an object mask. | |
| void | imcore_overlp (ap_t *ap, float parm[IMNUM][NPAR], int *nbit, float xbar, float ybar, float total, int npix, float tmax) |
| Deblend overlapping images. | |
| void | imcore_phopt (ap_t *ap, float parm[IMNUM][NPAR], int nbit, int naper, float apertures[], float cflux[], float badpix[], int nrcore, float avconf[]) |
| Do multiple profile fitting. | |
| float | imcore_halflight (float rcores[], float cflux[], float halflight, float peak, int naper) |
| Work out the half-light radius for an object. | |
| float | imcore_exprad (float thresh, float peak, float areal0, float rcores[], int naper) |
| Work out the exponential radius for an object. | |
| float | imcore_kronrad (float areal0, float rcores[], float cflux[], int naper) |
| Work out the Kron radius for an object. | |
| float | imcore_petrad (float areal0, float rcores[], float cflux[], int naper) |
| Work out the Petrosian. | |
| void | imcore_flux (ap_t *ap, float parm[IMNUM][NPAR], int nbit, float apers[], float fluxes[], int nr, float rcores[], float rfluxes[]) |
| Work out the fluxes for special radii. | |
| void | imcore_moments (ap_t *ap, float results[]) |
| Do moments analysis on an object. | |
| void | imcore_seeing (ap_t *ap, int nrows, float *ellipt, float *pkht, float **areal, float *work, float *fwhm) |
| Work out the median seeing. | |
| void | imcore_restack (ap_t *ap, int ip) |
| Free information for an object from the ap structure. | |
| void | imcore_terminate (ap_t *ap, int cattype, float gain, int *nobjects, cpl_table *tab) |
| Check for objects that have terminated. | |
| void | imcore_apfu (ap_t *ap) |
| Get rid of the largest contributor in an ap structure. | |
| void | imcore_extract_data (ap_t *ap, int ip) |
| Put data into the Plessey array for an object. | |
These are the routines that do the source extraction.
| void imcore_apclose | ( | ap_t * | ap | ) |
Close ap structure.
| ap | The input ap structure |
Definition at line 186 of file apinit.c.
Referenced by imcore_overlp().
| void imcore_apclust | ( | ap_t * | ap, |
| int | np, | ||
| plstruct * | plstr | ||
| ) |
Detect multiple objects from a given Plessey array.
| ap | The new input ap structure |
| np | The number of pixels within the input Plessey array |
| plstr | The Plessey array from the original structure with the lower detection threshold. |
Definition at line 71 of file apclust.c.
References imcore_apfu().
Referenced by imcore_overlp().
| void imcore_apfu | ( | ap_t * | ap | ) |
Get rid of the largest contributor in an ap structure.
| ap | The current ap structure |
Definition at line 194 of file terminate.c.
References imcore_restack().
Referenced by imcore_apclust(), imcore_conf(), and imcore_opm().
| void imcore_apinit | ( | ap_t * | ap | ) |
Initialise the ap structure.
| ap | The input ap structure |
Definition at line 65 of file apinit.c.
Referenced by imcore_conf(), imcore_opm(), and imcore_overlp().
| void imcore_apline | ( | ap_t * | ap, |
| float | dat[], | ||
| float | conf[], | ||
| float | smoothed[], | ||
| float | smoothedc[], | ||
| int | j, | ||
| unsigned char * | bpm | ||
| ) |
Detect objects on a line of data.
| ap | The input ap structure |
| dat | The line of data |
| conf | The confidence map for the line of data |
| smoothed | A smoothed version of the data line. |
| smoothedc | A smoothed version of the confidence map line. |
| j | A number that tells you which row this is in the image |
| bpm | A bad pixel mask for that line |
Definition at line 75 of file apline.c.
Referenced by imcore_conf(), and imcore_opm().
| void imcore_apreinit | ( | ap_t * | ap | ) |
Re-initialise the ap structure.
| ap | The input ap structure |
Definition at line 142 of file apinit.c.
Referenced by imcore_overlp().
| void imcore_areals | ( | ap_t * | ap, |
| int | iareal[NAREAL] | ||
| ) |
Work out the areal profiles for an object.
| ap | The input ap structure |
| iareal | The output areal profile array |
Definition at line 67 of file areals.c.
Referenced by imcore_process_results_1(), imcore_process_results_2(), imcore_process_results_3(), and imcore_process_results_6().
| void imcore_backest | ( | ap_t * | ap, |
| float | x, | ||
| float | y, | ||
| float * | skylev, | ||
| float * | skyrms | ||
| ) |
Work out estimated sky for a pixel position.
| ap | The current ap structure |
| x | The X position in question |
| y | The Y position in question |
| skylev | Output sky level at x,y |
| skyrms | Output sky noise at x,y |
Definition at line 443 of file imcore_background.c.
Referenced by imcore_process_results_1(), imcore_process_results_2(), and imcore_process_results_6().
| int imcore_background | ( | ap_t * | ap, |
| int | nbsize, | ||
| float | nullval | ||
| ) |
Model and create background map.
| ap | The current ap structure |
| nbsize | The size of the cells in pixels |
| nullval | A null value used to flag bad pixels |
| CASU_OK | If all went well. This is currently the only value. |
Definition at line 81 of file imcore_background.c.
References imcore_bfilt(), and imcore_medsig().
Referenced by imcore_conf(), and imcore_opm().
| int imcore_backstats | ( | ap_t * | ap, |
| float | nullval, | ||
| int | satonly, | ||
| float * | skymed, | ||
| float * | skysig, | ||
| float * | sat | ||
| ) |
Work out robust background estimate over a whole input image.
| ap | The current ap structure |
| nullval | A null value used to flag bad pixels |
| satonly | If set, then only the saturation level will be computed. |
| skymed | Output sky median |
| skysig | Output sky noise |
| sat | Output saturation level |
| CASU_OK | If all went well. |
| CASU_WARN | If there aren't enough good values to do the calculation |
Definition at line 295 of file imcore_background.c.
References imcore_medsig().
Referenced by imcore_conf(), and imcore_opm().
| void imcore_bfilt | ( | float ** | xbuf, |
| int | nx, | ||
| int | ny | ||
| ) |
Do bilinear median and linear filtering on background values.
| xbuf | The input map to be smoothed |
| nx | The X dimension of the map |
| ny | The Y dimension of the map |
Definition at line 73 of file imcore_filter.c.
Referenced by imcore_background().
| int imcore_classify | ( | casu_tfits * | catalogue, |
| float | minsize, | ||
| int | cattype | ||
| ) |
Do star/galaxy classification.
| catalogue | The input imcore catalogue |
| plist | The propertylist from the primary header of the input image |
| minsize | The minimum size in pixels of objects to be used in the analysis |
| cattype | The catalogue type |
| CASU_OK | If everything is OK |
| CASU_FATAL | If the input catalogue is unrecognised. |
Definition at line 203 of file classify.c.
References casu_tfits_get_ehu(), and casu_tfits_get_table().
Referenced by casu_imcore().
| int imcore_conf | ( | casu_fits * | infile, |
| casu_fits * | conf, | ||
| int | ipix, | ||
| float | threshold, | ||
| int | icrowd, | ||
| float | rcore, | ||
| int | nbsize, | ||
| int | cattype, | ||
| float | filtfwhm, | ||
| float | gain, | ||
| casu_tfits ** | outcat | ||
| ) |
Do source extraction.
| infile | The input image |
| conf | The input confidence map |
| ipix | The minimum allowable size of an object |
| threshold | The detection threshold in sigma above sky |
| icrowd | If set then the deblending software will be used |
| rcore | The core radius in pixels |
| nbsize | The smoothing box size for background map estimation |
| cattype | The type of catalogue to be produced |
| filtfwhm | The FWHM of the smoothing kernel in the detection algorithm |
| gain | The header keyword with the gain in e-/ADU |
| outcat | The output table of object |
| CASU_OK | if everything is ok |
| CASU_WARN,CASU_FATAL | errors in the called routines |
Definition at line 147 of file imcore_conf.c.
References casu_fits_get_ehu(), casu_fits_get_image(), casu_fits_get_nexten(), casu_fits_get_phu(), casu_tabwcs(), casu_tfits_wrap(), imcore_apfu(), imcore_apinit(), imcore_apline(), imcore_background(), imcore_backstats(), imcore_do_seeing(), imcore_tabclose(), imcore_tabinit(), and imcore_terminate().
Referenced by casu_imcore().
| int imcore_do_seeing | ( | ap_t * | ap, |
| int | cattype, | ||
| int | nobjects, | ||
| cpl_table * | tab | ||
| ) |
Do seeing estimate.
| ap | The current ap structure |
| CASU_OK | If all went well |
| CASU_FATAL | If catalogue type is unrecognised |
Definition at line 118 of file create_table.c.
References imcore_do_seeing_1(), imcore_do_seeing_2(), imcore_do_seeing_3(), imcore_do_seeing_4(), and imcore_do_seeing_6().
Referenced by imcore_conf().
| int imcore_do_seeing_1 | ( | ap_t * | ap, |
| int | nobjects, | ||
| cpl_table * | tab | ||
| ) |
Do seeing estimate for type 1 catalogue.
| ap | The current ap structure |
| CASU_OK | If all is well. Currently this is the only return value |
Definition at line 176 of file create_table_1.c.
References imcore_do_seeing_gen().
Referenced by imcore_do_seeing().
| int imcore_do_seeing_2 | ( | ap_t * | ap, |
| int | nobjects, | ||
| cpl_table * | tab | ||
| ) |
Do seeing estimate for type 2 catalogue.
| ap | The current ap structure |
| CASU_OK | If all is well. Currently this is the only return value |
Definition at line 276 of file create_table_2.c.
References imcore_do_seeing_gen().
Referenced by imcore_do_seeing().
| int imcore_do_seeing_3 | ( | ap_t * | ap, |
| int | nobjects, | ||
| cpl_table * | tab | ||
| ) |
Do seeing estimate for type 3 catalogue.
| ap | The current ap structure |
| CASU_OK | If all is well. Currently this is the only return value |
Definition at line 156 of file create_table_3.c.
References imcore_do_seeing_gen().
Referenced by imcore_do_seeing().
| int imcore_do_seeing_4 | ( | ap_t * | ap | ) |
Dummy seeing routine for type 4 catalogue (object mask)
| ap | The current ap structure |
| CASU_OK | If all is well. Currently this is the only return value |
Definition at line 109 of file create_table_4.c.
Referenced by imcore_do_seeing().
| int imcore_do_seeing_6 | ( | ap_t * | ap, |
| int | nobjects, | ||
| cpl_table * | tab | ||
| ) |
Do seeing estimate for type 6 catalogue.
| ap | The current ap structure |
| CASU_OK | If all is well. Currently this is the only return value |
Definition at line 278 of file create_table_6.c.
References imcore_do_seeing_gen().
Referenced by imcore_do_seeing().
| int imcore_do_seeing_gen | ( | ap_t * | ap, |
| const char * | col_ellipt, | ||
| const char * | col_pkht, | ||
| char * | col_areals[NAREAL], | ||
| int | nobjects, | ||
| cpl_table * | tab | ||
| ) |
Do seeing estimate (generic)
| ap | The current ap structure |
| col_ellipt | The name of the column for ellipticity |
| col_pkht | The name of the column for the peak height |
| col_areals | The array of names of the areal profile columns |
| CASU_OK | If all is ok. This is currently the only value. |
Definition at line 335 of file create_table.c.
References imcore_seeing().
Referenced by imcore_do_seeing_1(), imcore_do_seeing_2(), imcore_do_seeing_3(), and imcore_do_seeing_6().
| float imcore_exprad | ( | float | thresh, |
| float | peak, | ||
| float | areal0, | ||
| float | rcores[], | ||
| int | naper | ||
| ) |
Work out the exponential radius for an object.
| thresh | The detection threshold |
| peak | The peak flux of the object |
| areal0 | The lowest level areal profile for the object |
| rcores | The list of aperture radii used |
| naper | The number of radii used |
Definition at line 142 of file imcore_radii.c.
Referenced by imcore_process_results_2().
| int imcore_extend | ( | ap_t * | ap, |
| float | xniso, | ||
| float | xbar, | ||
| float | ybar, | ||
| float | sxx, | ||
| float | sxy, | ||
| float | syy, | ||
| float | areal0, | ||
| float | tmax, | ||
| float * | ttotal | ||
| ) |
Do aperture integration.
| ap | The current ap structure |
| xniso | The isophotal flux |
| xbar | The X position of the object |
| ybar | The Y position of the object |
| sxx | Second moment in X |
| syy | Second moment in Y |
| sxy | Second moment cross term |
| areal0 | The first areal profile |
| tmax | The peak flux of the object |
| ttotal | The output total integrated flux |
| CASU_OK | If all went OK. Currently this is the only value. |
Definition at line 89 of file imcore_extend.c.
Referenced by imcore_process_results_1(), imcore_process_results_2(), and imcore_process_results_6().
| void imcore_extract_data | ( | ap_t * | ap, |
| int | ip | ||
| ) |
Put data into the Plessey array for an object.
| ap | The current ap structure |
| ip | The parent in question |
Definition at line 250 of file terminate.c.
Referenced by imcore_terminate().
| void imcore_flux | ( | ap_t * | ap, |
| float | parm[IMNUM][NPAR], | ||
| int | nbit, | ||
| float | apers[], | ||
| float | fluxes[], | ||
| int | nr, | ||
| float | rcores[], | ||
| float | rfluxes[] | ||
| ) |
Work out the fluxes for special radii.
| ap | The current ap structure |
| parm | The parameters for each object already detected |
| nbit | The number of detected objects in the current Plessey structure. |
| apers | The radii of the standard apertures |
| fluxes | The fluxes computed through the standard apertures |
| nr | The number of special apertures |
| rcores | The radii the special apertures |
| rfluxes | The fluxes computed through the special apertures. |
Definition at line 316 of file imcore_radii.c.
Referenced by imcore_process_results_2(), and imcore_process_results_6().
| float imcore_halflight | ( | float | rcores[], |
| float | cflux[], | ||
| float | halflight, | ||
| float | peak, | ||
| int | naper | ||
| ) |
Work out the half-light radius for an object.
| rcores | The list of aperture radii used |
| cflux | The list of fluxes through the aperture radii |
| halflight | An estimate of half the light of the object |
| peak | The peak flux of the object |
| naper | The number of radii used |
Definition at line 76 of file imcore_radii.c.
Referenced by imcore_process_results_6().
| float imcore_kronrad | ( | float | areal0, |
| float | rcores[], | ||
| float | cflux[], | ||
| int | naper | ||
| ) |
Work out the Kron radius for an object.
| areal0 | The lowest level areal profile for the object |
| rcores | The list of aperture radii used |
| cflux | The aperture fluxes for each radius |
| naper | The number of radii used |
Definition at line 188 of file imcore_radii.c.
Referenced by imcore_process_results_2(), and imcore_process_results_6().
| void imcore_medsig | ( | int * | shist, |
| int | nh, | ||
| int | ist, | ||
| int | itarg, | ||
| float * | med, | ||
| float * | sig | ||
| ) |
Analyse histogram to work out median and sigma.
| shist | The input histogram |
| nh | The number of bins in the histogram |
| ist | The first bin position that we will look at |
| itarg | The target value for the summation. |
| med | Output median |
| sig | Output sigma from the first quartile. |
Definition at line 526 of file imcore_background.c.
Referenced by imcore_background(), and imcore_backstats().
| void imcore_moments | ( | ap_t * | ap, |
| float | results[] | ||
| ) |
Do moments analysis on an object.
| ap | The current ap structure |
| results | The output array with the moments results. |
Definition at line 65 of file moments.c.
Referenced by imcore_process_results_1(), imcore_process_results_2(), imcore_process_results_3(), and imcore_process_results_6().
| int imcore_opm | ( | casu_fits * | infile, |
| casu_fits * | conf, | ||
| int | ipix, | ||
| float | threshold, | ||
| int | nbsize, | ||
| float | filtfwhm, | ||
| int | niter | ||
| ) |
Create an object mask.
| infile | The input image. The output object mask will be stored in the pixel mask for this image. |
| conf | The input confidence map |
| ipix | The minimum allowable size of an object |
| threshold | The detection threshold in sigma above sky |
| nbsize | The smoothing box size for background map estimation |
| filtfwhm | The FWHM of the smoothing kernel in the detection algorithm |
| niter | The number of detection iterations. |
| CASU_OK | if everything is ok |
| CASU_WARN,CASU_FATAL | errors in the called routines |
Definition at line 111 of file imcore_opm.c.
References casu_fits_get_ehu(), casu_fits_get_image(), casu_fits_get_nexten(), imcore_apfu(), imcore_apinit(), imcore_apline(), imcore_background(), imcore_backstats(), imcore_tabclose(), imcore_tabinit(), and imcore_terminate().
Referenced by casu_opm().
| void imcore_overlp | ( | ap_t * | ap, |
| float | parm[IMNUM][NPAR], | ||
| int * | nbit, | ||
| float | xbar, | ||
| float | ybar, | ||
| float | total, | ||
| int | npix, | ||
| float | tmax | ||
| ) |
Deblend overlapping images.
| ap | The current input ap structure |
| parm | The parameter array for the deblended objects |
| nbit | The output number of objects found in the deblended object |
| xbar | The X position of the input object |
| ybar | The Y position of the input object |
| total | The total flux of the input object |
| npix | The number of pixels in the original object |
| tmax | The peak flux of the original object |
Definition at line 99 of file imcore_overlp.c.
References imcore_apclose(), imcore_apclust(), imcore_apinit(), and imcore_apreinit().
Referenced by imcore_process_results_1(), imcore_process_results_2(), and imcore_process_results_6().
| float imcore_petrad | ( | float | areal0, |
| float | rcores[], | ||
| float | cflux[], | ||
| int | naper | ||
| ) |
Work out the Petrosian.
| areal0 | The lowest level areal profile for the object |
| rcores | The list of aperture radii used |
| cflux | The aperture fluxes for each radius |
| naper | The number of radii used |
Definition at line 242 of file imcore_radii.c.
Referenced by imcore_process_results_2(), and imcore_process_results_6().
| void imcore_phopt | ( | ap_t * | ap, |
| float | parm[IMNUM][NPAR], | ||
| int | nbit, | ||
| int | naper, | ||
| float | apertures[], | ||
| float | cflux[], | ||
| float | badpix[], | ||
| int | nrcore, | ||
| float | avconf[] | ||
| ) |
Do multiple profile fitting.
| ap | The current ap structure |
| parm | The input/output object parameters |
| nbit | The number of objects detected in the current Plessey structure |
| naper | The number of apertures |
| apertures | Array of aperture radii |
| cflux | Array of aperture fluxes |
| badpix | Array saying how many bad pixels were included in the data for each object at each radius |
| nrcore | The index of the apertures array that defines where the radius = Rcore |
Definition at line 91 of file imcore_phopt.c.
Referenced by imcore_process_results_1(), imcore_process_results_2(), and imcore_process_results_6().
| int imcore_process_results | ( | ap_t * | ap, |
| int | cattype, | ||
| float | gain, | ||
| int * | nobjects, | ||
| cpl_table * | tab | ||
| ) |
Process results.
| ap | The current ap structure |
| CASU_OK | If all went well |
| CASU_FATAL | If catalogue type is unrecognised |
Definition at line 176 of file create_table.c.
References imcore_process_results_1(), imcore_process_results_2(), imcore_process_results_3(), imcore_process_results_4(), and imcore_process_results_6().
Referenced by imcore_terminate().
| int imcore_process_results_1 | ( | ap_t * | ap, |
| int * | nobjects, | ||
| cpl_table * | tab | ||
| ) |
Process results for type 1 catalogue.
| ap | The current ap structure |
| CASU_OK | If all is well. |
| CASU_FATAL | If peak flux < 0 |
Definition at line 224 of file create_table_1.c.
References imcore_areals(), imcore_backest(), imcore_extend(), imcore_moments(), imcore_overlp(), and imcore_phopt().
Referenced by imcore_process_results().
| int imcore_process_results_2 | ( | ap_t * | ap, |
| float | gain, | ||
| int * | nobjects, | ||
| cpl_table * | tab | ||
| ) |
Process results for type 2 catalogue.
| ap | The current ap structure |
| CASU_OK | If all is well. |
| CASU_FATAL | If peak flux < 0 |
Definition at line 324 of file create_table_2.c.
References imcore_areals(), imcore_backest(), imcore_exprad(), imcore_extend(), imcore_flux(), imcore_kronrad(), imcore_moments(), imcore_overlp(), imcore_petrad(), and imcore_phopt().
Referenced by imcore_process_results().
| int imcore_process_results_3 | ( | ap_t * | ap, |
| int * | nobjects, | ||
| cpl_table * | tab | ||
| ) |
Process results for type 3 catalogue.
| ap | The current ap structure |
| CASU_OK | If all is well. |
| CASU_FATAL | If peak flux < 0 |
Definition at line 205 of file create_table_3.c.
References imcore_areals(), and imcore_moments().
Referenced by imcore_process_results().
| int imcore_process_results_4 | ( | ap_t * | ap | ) |
Process results for type 4 catalogue (object mask)
| ap | The current ap structure |
| CASU_OK | If all is well. This is currently the only value |
Definition at line 144 of file create_table_4.c.
Referenced by imcore_process_results().
| int imcore_process_results_6 | ( | ap_t * | ap, |
| float | gain, | ||
| int * | nobjects, | ||
| cpl_table * | tab | ||
| ) |
Process results for type 6 catalogue.
| ap | The current ap structure |
| CASU_OK | If all is well. |
| CASU_FATAL | If peak flux < 0 |
Definition at line 326 of file create_table_6.c.
References imcore_areals(), imcore_backest(), imcore_extend(), imcore_flux(), imcore_halflight(), imcore_kronrad(), imcore_moments(), imcore_overlp(), imcore_petrad(), and imcore_phopt().
Referenced by imcore_process_results().
| void imcore_restack | ( | ap_t * | ap, |
| int | ip | ||
| ) |
Free information for an object from the ap structure.
| ap | The current ap structure |
| ip | The parent number for the object |
Definition at line 64 of file terminate.c.
Referenced by imcore_apfu(), and imcore_terminate().
| void imcore_seeing | ( | ap_t * | ap, |
| int | nrows, | ||
| float * | ellipt, | ||
| float * | pkht, | ||
| float ** | areal, | ||
| float * | work, | ||
| float * | fwhm | ||
| ) |
Work out the median seeing.
| ap | The current ap structure |
| nrows | The number rows in the object catalogue |
| ellipt | The array of ellipticities from the object catalogue |
| pkht | The array of peak heights from the object catalogue |
| areal | The array of areal profiles from the object catalogue |
| work | A work array (should probably allocate this local at some stage) |
| fwhm | The output FWHM estimate |
Definition at line 80 of file seeing.c.
Referenced by imcore_do_seeing_gen().
| int imcore_tabclose | ( | ap_t * | ap, |
| int | cattype | ||
| ) |
Close the table structure.
| ap | The current ap structure |
| CASU_OK | If all went well |
| CASU_FATAL | If catalogue type is unrecognised |
Definition at line 234 of file create_table.c.
References imcore_tabclose_4().
Referenced by imcore_conf(), and imcore_opm().
| int imcore_tabclose_4 | ( | ap_t * | ap | ) |
Close object mask.
| ap | The current ap structure |
| CASU_OK | If all is well. This is currently the only value |
Definition at line 194 of file create_table_4.c.
Referenced by imcore_tabclose().
| void imcore_tabinit | ( | ap_t * | ap, |
| int * | xcol, | ||
| int * | ycol, | ||
| int | cattype, | ||
| cpl_table ** | tab | ||
| ) |
Initialise catalogues.
| ap | The current ap structure |
Definition at line 62 of file create_table.c.
References imcore_tabinit_1(), imcore_tabinit_2(), imcore_tabinit_3(), imcore_tabinit_4(), and imcore_tabinit_6().
Referenced by casu_dummy_catalogue(), imcore_conf(), and imcore_opm().
| void imcore_tabinit_1 | ( | int * | imcore_xcol, |
| int * | imcore_ycol, | ||
| cpl_table ** | tab | ||
| ) |
Initialise type 1 catalogue.
Definition at line 136 of file create_table_1.c.
References imcore_tabinit_gen().
Referenced by imcore_tabinit().
| void imcore_tabinit_2 | ( | int * | imcore_xcol, |
| int * | imcore_ycol, | ||
| cpl_table ** | tab | ||
| ) |
Initialise type 2 catalogue.
Definition at line 235 of file create_table_2.c.
References imcore_tabinit_gen().
Referenced by imcore_tabinit().
| void imcore_tabinit_3 | ( | int * | imcore_xcol, |
| int * | imcore_ycol, | ||
| cpl_table ** | tab | ||
| ) |
Initialise type 1 catalogue.
Definition at line 116 of file create_table_3.c.
References imcore_tabinit_gen().
Referenced by imcore_tabinit().
| void imcore_tabinit_4 | ( | ap_t * | ap, |
| int * | imcore_xcol, | ||
| int * | imcore_ycol, | ||
| cpl_table ** | tab | ||
| ) |
Initialise type 4 catalogue (object mask)
| ap | The current ap structure |
Definition at line 62 of file create_table_4.c.
Referenced by imcore_tabinit().
| void imcore_tabinit_6 | ( | int * | imcore_xcol, |
| int * | imcore_ycol, | ||
| cpl_table ** | tab | ||
| ) |
Initialise type 6 catalogue.
Definition at line 237 of file create_table_6.c.
References imcore_tabinit_gen().
Referenced by imcore_tabinit().
| void imcore_tabinit_gen | ( | int | ncols, |
| const char * | ttype[], | ||
| const char * | tunit[], | ||
| cpl_type | tform[], | ||
| cpl_table ** | tab | ||
| ) |
Initialise tables (generic)
| ncols | The number of columns in the table |
| ttype | Array of column names for FITS table |
| tunit | Array of units for each of the columns |
| tform | Array of formats for each of the columns as defined in the FITS standard |
Definition at line 281 of file create_table.c.
Referenced by imcore_tabinit_1(), imcore_tabinit_2(), imcore_tabinit_3(), and imcore_tabinit_6().
| void imcore_terminate | ( | ap_t * | ap, |
| int | cattype, | ||
| float | gain, | ||
| int * | nobjects, | ||
| cpl_table * | tab | ||
| ) |
Check for objects that have terminated.
| ap | The current ap structure |
Definition at line 130 of file terminate.c.
References imcore_extract_data(), imcore_process_results(), and imcore_restack().
Referenced by imcore_conf(), and imcore_opm().