gemini_instruments.phoenix package

class gemini_instruments.phoenix.AstroDataPhoenix(nddata=None, tables=None, phu=None, indices=None)[source]

Bases: gemini_instruments.gemini.adclass.AstroDataGemini

dec()[source]

Returns the Declination of the center of the field, in degrees.

Returns

declination in degrees

Return type

float

filter_name(stripID=False, pretty=False)[source]

Returns the name of the filter(s) used. The component ID can be removed with either ‘stripID’ or ‘pretty’. If a combination of filters is used, the filter names will be join into a unique string with ‘&’ as separator. If ‘pretty’ is True, filter positions such as ‘Open’, ‘Dark’, ‘blank’, and others are removed leaving only the relevant filters in the string.

Parameters
  • stripID (bool) – If True, removes the component ID and returns only the name of the filter.

  • pretty (bool) – Same as for stripID. Pretty here does not do anything more.

Returns

The name of the filter combination with or without the component ID.

Return type

str

ra()[source]

Returns the Right Ascension of the center of the field, in degrees.

Returns

right ascension in degrees

Return type

float

ut_datetime(strict=False, dateonly=False, timeonly=False)[source]

Returns the UT date and/or time of the observation as a datetime or date or time object.

Parameters
  • strict (bool) – if True, only information in the header can be used

  • dateonly (bool) – if True, return a date object with just the date

  • timeonly (bool) – if True, return a time object with just the time

Returns

UT date and/or time

Return type

datetime.datetime / datetime.date / datetime.time

Submodules

gemini_instruments.phoenix.adclass module

class gemini_instruments.phoenix.adclass.AstroDataPhoenix(nddata=None, tables=None, phu=None, indices=None)[source]

Bases: gemini_instruments.gemini.adclass.AstroDataGemini

dec()[source]

Returns the Declination of the center of the field, in degrees.

Returns

declination in degrees

Return type

float

filter_name(stripID=False, pretty=False)[source]

Returns the name of the filter(s) used. The component ID can be removed with either ‘stripID’ or ‘pretty’. If a combination of filters is used, the filter names will be join into a unique string with ‘&’ as separator. If ‘pretty’ is True, filter positions such as ‘Open’, ‘Dark’, ‘blank’, and others are removed leaving only the relevant filters in the string.

Parameters
  • stripID (bool) – If True, removes the component ID and returns only the name of the filter.

  • pretty (bool) – Same as for stripID. Pretty here does not do anything more.

Returns

The name of the filter combination with or without the component ID.

Return type

str

ra()[source]

Returns the Right Ascension of the center of the field, in degrees.

Returns

right ascension in degrees

Return type

float

ut_datetime(strict=False, dateonly=False, timeonly=False)[source]

Returns the UT date and/or time of the observation as a datetime or date or time object.

Parameters
  • strict (bool) – if True, only information in the header can be used

  • dateonly (bool) – if True, return a date object with just the date

  • timeonly (bool) – if True, return a time object with just the time

Returns

UT date and/or time

Return type

datetime.datetime / datetime.date / datetime.time