Query

class acstools.acszpt.Query(date, detector, filt=None)

Bases: object

Class used to interface with the ACS Zeropoints Calculator API.

Parameters:
  • date (str) – Input date in the following ISO format, YYYY-MM-DD.

  • detector ({'HRC', 'SBC', 'WFC'}) – One of the three channels on ACS: HRC, SBC, or WFC.

  • filt (str or None, optional) –

    One of valid filters for the chosen detector. If no filter is supplied, all of the filters for the chosen detector will be used:

    • HRC:

      F220W, F250W, F330W, F344N, F435W, F475W, F502N, F550M, F555W, F606W, F625W, F658N, F660N, F775W, F814W, F850LP, F892N

    • WFC:

      F435W, F475W, F502N, F550M, F555W, F606W, F625W, F658N, F660N, F775W, F814W, F850LP, F892N

    • SBC:

      F115LP, F122M, F125LP, F140LP, F150LP, F165LP

Attributes Summary

date

The user supplied date.

detector

The user supplied detector.

filt

The user supplied filter, if one was given.

zpt_table

The results returned by the ACS Zeropoint Calculator.

Methods Summary

fetch()

Function to query API on AWS APIGateway for zeropoints for single or all filters of a given ACS detector (HRC, SBC, or WFC) on a specified date.

Attributes Documentation

date

The user supplied date. (str)

detector

The user supplied detector. (str)

filt

The user supplied filter, if one was given. (str or None)

zpt_table

The results returned by the ACS Zeropoint Calculator. (astropy.table.QTable)

Methods Documentation

fetch()

Function to query API on AWS APIGateway for zeropoints for single or all filters of a given ACS detector (HRC, SBC, or WFC) on a specified date.

Returns:

table – If the request was successful, returns an astropy Qtable; otherwise, None.

Return type:

astropy.table.QTable or None