LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
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 1008 of file anetBasicAstrometry.py.

1009 def _createMetadata(bbox, wcs, filterName):
1010  """
1011  Create match metadata entries required for regenerating the catalog
1012 
1013  @param bbox bounding box of image (pixels)
1014  @param filterName Name of filter, used for magnitudes
1015  @return Metadata
1016  """
1017  meta = dafBase.PropertyList()
1018 
1019  bboxD = afwGeom.Box2D(bbox)
1020  cx, cy = bboxD.getCenter()
1021  radec = wcs.pixelToSky(cx, cy).toIcrs()
1022  meta.add('RA', radec.getRa().asDegrees(), 'field center in degrees')
1023  meta.add('DEC', radec.getDec().asDegrees(), 'field center in degrees')
1024  pixelRadius = math.hypot(*bboxD.getDimensions())/2.0
1025  skyRadius = wcs.pixelScale() * pixelRadius
1026  meta.add('RADIUS', skyRadius.asDegrees(),
1027  'field radius in degrees, approximate')
1028  meta.add('SMATCHV', 1, 'SourceMatchVector version number')
1029  if filterName is not None:
1030  meta.add('FILTER', filterName, 'LSST filter name for tagalong data')
1031  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 25 of file anetBasicAstrometry.py.