new Cylindrical(header, optionsopt) → {Cylindrical}
Base class for cylindrical WCS (World Coordinate System) projections.
Parameters
-
header
object
JSON representation of the image header.
-
options
projParam
<optional>
Projection options: see
Projection
.
Returns
-
Cylindrical
Instance of a cylindrical projection.
Source
Methods
privatestatic
_projInit()
Initialize a cylindrical projection.
Source
privatestatic
_rToTheta(r) → {number}
Convert cylindrical R coordinate to native theta angle.
Parameters
-
r
number
R cylindrical coordinate in degrees.
Returns
-
number
Native theta angle in degrees.
Source
privatestatic
_thetaToR(theta) → {number}
Convert native theta angle to cylindrical R.
Parameters
-
theta
number
Native theta angle in degrees.
Returns
-
number
R cylindrical coordinate in degrees.