gemini_instruments.gpi package

class gemini_instruments.gpi.AstroDataGpi(provider)[source]

Bases: AstroDataGemini

dec()[source]

Returns the Declination of the center of the field in degrees. It coincides with the position of the target, so that is used since the WCS in GPI data is completely bogus. For code re-used, use target_dec() if you really want the position of the target rather than the center of the field.

Returns

declination in degrees

Return type

float

exposure_time()[source]

Returns the exposure time in seconds.

Returns

Exposure time.

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 ‘pretty’ is True, ‘IFSFILT’ is stripped from the start of the name.

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

  • pretty (bool) – Strips the component ID and IFSFILT_ prefix.

Returns

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

Return type

str

classmethod load(source)[source]

Implementation of the abstract method load.

It takes an HDUList and returns a fully instantiated AstroData instance.

ra()[source]

Returns the Right Ascension of the center of the field in degrees. It coincides with the position of the target, so that is used since the WCS in GPI data is completely bogus. For code re-used, use target_ra() if you really want the position of the target rather than the center of the field.

Returns

right ascension in degrees

Return type

float

Submodules

gemini_instruments.gpi.adclass module

class gemini_instruments.gpi.adclass.AstroDataGpi(provider)[source]

Bases: AstroDataGemini

dec()[source]

Returns the Declination of the center of the field in degrees. It coincides with the position of the target, so that is used since the WCS in GPI data is completely bogus. For code re-used, use target_dec() if you really want the position of the target rather than the center of the field.

Returns

declination in degrees

Return type

float

exposure_time()[source]

Returns the exposure time in seconds.

Returns

Exposure time.

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 ‘pretty’ is True, ‘IFSFILT’ is stripped from the start of the name.

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

  • pretty (bool) – Strips the component ID and IFSFILT_ prefix.

Returns

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

Return type

str

classmethod load(source)[source]

Implementation of the abstract method load.

It takes an HDUList and returns a fully instantiated AstroData instance.

ra()[source]

Returns the Right Ascension of the center of the field in degrees. It coincides with the position of the target, so that is used since the WCS in GPI data is completely bogus. For code re-used, use target_ra() if you really want the position of the target rather than the center of the field.

Returns

right ascension in degrees

Return type

float