UVES Pipeline Reference Manual  5.4.0
Functions
CCD Chip

Functions

enum uves_chip uves_chip_get_first (bool blue)
 Get first chip for blue or red arm.
enum uves_chip uves_chip_get_next (enum uves_chip chip)
 Get next chip.
int uves_chip_get_index (enum uves_chip chip)
 Convert to integer.
const char * uves_chip_tostring_lower (enum uves_chip chip)
 Convert to string.
const char * uves_chip_tostring_upper (enum uves_chip chip)
 Convert to string.
const char * uves_chip_get_det (enum uves_chip chip)
 Get letters used in filenames.
char uves_chip_tochar (enum uves_chip chip)
 Get letters used in filenames.

Detailed Description

The CCD chip abstract data type


Function Documentation

enum uves_chip uves_chip_get_first ( bool  blue)

Get first chip for blue or red arm.

Parameters:
blueBlue (if true) or red (if false) arm
Returns:
The first (using some arbitrary but self-consistent definition of chip ordering) chip of the specified arm.

This function is used to loop through all (in the case of UVES, 1 or 2) chips of an arm.

for (chip = uves_chip_get_first(blue);
chip != UVES_CHIP_INVALID;
chip = uves_chip_get_next(chip))
{...}

Definition at line 92 of file uves_chip.c.

Referenced by test_bad_corr(), test_extract(), uves_reduce_mflat(), uves_reduce_mflat_combine(), uves_reduce_scired(), and uves_utl_physmod().

enum uves_chip uves_chip_get_next ( enum uves_chip  chip)

Get next chip.

Parameters:
chipThe current chip
Returns:
The chip following the specified chip

See uves_chip_get_first()

Definition at line 108 of file uves_chip.c.

Referenced by test_bad_corr(), uves_reduce_mflat(), uves_reduce_mflat_combine(), uves_reduce_scired(), and uves_utl_physmod().

int uves_chip_get_index ( enum uves_chip  chip)

Convert to integer.

Parameters:
chipThe CCD chip
Returns:
The specified chip converted to integer (1 if REDU, otherwise 0)

Definition at line 124 of file uves_chip.c.

Referenced by uves_reduce_mflat(), uves_reduce_mflat_combine(), uves_reduce_scired(), and uves_utl_physmod().

const char* uves_chip_tostring_lower ( enum uves_chip  chip)

Convert to string.

Parameters:
chipThe CCD chip
Returns:
A lower case textual representation of the specified chip

Definition at line 139 of file uves_chip.c.

Referenced by uves_physmod_plotmod(), and uves_utl_physmod().

const char* uves_chip_tostring_upper ( enum uves_chip  chip)

Convert to string.

Parameters:
chipThe CCD chip
Returns:
An upper case textual representation of the specified chip

Definition at line 156 of file uves_chip.c.

Referenced by uves_combine_flats(), uves_merge_orders(), uves_physmod_create_table(), uves_reduce_mflat(), uves_reduce_mflat_combine(), and uves_reduce_scired().

const char* uves_chip_get_det ( enum uves_chip  chip)

Get letters used in filenames.

Parameters:
chipThe CCD chip
Returns:
letters

Definition at line 172 of file uves_chip.c.

char uves_chip_tochar ( enum uves_chip  chip)

Get letters used in filenames.

Parameters:
chipThe CCD chip
Returns:
character representation of chip

Definition at line 187 of file uves_chip.c.