Module: Wcs
- Defined in:
- lib/wcs/libdoc.rb,
lib/wcs/version.rb
Defined Under Namespace
Classes: WorldCoor
Constant Summary collapse
- VERSION =
"0.1.2"
Class Method Summary collapse
-
.d2v3(ra, dec, r) ⇒ [x,y,z]
Convert RA and Dec in degrees and distance to vector.
-
.fk425e(ra, dec, epoch) ⇒ [ra,dec]
Convert B1950(FK4) to J2000(FK5) coordinates.
-
.fk524e(ra, dec, epoch) ⇒ [ra,dec]
Convert J2000(FK5) to B1950(FK4) coordinates.
-
.getdefwcs ⇒ Integer
Return flag for AIPS WCS set by setdefwcs.
-
.s2v3(ra, dec, r) ⇒ [x,y,z]
Convert RA and Dec in radians and distance to vector.
-
.setdefwcs(oldwcs) ⇒ nil
Set flag to use AIPS WCS instead of WCSLIB.
-
.setwcserr(errmsg) ⇒ nil
Set WCS error message for later printing.
-
.setwcsfile(filename) ⇒ nil
Set filename for WCS error message.
-
.v2d3(pos) ⇒ [ra,dec,r]
Convert vector to RA and Dec in degrees and distance.
-
.v2s3(pos) ⇒ [ra,dec,r]
Convert vector to RA and Dec in radians and distance.
-
.wcsceq(wcstring_in) ⇒ Float
Set equinox from string.
-
.wcscon(sys1, sys2, eq1, eq2, dtheta, dphi, epoch) ⇒ [dtheta,dphi]
Convert between coordinate systems and equinoxes.
-
.wcsconp(sys1, sys2, eq1, eq2, ep1, ep2, dtheta, dphi, ptheta, pphi) ⇒ [dtheta,dphi,ptheta,pphi]
Convert from coordinate system sys1 to coordinate system sys2, converting proper motions, too, and adding them if an epoch is specified.
-
.wcsconv(sys1, sys2, eq1, eq2, ep1, ep2, dtheta, dphi, ptheta, pphi, px, rv) ⇒ [dtheta,dphi,ptheta,pphi,px,rv]
Convert from coordinate system sys1 to coordinate system sys2, converting proper motions, too, and adding them if an epoch is specified.
-
.wcscstr(cstr, syswcs, equinox, epoch) ⇒ String
Set coordinate system type string from system and equinox.
-
.wcscsys(coorsys) ⇒ Integer
Return code for coordinate system in string.
-
.wcsdiff(ra1, dec1, ra2, dec2) ⇒ Float
Compute angular distance between 2 sky positions.
-
.wcsdist(ra1, dec1, ra2, dec2) ⇒ Float
Compute angular distance between 2 sky positions.
-
.wcserr ⇒ nil
Print WCS error message to stderr.
-
.wcszin(izpix) ⇒ Integer
Set third dimension for cube projections.
Class Method Details
.d2v3(ra, dec, r) ⇒ [x,y,z]
Convert RA and Dec in degrees and distance to vector
449 450 451 |
# File 'lib/wcs/libdoc.rb', line 449 def d2v3(ra,dec,r) # This function is defined in C end |
.fk425e(ra, dec, epoch) ⇒ [ra,dec]
Convert B1950(FK4) to J2000(FK5) coordinates
403 404 405 |
# File 'lib/wcs/libdoc.rb', line 403 def fk425e(ra,dec,epoch) # This function is defined in C end |
.fk524e(ra, dec, epoch) ⇒ [ra,dec]
Convert J2000(FK5) to B1950(FK4) coordinates
413 414 415 |
# File 'lib/wcs/libdoc.rb', line 413 def fk524e(ra,dec,epoch) # This function is defined in C end |
.getdefwcs ⇒ Integer
Return flag for AIPS WCS set by setdefwcs
301 302 |
# File 'lib/wcs/libdoc.rb', line 301 def getdefwcs end |
.s2v3(ra, dec, r) ⇒ [x,y,z]
Convert RA and Dec in radians and distance to vector
459 460 461 |
# File 'lib/wcs/libdoc.rb', line 459 def s2v3(ra,dec,r) # This function is defined in C end |
.setdefwcs(oldwcs) ⇒ nil
Set flag to use AIPS WCS instead of WCSLIB
295 296 297 |
# File 'lib/wcs/libdoc.rb', line 295 def setdefwcs(oldwcs) # This function is defined in C end |
.setwcserr(errmsg) ⇒ nil
Set WCS error message for later printing
282 283 284 |
# File 'lib/wcs/libdoc.rb', line 282 def setwcserr(errmsg) # This function is defined in C end |
.setwcsfile(filename) ⇒ nil
Set filename for WCS error message
316 317 318 |
# File 'lib/wcs/libdoc.rb', line 316 def setwcsfile(filename) # This function is defined in C end |
.v2d3(pos) ⇒ [ra,dec,r]
Convert vector to RA and Dec in degrees and distance
470 471 472 |
# File 'lib/wcs/libdoc.rb', line 470 def v2d3(pos) # This function is defined in C end |
.v2s3(pos) ⇒ [ra,dec,r]
Convert vector to RA and Dec in radians and distance
481 482 483 |
# File 'lib/wcs/libdoc.rb', line 481 def v2s3(pos) # This function is defined in C end |
.wcsceq(wcstring_in) ⇒ Float
Set equinox from string
429 430 431 |
# File 'lib/wcs/libdoc.rb', line 429 def wcsceq(wcstring_in) # This function is defined in C end |
.wcscon(sys1, sys2, eq1, eq2, dtheta, dphi, epoch) ⇒ [dtheta,dphi]
Convert between coordinate systems and equinoxes
393 394 395 |
# File 'lib/wcs/libdoc.rb', line 393 def wcscon(sys1,sys2,eq1,eq2,dtheta,dphi,epoch) # This function is defined in C end |
.wcsconp(sys1, sys2, eq1, eq2, ep1, ep2, dtheta, dphi, ptheta, pphi) ⇒ [dtheta,dphi,ptheta,pphi]
Convert from coordinate system sys1 to coordinate system sys2, converting proper motions, too, and adding them if an epoch is specified
378 379 |
# File 'lib/wcs/libdoc.rb', line 378 def wcsconp(sys1,sys2,eq1,eq2,ep1,ep2,dtheta,dphi,ptheta,pphi); end |
.wcsconv(sys1, sys2, eq1, eq2, ep1, ep2, dtheta, dphi, ptheta, pphi, px, rv) ⇒ [dtheta,dphi,ptheta,pphi,px,rv]
Convert from coordinate system sys1 to coordinate system sys2, converting proper motions, too, and adding them if an epoch is specified
356 357 358 |
# File 'lib/wcs/libdoc.rb', line 356 def wcsconv(sys1,sys2,eq1,eq2,ep1,ep2,dtheta,dphi,ptheta,pphi,px,rv) # This function is defined in C end |
.wcscstr(cstr, syswcs, equinox, epoch) ⇒ String
Set coordinate system type string from system and equinox
439 440 441 |
# File 'lib/wcs/libdoc.rb', line 439 def wcscstr(cstr,syswcs,equinox,epoch) # This function is defined in C end |
.wcscsys(coorsys) ⇒ Integer
Return code for coordinate system in string
421 422 423 |
# File 'lib/wcs/libdoc.rb', line 421 def wcscsys(coorsys) # This function is defined in C end |
.wcsdiff(ra1, dec1, ra2, dec2) ⇒ Float
Compute angular distance between 2 sky positions
274 275 276 |
# File 'lib/wcs/libdoc.rb', line 274 def wcsdiff(ra1,dec1,ra2,dec2) # This function is defined in C end |
.wcsdist(ra1, dec1, ra2, dec2) ⇒ Float
Compute angular distance between 2 sky positions
263 264 265 |
# File 'lib/wcs/libdoc.rb', line 263 def wcsdist(ra1,dec1,ra2,dec2) # This function is defined in C end |
.wcserr ⇒ nil
Print WCS error message to stderr
288 289 |
# File 'lib/wcs/libdoc.rb', line 288 def wcserr end |
.wcszin(izpix) ⇒ Integer
Set third dimension for cube projections
308 309 310 |
# File 'lib/wcs/libdoc.rb', line 308 def wcszin(izpix) # This function is defined in C end |