Functions | |
| const char * | vircam_get_license (void) |
| int | vircam_compare_tags (const cpl_frame *frame1, const cpl_frame *frame2) |
| cpl_frameset * | vircam_frameset_subgroup (cpl_frameset *frameset, int *labels, int nlab, const char *tag) |
| cpl_frame * | vircam_frameset_subgroup_1 (cpl_frameset *frameset, int *labels, int nlab, const char *tag) |
| void | vircam_exten_range (int inexten, const cpl_frame *fr, int *out1, int *out2) |
| void | vircam_madfit (int npts, float *xdata, float *ydata, float *intercept, float *slope) |
| void | vircam_linfit (int npts, double *xdata, double *ydata, double *intercept, double *slope, double *sig) |
| int | vircam_solve_gauss (double **a, double *b, int m) |
| int | vircam_polyfit (const cpl_array *xarray, const cpl_array *yarray, int ncoefs, int ilim, int niter, float lclip, float hclip, cpl_array **polycf, double *sigfit) |
| void | vircam_difference_image (cpl_image *master, cpl_image *prog, unsigned char *bpm, cpl_table *chantab, int ncells, int oper, float *global_diff, float *global_rms, cpl_image **diffim, cpl_table **diffimstats) |
| cpl_table * | vircam_create_diffimg_stats (int nrows) |
| void | vircam_sort (float **a, int n, int m) |
| long | vircam_getnpts (cpl_image *in) |
| int | vircam_fndmatch (float x, float y, float *xlist, float *ylist, int nlist, float err) |
| int * | vircam_dummy_confidence (long n) |
| int | vircam_compare_dims (cpl_image *im1, cpl_image *im2) |
| void | vircam_prov (cpl_propertylist *p, vir_fits **inlist, int n) |
| void | vircam_merge_propertylists (cpl_propertylist *p1, cpl_propertylist *p2) |
| void | vircam_dummy_property (cpl_propertylist *p) |
| int | vircam_is_dummy (cpl_propertylist *p) |
| void | vircam_overexp (vir_fits **fitslist, int *n, float lthr, float hthr, int ditch) |
| cpl_image * | vircam_dummy_image (vir_fits *model) |
| cpl_table * | vircam_dummy_catalogue (int type) |
| cpl_table * | vircam_illcor_newtab (int nrows) |
| void | vircam_timestamp (char *out, int n) |
| void | vircam_backmap (vir_fits *in, vir_mask *mask, int nbsize, cpl_image **out, float *med) |
| int | vircam_findcol (cpl_propertylist *p, char *col) |
| void | vircam_rename_property (cpl_propertylist *p, char *oldname, char *newname) |
| int | vircam_catpars (cpl_frame *index, char **catpath, char **catname) |
| int | vircam_gaincor_calc (cpl_frame *frame, int *n, float **cors, int *status) |
| void vircam_backmap | ( | vir_fits * | in, | |
| vir_mask * | mask, | |||
| int | nbsize, | |||
| cpl_image ** | out, | |||
| float * | med | |||
| ) |
| in | The input image | |
| mask | The input bad pixel mask | |
| nbsize | The input size of the smoothing cells | |
| out | The output background map (corrected for to zero median) | |
| med | The global median of the input image |
Definition at line 1714 of file vircam_utils.c.
References vircam_fits_get_image(), vircam_mask_get_data(), and vircam_med().
| int vircam_catpars | ( | cpl_frame * | index, | |
| char ** | catpath, | |||
| char ** | catname | |||
| ) |
| index | The frame for the index FITS file | |
| catpath | The full path to the catalgoue FITS files | |
| catname | The name of the catalogue |
| VIR_OK | if everything is ok | |
| VIR_WARN | if the catalogue isn't identified in the header | |
| VIR_FATAL | if the index file is missing or if there is missing header info |
Definition at line 1965 of file vircam_utils.c.
| int vircam_compare_dims | ( | cpl_image * | im1, | |
| cpl_image * | im2 | |||
| ) |
| im1 | The first image | |
| im2 | The second image |
| VIR_OK | If the dimensions are the same | |
| VIR_FATAL | If the dimensions are different |
Definition at line 1335 of file vircam_utils.c.
Referenced by vircam_darkcor(), and vircam_flatcor().
| int vircam_compare_tags | ( | const cpl_frame * | frame1, | |
| const cpl_frame * | frame2 | |||
| ) |
| frame1 | The first frame | |
| frame2 | The second frame |
| 0 | if frame1 != frame2 | |
| 1 | if frame1 == frame2 | |
| -1 | if either frame is missing its tag |
Definition at line 140 of file vircam_utils.c.
| cpl_table* vircam_create_diffimg_stats | ( | int | nrows | ) |
| nrows | The number of rows for the table |
Definition at line 1078 of file vircam_utils.c.
Referenced by vircam_difference_image().
| void vircam_difference_image | ( | cpl_image * | master, | |
| cpl_image * | prog, | |||
| unsigned char * | bpm, | |||
| cpl_table * | chantab, | |||
| int | ncells, | |||
| int | oper, | |||
| float * | global_diff, | |||
| float * | global_rms, | |||
| cpl_image ** | diffim, | |||
| cpl_table ** | diffimstats | |||
| ) |
| master | The master calibration image | |
| prog | The new mean image | |
| bpm | Input bad pixel mask | |
| chantab | The channel table for the detector | |
| ncells | The number of cells per channel | |
| oper | The operation to be performed:
| |
| global_diff | The median difference over the whole difference image | |
| global_rms | The rms difference over the whole difference image | |
| diffim | The output difference/ratio image | |
| diffimstats | The output difference/ratio image statistics table |
Definition at line 883 of file vircam_utils.c.
References vircam_create_diffimg_stats(), vircam_meansig(), and vircam_medmad().
| cpl_table* vircam_dummy_catalogue | ( | int | type | ) |
| type | The type of catalogue to create |
Definition at line 1601 of file vircam_utils.c.
Referenced by vircam_jmp_save_catalogue().
| int* vircam_dummy_confidence | ( | long | n | ) |
| n | The number of pixels |
Definition at line 1301 of file vircam_utils.c.
| cpl_image* vircam_dummy_image | ( | vir_fits * | model | ) |
| model | The model on which the new image will be based. |
Definition at line 1566 of file vircam_utils.c.
References vircam_fits_get_image().
Referenced by vircam_jmp_dither_images(), and vircam_jmp_interleave().
| void vircam_dummy_property | ( | cpl_propertylist * | p | ) |
| p | The input propertylist |
Definition at line 1446 of file vircam_utils.c.
Referenced by vircam_jmp_save_simple(), vircam_jmp_save_stack(), and vircam_jmp_save_super().
| void vircam_exten_range | ( | int | inexten, | |
| const cpl_frame * | fr, | |||
| int * | out1, | |||
| int * | out2 | |||
| ) |
| inexten | Input image extension from the recipe invocation | |
| fr | An input frame used to test whether the requested frame(s) exist or not | |
| out1 | Lower part of extension range (-1 if there is an error) | |
| out2 | Upper part of extension range (-1 if there is an error) |
Definition at line 289 of file vircam_utils.c.
| int vircam_findcol | ( | cpl_propertylist * | p, | |
| char * | col | |||
| ) |
| p | The input propertylist for the table | |
| col | The column you want to find |
Definition at line 1869 of file vircam_utils.c.
Referenced by vircam_platesol().
| int vircam_fndmatch | ( | float | x, | |
| float | y, | |||
| float * | xlist, | |||
| float * | ylist, | |||
| int | nlist, | |||
| float | err | |||
| ) |
| x | The X coordinate of the object | |
| y | The Y coordinate of the object | |
| xlist | The list of catalogue X coordinates | |
| ylist | The list of catalogue Y coordinates | |
| nlist | The number of entries in the lists | |
| err | The maximum error radius for a match |
Definition at line 1236 of file vircam_utils.c.
Referenced by vircam_matchstds(), and vircam_matchxy().
| cpl_frameset* vircam_frameset_subgroup | ( | cpl_frameset * | frameset, | |
| int * | labels, | |||
| int | nlab, | |||
| const char * | tag | |||
| ) |
| frameset | The input frameset | |
| labels | The labels for the input frameset | |
| nlab | The number of labels for the input frameset | |
| tag | The tag for the frames in the output frameset |
Definition at line 192 of file vircam_utils.c.
Referenced by vircam_frameset_subgroup_1().
| cpl_frame* vircam_frameset_subgroup_1 | ( | cpl_frameset * | frameset, | |
| int * | labels, | |||
| int | nlab, | |||
| const char * | tag | |||
| ) |
| frameset | The input frameset | |
| labels | The labels for the input frameset | |
| nlab | The number of labels for the input frameset | |
| tag | The tag for the frames in the output frameset |
Definition at line 245 of file vircam_utils.c.
References vircam_frameset_subgroup().
Referenced by vircam_mask_define().
| int vircam_gaincor_calc | ( | cpl_frame * | frame, | |
| int * | n, | |||
| float ** | cors, | |||
| int * | status | |||
| ) |
| frame | The input twilight frame | |
| n | The number of image extensions | |
| cors | An array of output corrections |
| VIR_OK | if everything is ok |
Definition at line 2047 of file vircam_utils.c.
| const char* vircam_get_license | ( | void | ) |
Definition at line 91 of file vircam_utils.c.
| long vircam_getnpts | ( | cpl_image * | in | ) |
| in | The input image |
Definition at line 1186 of file vircam_utils.c.
Referenced by vircam_genbpm(), vircam_imcombine(), and vircam_jmp_interleave().
| cpl_table* vircam_illcor_newtab | ( | int | nrows | ) |
| nrows | The number of rows in the table |
Definition at line 1628 of file vircam_utils.c.
Referenced by vircam_illum(), and vircam_jmp_save_illum().
| int vircam_is_dummy | ( | cpl_propertylist * | p | ) |
| p | The input propertylist |
Definition at line 1479 of file vircam_utils.c.
| void vircam_linfit | ( | int | npts, | |
| double * | xdata, | |||
| double * | ydata, | |||
| double * | intercept, | |||
| double * | slope, | |||
| double * | sig | |||
| ) |
| npts | The number of data points | |
| xdata | The X data | |
| ydata | The Y data | |
| intercept | The fitted intercept | |
| slope | The fitted slope | |
| sig | The fit error |
Definition at line 504 of file vircam_utils.c.
Referenced by vircam_genlincur().
| void vircam_madfit | ( | int | npts, | |
| float * | xdata, | |||
| float * | ydata, | |||
| float * | intercept, | |||
| float * | slope | |||
| ) |
| npts | The number of data points | |
| xdata | The X data | |
| ydata | The Y data | |
| intercept | The fitted intercept | |
| slope | The fitted slope |
Definition at line 361 of file vircam_utils.c.
| void vircam_merge_propertylists | ( | cpl_propertylist * | p1, | |
| cpl_propertylist * | p2 | |||
| ) |
| p1 | The first propertylist | |
| p2 | The second propertylist |
Definition at line 1409 of file vircam_utils.c.
Referenced by vircam_jmp_save_stack().
| void vircam_overexp | ( | vir_fits ** | fitslist, | |
| int * | n, | |||
| float | lthr, | |||
| float | hthr, | |||
| int | ditch | |||
| ) |
| fitslist | The input fits list. This will be replaced by another list that has the rejected images removed. | |
| n | The number of fits images in the input list. This will be changed if any of these get rejected. | |
| lthr | The lower threshold for underexposed images | |
| hthr | The upper threshold for overexposed images | |
| ditch | If set, then the bad vir_fits image descriptors will be explicitly deleted. |
Definition at line 1523 of file vircam_utils.c.
References vircam_fits_delete(), and vircam_fits_get_image().
| int vircam_polyfit | ( | const cpl_array * | xarray, | |
| const cpl_array * | yarray, | |||
| int | ncoefs, | |||
| int | ilim, | |||
| int | niter, | |||
| float | lclip, | |||
| float | hclip, | |||
| cpl_array ** | polycf, | |||
| double * | sigfit | |||
| ) |
| xarray | The independent variable array | |
| yarray | The dependent variable array | |
| ncoefs | The requested polynomial order plus 1. | |
| ilim | The number of low order coefficients not to fit. | |
| niter | The number of iterations | |
| lclip | The number of sigma for the lower clipping threshold | |
| hclip | The number of sigma for the upper clipping threshold | |
| polycf | The returned array of polynomial coefficients. | |
| sigfit | The total error of the fit |
| VIR_OK | If everything went OK | |
| VIR_FATAL | If there was some sort of error |
Definition at line 693 of file vircam_utils.c.
References vircam_solve_gauss().
Referenced by vircam_genlincur().
| void vircam_prov | ( | cpl_propertylist * | p, | |
| vir_fits ** | inlist, | |||
| int | n | |||
| ) |
| p | The combined image propertylist | |
| inlist | The list of images that went into ifile. | |
| n | The number of images in the input list |
Definition at line 1367 of file vircam_utils.c.
References vircam_fits_get_fullname().
Referenced by vircam_imcombine(), vircam_imdither(), and vircam_interleave().
| void vircam_rename_property | ( | cpl_propertylist * | p, | |
| char * | oldname, | |||
| char * | newname | |||
| ) |
| p | The input propertylist for the table | |
| oldname | The old property name | |
| newname | The new property name |
Definition at line 1908 of file vircam_utils.c.
Referenced by vircam_tabwcs().
| int vircam_solve_gauss | ( | double ** | a, | |
| double * | b, | |||
| int | m | |||
| ) |
| a | The matrix part of the system (a[m][m]) | |
| b | The vector part of the system (b[m]). The output fit coefficients overwrite the input values in this vector. | |
| m | The size of the vectors |
| VIR_OK | If everything went OK | |
| VIR_FATAL | If matrix a has a zero determinant |
Definition at line 578 of file vircam_utils.c.
Referenced by vircam_genlincur(), and vircam_polyfit().
| void vircam_sort | ( | float ** | a, | |
| int | n, | |||
| int | m | |||
| ) |
| a | The input 2d array (a[m][n]) | |
| n | The number of rows in the array | |
| m | The number of columns in the array |
Definition at line 1130 of file vircam_utils.c.
| void vircam_timestamp | ( | char * | out, | |
| int | n | |||
| ) |
| out | The output string. It should be at least 25 characters long. NB: if it isn't at least 25 characters long (and provided you haven't done something stupid like pass in a value of n which is larger than the size of the string) then the output value will truncated to n characters | |
| n | The maximum size of the string. |
Definition at line 1666 of file vircam_utils.c.
Referenced by vircam_imdither(), and vircam_interleave().
1.5.1