new Cylindrical(header, optionsopt) → {Cylindrical}
Base class for cylindrical WCS (World Coordinate System) projections.
Parameters
-
header
objectJSON representation of the image header.
-
options
projParam<optional>
Projection options: see
Projection.
Returns
-
CylindricalInstance 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
numberR cylindrical coordinate in degrees.
Returns
-
numberNative theta angle in degrees.
Source
privatestatic
_thetaToR(theta) → {number}
Convert native theta angle to cylindrical R.
Parameters
-
theta
numberNative theta angle in degrees.
Returns
-
numberR cylindrical coordinate in degrees.