import lsst.meas.algorithms.ingestIndexReferenceTask assert type(config)==lsst.meas.algorithms.ingestIndexReferenceTask.IngestIndexedReferenceConfig, 'config is of type %s.%s instead of lsst.meas.algorithms.ingestIndexReferenceTask.IngestIndexedReferenceConfig' % (type(config).__module__, type(config).__name__) import lsst.meas.algorithms.indexerRegistry import lsst.meas.algorithms.readTextCatalogTask # Version number of the persisted on-disk storage format. # Version 0 had Jy as flux units (default 0 for unversioned catalogs). # Version 1 had nJy as flux units. config.dataset_config.format_version=1 # String to pass to the butler to retrieve persisted files. config.dataset_config.ref_dataset_name='gaia_dr2_20200414' # Depth of the HTM tree to make. Default is depth=7 which gives ~ 0.3 sq. deg. per trixel. config.dataset_config.indexer['HTM'].depth=7 config.dataset_config.indexer.name='HTM' # Number of python processes to use when ingesting. config.n_processes=48 # Number of lines to skip when reading the text reference file. config.file_reader.header_lines=0 # An ordered list of column names to use in ingesting the catalog. With an empty list, column names will be discovered from the first line after the skipped header lines. config.file_reader.colnames=[] # Delimiter to use when reading text reference files. Comma is default. config.file_reader.delimiter=',' # Format of files to read, from the astropy.table I/O list here:http://docs.astropy.org/en/stable/io/unified.html#built-in-table-readers-writers config.file_reader.format='csv' # Name of RA column config.ra_name='ra' # Name of Dec column config.dec_name='dec' # Name of RA error column config.ra_err_name='ra_error' # Name of Dec error column config.dec_err_name='dec_error' # Unit of RA/Dec error fields (astropy.unit.Unit compatible) config.coord_err_unit='milliarcsecond' # The values in the reference catalog are assumed to be in AB magnitudes. List of column names to use for photometric information. At least one entry is required. config.mag_column_list=['phot_g_mean', 'phot_bp_mean', 'phot_rp_mean'] # A map of magnitude column name (key) to magnitude error column (value). config.mag_err_column_map={} # Name of column stating if satisfactory for photometric calibration (optional). config.is_photometric_name=None # Name of column stating if the object is resolved (optional). config.is_resolved_name=None # Name of column stating if the object is measured to be variable (optional). config.is_variable_name=None # Name of column to use as an identifier (optional). config.id_name='source_id' # Name of proper motion RA column config.pm_ra_name='pmra' # Name of proper motion Dec column config.pm_dec_name='pmdec' # Name of proper motion RA error column config.pm_ra_err_name='pmra_error' # Name of proper motion Dec error column config.pm_dec_err_name='pmdec_error' # Scale factor by which to multiply proper motion values to obtain units of milliarcsec/year config.pm_scale=1.0 # Name of parallax column config.parallax_name='parallax' # Name of parallax error column config.parallax_err_name='parallax_error' # Scale factor by which to multiply parallax values to obtain units of milliarcsec config.parallax_scale=1.0 # Name of epoch column config.epoch_name='ref_epoch' # Format of epoch column: any value accepted by astropy.time.Time, e.g. 'iso' or 'unix' config.epoch_format='jyear' # Scale of epoch column: any value accepted by astropy.time.Time, e.g. 'utc' config.epoch_scale='tcb' # Extra columns to add to the reference catalog. config.extra_col_names=['astrometric_excess_noise', 'phot_variable_flag']