Coverage for python/lsst/meas/algorithms/loadIndexedReferenceObjects.py : 94%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# # LSST Data Management System # # Copyright 2008-2017 AURA/LSST. # # This product includes software developed by the # LSST Project (http://www.lsst.org/). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the LSST License Statement and # the GNU General Public License along with this program. If not, # see <https://www.lsstcorp.org/LegalNotices/>. #
dtype=str, default='cal_ref_cat', doc='Name of the ingested reference dataset' )
# This needs to come from the loader config, not the dataset_config since directory aliases can # change the path where the shards are found.
"""!Load reference objects that overlap a circular sky region
@param[in] ctrCoord center of search region (an lsst.geom.SkyWcs) @param[in] radius radius of search region (an lsst.geom.Angle) @param[in] filterName name of filter, or None for the default filter; used for flux values in case we have flux limits (which are not yet implemented)
@return an lsst.pipe.base.Struct containing: - refCat a catalog of reference objects with the @link meas_algorithms_loadReferenceObjects_Schema standard schema @endlink as documented in LoadReferenceObjects, including photometric, resolved and variable; hasCentroid is False for all objects. - fluxField = name of flux field for specified filterName. None if refCat is None. """ dataId=self.indexer.make_data_id('master_schema', self.ref_dataset_name), immediate=True) continue else:
# add and initialize centroid and hasCentroid fields (these are added # after loading to avoid wasting space in the saved catalogs) # the new fields are automatically initialized to (nan, nan) and False # so no need to set them explicitly
# make sure catalog is contiguous expandedCat = expandedCat.copy(deep=True)
# return reference catalog refCat=expandedCat, fluxField=fluxField, )
"""!Get all shards that touch a circular aperture
@param[in] id_list A list of integer pixel ids @returns a list of SourceCatalogs for each pixel, None if not data exists """ dataId=self.indexer.make_data_id(pixel_id, self.ref_dataset_name)): dataId=self.indexer.make_data_id(pixel_id, self.ref_dataset_name), immediate=True))
"""!Trim a catalog to a circular aperture.
@param[in] catalog_shard SourceCatalog to be trimmed @param[in] ctrCoord ICRS coord to compare each record to (an lsst.geom.SpherePoint) @param[in] radius lsst.geom.Angle indicating maximume separation @returns a SourceCatalog constructed from records that fall in the circular aperture """ |