Package ivs :: Package catalogs :: Module gcpd
[hide private]
[frames] | no frames]

Module gcpd

source code

Interface to Geneva's Genaral Catalogue of Photometric Data

Functions [hide private]
    Basic interfaces
 
search(name, **kwargs)
Search and retrieve information from the GCPD catalog.
source code
record array
gcpd2phot(source, results, units, master=None, e_flag='e_', q_flag='q_', extra_fields=None)
Convert/combine GCPD record arrays to measurement record arrays.
source code
 
get_photometry(ID=None, extra_fields=[], **kwargs)
Download all available photometry from a star to a record array.
source code
    Internal helper functions
 
_get_URI(name='GENEVA', ID=None, **kwargs)
Build GCPD URI from available options.
source code
Variables [hide private]
  systems = {'JOHNSON': 1, 'STROMGREN': 4, 'ARGUE': 10, 'GENEVA'...
  logger = logging.getLogger("CAT.VIZIER")
  basedir = os.path.dirname(os.path.abspath(__file__))
  cat_info = ConfigParser.ConfigParser()
Function Details [hide private]

search(name, **kwargs)

source code 

Search and retrieve information from the GCPD catalog.

Parameters:
  • name (string) - name of photometric system

gcpd2phot(source, results, units, master=None, e_flag='e_', q_flag='q_', extra_fields=None)

source code 

Convert/combine GCPD record arrays to measurement record arrays.

Every line in the combined array represents a measurement in a certain band.

The standard columns are:

  1. meas: containing the photometric measurement
  2. e_meas: the error on the photometric measurement
  3. flag: an optional quality flag
  4. unit: the unit of the measurement
  5. photband: the photometric passband (FILTER.BAND)
  6. source: name of the source catalog

If you give a master, the information will be added to a previous record array. If not, a new master will be created.

Colors will be expanded, derived from the other columns and added to the master.

The result is a record array with each row a measurement.

Extra fields are not available for the GCPD, they will be filled in with nans.

Parameters:
  • source (str) - name of the VizieR source
  • results (record array) - results from VizieR search
  • units (dict) - header of Vizier catalog with key name the column name and key value the units of that column
  • master (record array) - master record array to add information to
  • e_flag (str) - flag denoting the error on a column
  • q_flag (str) - flag denoting the quality of a measurement
  • extra_fields (list of str) - any extra columns you want to add information from
Returns: record array
array with each row a measurement

get_photometry(ID=None, extra_fields=[], **kwargs)

source code 

Download all available photometry from a star to a record array.

Extra fields will not be useful probably.

For extra kwargs, see _get_URI and gcpd2phot

_get_URI(name='GENEVA', ID=None, **kwargs)

source code 

Build GCPD URI from available options.

kwargs are to catch unused arguments.

Parameters:
  • name (string (automatically uppercased)) - photometric system name (E.g. JOHNSON, STROMGREN, GENEVA...)
  • ID (string) - star name (should be resolvable by SIMBAD)

Variables Details [hide private]

systems

Value:
{'JOHNSON': 1, 'STROMGREN': 4, 'ARGUE': 10, 'GENEVA': 13, 'KRON': 19, \
'VILNIUS': 21, 'WOOD': 22, 'WBVR': 78, 'STRAIZYS': 80, 'DDO': 12}