Method: Wcs::WorldCoor#initialize
- Defined in:
- lib/wcs/libdoc.rb
#initiallize(cra, cdec, secpix, xrpix, yrpix, nxpix, nypix, rotate, equinox, proj) ⇒ WorldCoor #initialize(naxis1, naxis2, ctype1, ctype2, crpix1, crpix2, crval1, crval2, cd, cdelt1, cdelt2, crota, equinox, epoch) ⇒ WorldCoor #initialize(hstring, wcsname) ⇒ WorldCoor
set up a WCS structure from arguments
Overloads:
-
#initiallize(cra, cdec, secpix, xrpix, yrpix, nxpix, nypix, rotate, equinox, proj) ⇒ WorldCoor
Parameters:
-
cra
(Float)
—
Center right ascension in degrees
-
cdec
(Float)
—
Center declination in degrees
-
secpix
(Float)
—
Number of arcseconds per pixel
-
xrpix
(Float)
—
Reference pixel X coordinate
-
yrpix
(Float)
—
Reference pixel X coordinate
-
nxpix
(Integer)
—
Number of pixels along x-axis
-
nypix
(Integer)
—
Number of pixels along y-axis
-
rotate
(Float)
—
Rotation angle (clockwise positive) in degrees
-
equinox
(Integer)
—
Equinox of coordinates, 1950 and 2000 supported
-
epoch
(Float)
—
Epoch of coordinates, for FK4/FK5 conversion, no effect if 0
-
proj
(String)
—
Projection
-
cra
(Float)
—
-
#initialize(naxis1, naxis2, ctype1, ctype2, crpix1, crpix2, crval1, crval2, cd, cdelt1, cdelt2, crota, equinox, epoch) ⇒ WorldCoor
Parameters:
-
naxis1
(Integer)
—
Number of pixels along x-axis
-
naxis2
(Integer)
—
Number of pixels along y-axis
-
ctype1
(String)
—
FITS WCS projection for axis 1
-
ctype2
(String)
—
FITS WCS projection for axis 2
-
crpix1
(Float)
—
Reference pixel coordinates
-
crpix2
(Float)
—
Reference pixel coordinates
-
crval1
(Float)
—
Coordinate at reference pixel in degrees
-
crval2
(Float)
—
Coordinate at reference pixel in degrees
-
cd
(Float)
—
Rotation matrix, used if not NULL
-
cdelt1
(Float)
—
scale in degrees/pixel, if cd is NULL
-
cdelt2
(Float)
—
scale in degrees/pixel, if cd is NULL
-
crota
(Float)
—
Rotation angle in degrees, if cd is NULL
-
equinox
(Integer)
—
Equinox of coordinates, 1950 and 2000 supported
-
epoch
(Float)
—
Epoch of coordinates, for FK4/FK5 conversion
-
naxis1
(Integer)
—
-
#initialize(hstring, wcsname) ⇒ WorldCoor
Parameters:
-
hstring
(String)
—
FITS header
-
wcsname
(String)
—
WCS name
-
hstring
(String)
—
36 37 |
# File 'lib/wcs/libdoc.rb', line 36 def initialize(*args) end |