|
MOONS Pipeline Reference Manual 0.13.1
|
Functions | |
| moo_psf_single * | moo_psf_single_new (void) |
| Create a new moo_psf_single | |
| moo_psf_single * | moo_psf_single_create (const char *filename, const char *extname) |
| Create a new moo_psf_single from the given PSF filename. | |
| cpl_error_code | moo_psf_single_set_cube_ref (moo_psf_single *self, double crpix2, double cd2_2) |
| Set cube parameters. | |
| cpl_error_code | moo_psf_single_get_cube_ref (moo_psf_single *self, double *crpix2, double *cd2_2) |
| Set cube parameters. | |
| cpl_error_code | moo_psf_single_normalize (moo_psf_single *self) |
| Normalize cube model profile. | |
| void | moo_psf_single_delete (moo_psf_single *self) |
| Delete a moo_psf_single. | |
| void | moo_psf_single_save (const moo_psf_single *self, const char *filename) |
| Save a moo_psf_single to a FITS file. | |
| cpl_error_code | moo_psf_single_dump (const moo_psf_single *self, FILE *stream) |
| Dump structural information of PSF_SINGLE. | |
| cpl_imagelist * | moo_psf_single_get_cube (moo_psf_single *self) |
| Get cube. | |
This module provides functions to create, use, and destroy a moo_psf_single
Functionality include:
| moo_psf_single * moo_psf_single_create | ( | const char * | filename, |
| const char * | extname | ||
| ) |
Create a new moo_psf_single from the given PSF filename.
| filename | the PSF filename |
| extname | the PSF extension name |
The returned object must be deallocated using moo_psf_single_delete().
Possible cpl_error_code set in this function:
Definition at line 89 of file moo_psf_single.c.
References moo_psf_single_new().
Referenced by moo_psf_load().
| void moo_psf_single_delete | ( | moo_psf_single * | self | ) |
Delete a moo_psf_single.
| self | moo_psf_single to delete |
If the moo_psf_single self is NULL, nothing is done and no error is set.
Definition at line 356 of file moo_psf_single.c.
Referenced by moo_psf_delete().
| cpl_error_code moo_psf_single_dump | ( | const moo_psf_single * | self, |
| FILE * | stream | ||
| ) |
Dump structural information of PSF_SINGLE.
| self | PSF_SINGLE to dump |
| stream | Output stream, accepts stdout or stderr |
Possible cpl_error_code set in this function:
Definition at line 405 of file moo_psf_single.c.
| cpl_imagelist * moo_psf_single_get_cube | ( | moo_psf_single * | self | ) |
Get cube.
| self | PSF_SINGLE |
Possible cpl_error_code set in this function:
Definition at line 429 of file moo_psf_single.c.
References moo_fits_load_extension_cube().
Referenced by moo_psf_single_normalize().
| cpl_error_code moo_psf_single_get_cube_ref | ( | moo_psf_single * | self, |
| double * | crpix2, | ||
| double * | cd2_2 | ||
| ) |
Set cube parameters.
| self | moo_psf_single |
| crpix2 | reference of Y axis in cube |
| cd2_2 | step of Y axis in cube |
The returned object must be deallocated using moo_psf_single_delete().
Possible cpl_error_code set in this function:
Definition at line 152 of file moo_psf_single.c.
References moo_pfits_get_cd2_2(), and moo_pfits_get_crpix2().
Referenced by moo_psf_single_normalize().
| moo_psf_single * moo_psf_single_new | ( | void | ) |
Create a new moo_psf_single
The returned object must be deallocated using moo_psf_single_delete().
Definition at line 70 of file moo_psf_single.c.
Referenced by moo_psf_single_create().
| cpl_error_code moo_psf_single_normalize | ( | moo_psf_single * | self | ) |
Normalize cube model profile.
| self | moo_psf_single |
Possible cpl_error_code set in this function:
Definition at line 307 of file moo_psf_single.c.
References moo_psf_single_get_cube(), and moo_psf_single_get_cube_ref().
| void moo_psf_single_save | ( | const moo_psf_single * | self, |
| const char * | filename | ||
| ) |
Save a moo_psf_single to a FITS file.
| self | moo_psf_single to write to disk or NULL |
| filename | Name of the file to write |
This function saves a moo_psf_single to a FITS file, using cfitsio. Only not NULL extensions are written.
Definition at line 381 of file moo_psf_single.c.
References moo_fits_write_extension_cube().
Referenced by moo_psf_add_single(), and moo_psf_save().
| cpl_error_code moo_psf_single_set_cube_ref | ( | moo_psf_single * | self, |
| double | crpix2, | ||
| double | cd2_2 | ||
| ) |
Set cube parameters.
| self | moo_psf_single |
| crpix2 | reference of Y axis in cube |
| cd2_2 | step of Y axis in cube |
The returned object must be deallocated using moo_psf_single_delete().
Possible cpl_error_code set in this function:
Definition at line 116 of file moo_psf_single.c.