|
MOONS Pipeline Reference Manual 0.13.1
|
Modules | |
| PSF_SINGLE format | |
Functions | |
| moo_psf * | moo_psf_new (void) |
| Create a new moo_psf | |
| moo_psf * | moo_psf_create (const char *filename) |
| Create a new empty PSF filename. | |
| moo_psf * | moo_psf_load (const cpl_frame *psfframe) |
| Load a PSF frame and create a moo_psf. | |
| moo_psf_single * | moo_psf_get_single (moo_psf *self, moo_detector_type type, int ntas) |
| Get a PSF single from PSF. | |
| cpl_error_code | moo_psf_set_single (moo_psf *self, moo_detector_type type, int ntas, moo_psf_single *single) |
| assign moo_psf_single structure in moo_psf structure | |
| cpl_error_code | moo_psf_add_single (moo_psf *self, moo_psf_single *single, moo_detector_type type, int ntas) |
| Add PSF_SINGLE extension to PSF filename and update moo_psf structure. | |
| void | moo_psf_delete (moo_psf *self) |
| Delete a moo_psf. | |
| void | moo_psf_save (moo_psf *self, const char *filename) |
| Save a moo_psf to a FITS file. | |
| cpl_error_code | moo_psf_dump (const moo_psf *self, FILE *stream) |
| Dump structural information of PSF. | |
This module provides functions to create, use, and destroy a moo_psf
Functionality include:
| cpl_error_code moo_psf_add_single | ( | moo_psf * | self, |
| moo_psf_single * | single, | ||
| moo_detector_type | type, | ||
| int | ntas | ||
| ) |
Add PSF_SINGLE extension to PSF filename and update moo_psf structure.
| self | moo_psf structure to update |
| type | type of detector |
| ntas | number of spectrographs |
| single | PSF_SINGLE extension to store on PSF file |
The returned object must be deallocated using moo_psf_delete().
Possible cpl_error_code set in this function:
Definition at line 228 of file moo_psf.c.
References moo_psf_set_single(), and moo_psf_single_save().
Referenced by moo_model_flat().
| moo_psf * moo_psf_create | ( | const char * | filename | ) |
Create a new empty PSF filename.
The returned object must be deallocated using moo_psf_delete().
Possible cpl_error_code set in this function:
Definition at line 82 of file moo_psf.c.
References moo_fits_create(), and moo_psf_new().
Referenced by moo_model_flat().
| void moo_psf_delete | ( | moo_psf * | self | ) |
Delete a moo_psf.
| self | moo_psf to delete |
If the moo_psf self is NULL, nothing is done and no error is set.
Definition at line 264 of file moo_psf.c.
References moo_psf_single_delete().
| cpl_error_code moo_psf_dump | ( | const moo_psf * | self, |
| FILE * | stream | ||
| ) |
Dump structural information of PSF.
| self | PSF to dump |
| stream | Output stream, accepts stdout or stderr |
Possible cpl_error_code set in this function:
| moo_psf_single * moo_psf_get_single | ( | moo_psf * | self, |
| moo_detector_type | type, | ||
| int | ntas | ||
| ) |
Get a PSF single from PSF.
| self | moo_psf structure to use |
| type | type of detector |
| ntas | number of spectrographs |
The returned object must be deallocated using moo_psf_delete().
Possible cpl_error_code set in this function:
Definition at line 151 of file moo_psf.c.
References MOO_TYPE_H, MOO_TYPE_RI, and MOO_TYPE_YJ.
Referenced by moo_compute_p2p(), moo_extract(), and moo_reproject_model().
| moo_psf * moo_psf_load | ( | const cpl_frame * | psfframe | ) |
Load a PSF frame and create a moo_psf.
The returned object must be deallocated using moo_psf_delete().
Possible cpl_error_code set in this function:
Definition at line 109 of file moo_psf.c.
References moo_detector_get_extname(), moo_psf_new(), moo_psf_single_create(), MOO_TYPE_H, MOO_TYPE_RI, and MOO_TYPE_YJ.
| moo_psf * moo_psf_new | ( | void | ) |
Create a new moo_psf
The returned object must be deallocated using moo_psf_delete().
Definition at line 65 of file moo_psf.c.
Referenced by moo_psf_create(), and moo_psf_load().
| void moo_psf_save | ( | moo_psf * | self, |
| const char * | filename | ||
| ) |
Save a moo_psf to a FITS file.
| self | moo_psf to write to disk or NULL |
| filename | Name of the file to write |
This function saves a moo_psf to a FITS file, using cfitsio. Only not NULL extensions are written.
Definition at line 300 of file moo_psf.c.
References moo_psf_single_save().
| cpl_error_code moo_psf_set_single | ( | moo_psf * | self, |
| moo_detector_type | type, | ||
| int | ntas, | ||
| moo_psf_single * | single | ||
| ) |
assign moo_psf_single structure in moo_psf structure
| self | moo_psf structure to update |
| type | type of detector |
| ntas | number of spectrographs |
| single | moo_psf_single structure |
The returned object must be deallocated using moo_psf_delete().
Possible cpl_error_code set in this function:
Definition at line 183 of file moo_psf.c.
References MOO_TYPE_H, MOO_TYPE_RI, and MOO_TYPE_YJ.
Referenced by moo_psf_add_single().