Class: Wcs::WorldCoor
- Inherits:
-
Object
- Object
- Wcs::WorldCoor
- Defined in:
- lib/wcs/libdoc.rb
Instance Method Summary collapse
-
#getradecsys ⇒ String
Name of image coordinate system.
-
#getwcsin ⇒ String
Return current input coordinate system.
-
#getwcsout ⇒ String
Return current output coordinate system.
-
#initialize(*args) ⇒ WorldCoor
constructor
set up a WCS structure from arguments.
-
#iswcs ⇒ Boolean
Returns 1 if wcs structure set, else 0.
-
#nowcs ⇒ Boolean
Returns 0 if wcs structure set, else 1.
-
#pix2wcs(xpix, ypix) ⇒ [xpos,ypos]
Convert pixel coordinates to World Coordinates.
-
#pix2wcst(xpix, ypix) ⇒ String
Convert pixel coordinates to World Coordinate string.
-
#setwcsdeg(degout) ⇒ Integer
Set WCS coordinate output format.
-
#setwcslin(mode) ⇒ Integer
Set pix2wcst() mode for LINEAR coordinates.
-
#wcs2pix(xpos, ypos) ⇒ [xpix,ypix,offscl]
Convert World Coordinates to pixel coordinates.
-
#wcsc2pix(xpos, ypos, coorsys) ⇒ [xpix,ypix,offscl]
Convert World Coordinates to pixel coordinates.
-
#wcscdset(cd) ⇒ nil
Set scaling and rotation from CD matrix.
-
#wcscent ⇒ nil
Print the image center and size in WCS units.
-
#wcsdeltset(cdelt1, cdelt2, crota) ⇒ nil
set scaling, rotation from CDELTi, CROTA2.
-
#wcseqset(equinox) ⇒ nil
Change equinox of reference pixel coordinates in WCS.
-
#wcsfull ⇒ [ra,dec,width,height]
Return RA and Dec of image center, size in degrees.
-
#wcsininit(coorsys) ⇒ nil
Set input coordinate system for wcs2pix.
-
#wcsndec ⇒ Object
Set or get number of output decimal places.
-
#wcsoutinit(coorsys) ⇒ nil
Set output coordinate system for pix2wcs.
-
#wcspcset(cdelt1, cdelt2, pc) ⇒ nil
set scaling, rotation from CDELTs and PC matrix.
-
#wcsrange ⇒ [ra1,ra2,dec1,dec1]
Return min and max RA and Dec of image in degrees.
-
#wcsreset(crpix1, crpix2, crval1, crval2, cdelt1, cdelt2, crota, cd) ⇒ Integer
Change WCS using arguments.
-
#wcsshift(cra, cdec, coorsys) ⇒ nil
Change center of WCS.
-
#wcssize ⇒ [cra,cdec,hwra,hwdec]
Return image center and size in RA and Dec.
-
#wcstype(ctype1, ctype2) ⇒ Integer
Set projection type from header CTYPEs.
-
#wcszout ⇒ Integer
Return coordinate in third dimension.
Constructor Details
#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
36 37 |
# File 'lib/wcs/libdoc.rb', line 36 def initialize(*args) end |
Instance Method Details
#getradecsys ⇒ String
Returns name of image coordinate system.
174 175 |
# File 'lib/wcs/libdoc.rb', line 174 def getradecsys end |
#getwcsin ⇒ String
Return current input coordinate system
198 199 |
# File 'lib/wcs/libdoc.rb', line 198 def getwcsin end |
#getwcsout ⇒ String
Return current output coordinate system
186 187 |
# File 'lib/wcs/libdoc.rb', line 186 def getwcsout end |
#iswcs ⇒ Boolean
Returns 1 if wcs structure set, else 0
49 50 |
# File 'lib/wcs/libdoc.rb', line 49 def iswcs end |
#nowcs ⇒ Boolean
Returns 0 if wcs structure set, else 1
53 54 |
# File 'lib/wcs/libdoc.rb', line 53 def nowcs end |
#pix2wcs(xpix, ypix) ⇒ [xpos,ypos]
Convert pixel coordinates to World Coordinates
70 71 72 |
# File 'lib/wcs/libdoc.rb', line 70 def pix2wcs(xpix,ypix) # This function is defined in C end |
#pix2wcst(xpix, ypix) ⇒ String
Convert pixel coordinates to World Coordinate string
61 62 63 |
# File 'lib/wcs/libdoc.rb', line 61 def pix2wcst(xpix,ypix) # This function is defined in C end |
#setwcsdeg(degout) ⇒ Integer
Set WCS coordinate output format
205 206 207 |
# File 'lib/wcs/libdoc.rb', line 205 def setwcsdeg(degout) # This function is defined in C end |
#setwcslin(mode) ⇒ Integer
Set pix2wcst() mode for LINEAR coordinates
242 243 |
# File 'lib/wcs/libdoc.rb', line 242 def setwcslin(mode) end |
#wcs2pix(xpos, ypos) ⇒ [xpix,ypix,offscl]
Convert World Coordinates to pixel coordinates
94 95 |
# File 'lib/wcs/libdoc.rb', line 94 def wcs2pix(xpos,ypos) end |
#wcsc2pix(xpos, ypos, coorsys) ⇒ [xpix,ypix,offscl]
Convert World Coordinates to pixel coordinates
83 84 |
# File 'lib/wcs/libdoc.rb', line 83 def wcsc2pix(xpos,ypos,coorsys) end |
#wcscdset(cd) ⇒ nil
Set scaling and rotation from CD matrix
149 150 151 |
# File 'lib/wcs/libdoc.rb', line 149 def wcscdset(cd) # This function is defined in C end |
#wcscent ⇒ nil
Print the image center and size in WCS units
120 121 |
# File 'lib/wcs/libdoc.rb', line 120 def wcscent end |
#wcsdeltset(cdelt1, cdelt2, crota) ⇒ nil
set scaling, rotation from CDELTi, CROTA2
159 160 161 |
# File 'lib/wcs/libdoc.rb', line 159 def wcsdeltset(cdelt1,cdelt2,crota) # This function is defined in C end |
#wcseqset(equinox) ⇒ nil
Change equinox of reference pixel coordinates in WCS
234 235 236 |
# File 'lib/wcs/libdoc.rb', line 234 def wcseqset(equinox) # This function is defined in C end |
#wcsfull ⇒ [ra,dec,width,height]
Return RA and Dec of image center, size in degrees
114 115 116 |
# File 'lib/wcs/libdoc.rb', line 114 def wcsfull # This function is defined in C end |
#wcsininit(coorsys) ⇒ nil
Set input coordinate system for wcs2pix
193 194 195 |
# File 'lib/wcs/libdoc.rb', line 193 def wcsininit(coorsys) # This function is defined in C end |
#wcsndec ⇒ Object
Set or get number of output decimal places
212 213 |
# File 'lib/wcs/libdoc.rb', line 212 def wcsndec end |
#wcsoutinit(coorsys) ⇒ nil
Set output coordinate system for pix2wcs
181 182 183 |
# File 'lib/wcs/libdoc.rb', line 181 def wcsoutinit(coorsys) # This function is defined in C end |
#wcspcset(cdelt1, cdelt2, pc) ⇒ nil
set scaling, rotation from CDELTs and PC matrix
169 170 171 |
# File 'lib/wcs/libdoc.rb', line 169 def wcspcset(cdelt1,cdelt2,pc) # This function is defined in C end |
#wcsrange ⇒ [ra1,ra2,dec1,dec1]
Return min and max RA and Dec of image in degrees
141 142 143 |
# File 'lib/wcs/libdoc.rb', line 141 def wcsrange # This function is defined in C end |
#wcsreset(crpix1, crpix2, crval1, crval2, cdelt1, cdelt2, crota, cd) ⇒ Integer
Change WCS using arguments
226 227 228 |
# File 'lib/wcs/libdoc.rb', line 226 def wcsreset(crpix1,crpix2,crval1,crval2,cdelt1,cdelt2,crota,cd) # This function is defined in C end |
#wcsshift(cra, cdec, coorsys) ⇒ nil
Change center of WCS
103 104 105 |
# File 'lib/wcs/libdoc.rb', line 103 def wcsshift(cra,cdec,coorsys) # This function is defined in C end |
#wcssize ⇒ [cra,cdec,hwra,hwdec]
Return image center and size in RA and Dec
130 131 132 |
# File 'lib/wcs/libdoc.rb', line 130 def wcssize # This function is defined in C end |
#wcstype(ctype1, ctype2) ⇒ Integer
Set projection type from header CTYPEs
44 45 46 |
# File 'lib/wcs/libdoc.rb', line 44 def wcstype(ctype1,ctype2) # This function is defined in C end |
#wcszout ⇒ Integer
Return coordinate in third dimension
248 249 250 |
# File 'lib/wcs/libdoc.rb', line 248 def wcszout # This function is defined in C end |