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:
-
meas : containing the photometric measurement
-
e_meas : the error on the photometric measurement
-
flag : an optional quality flag
-
unit : the unit of the measurement
-
photband : the photometric passband (FILTER.BAND)
-
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
|