|
CImage:XyToWcs
The XyToWcs method converts a
pixel coordinate to a
world coordinate system position If the World
coordinate system uses celestial coordinates, then the values
returned are right ascension and declination in units of degrees
expressed as numbers. See the related
CImage: XyToWcsStr.
Syntax
|
nRaDeg, nDecDeg = CImage:XyToWcs( x, y )
|
x and y are pixel
coordinates in pixel units and may be numbers or strings.
nRaDeg and nDecDeg are
world coordinates in units of degrees.
On success,
this method returns 2 numbers.
On failure,
this method returns 0,0.
Remarks
The right ascension and declination are both
returned in units of degrees to according to the FITS standard for
these coordinate units. Time and angles may be converted to degrees
as follows:
Right
ascension (or longitude or time) specified in degrees may be
converted to a string in hours, minutes, and seconds using
DegToHms.
Declination
specified in degrees may be converted to a string in degrees,
minutes, and seconds using
DegToDms.
Related Topics
CImage class
XyToWcsStr
WcsToXy
GetWcsType
WcsIsEq
Image Coordinate System
Subpixel Coordinate Definition
Angle Functions
Mira Pro x64 Script User's Guide, v.8.76 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.
|