LSSTApplications  10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
Classes | Functions | Variables
lsst.meas.astrom.anetBasicAstrometry Namespace Reference

Classes

class  InitialAstrometry
 
class  ANetBasicAstrometryConfig
 
class  ANetBasicAstrometryTask
 Basic implemeentation of the astrometry.net astrometrical fitter. More...
 

Functions

def _createMetadata
 

Variables

list __all__ = ["InitialAstrometry", "ANetBasicAstrometryConfig", "ANetBasicAstrometryTask"]
 

Function Documentation

def lsst.meas.astrom.anetBasicAstrometry._createMetadata (   bbox,
  wcs,
  filterName 
)
private
Create match metadata entries required for regenerating the catalog

@param bbox  bounding box of image (pixels)
@param filterName Name of filter, used for magnitudes
@return Metadata

Definition at line 966 of file anetBasicAstrometry.py.

967 def _createMetadata(bbox, wcs, filterName):
968  """
969  Create match metadata entries required for regenerating the catalog
970 
971  @param bbox bounding box of image (pixels)
972  @param filterName Name of filter, used for magnitudes
973  @return Metadata
974  """
975  meta = dafBase.PropertyList()
976 
977  bboxD = afwGeom.Box2D(bbox)
978  cx, cy = bboxD.getCenter()
979  radec = wcs.pixelToSky(cx, cy).toIcrs()
980  meta.add('RA', radec.getRa().asDegrees(), 'field center in degrees')
981  meta.add('DEC', radec.getDec().asDegrees(), 'field center in degrees')
982  pixelRadius = math.hypot(*bboxD.getDimensions())/2.0
983  skyRadius = wcs.pixelScale() * pixelRadius
984  meta.add('RADIUS', skyRadius.asDegrees(),
985  'field radius in degrees, approximate')
986  meta.add('SMATCHV', 1, 'SourceMatchVector version number')
987  if filterName is not None:
988  meta.add('FILTER', filterName, 'LSST filter name for tagalong data')
989  return meta
Class for storing ordered metadata with comments.
Definition: PropertyList.h:81
A floating-point coordinate rectangle geometry.
Definition: Box.h:271

Variable Documentation

list lsst.meas.astrom.anetBasicAstrometry.__all__ = ["InitialAstrometry", "ANetBasicAstrometryConfig", "ANetBasicAstrometryTask"]

Definition at line 23 of file anetBasicAstrometry.py.