Package csw.params.core.models
Class Coords.EqCoord
- java.lang.Object
-
- csw.params.core.models.Coords.EqCoord
-
- All Implemented Interfaces:
Coords.Coord
,java.io.Serializable
,scala.Equals
,scala.Product
- Enclosing class:
- Coords
public static class Coords.EqCoord extends java.lang.Object implements Coords.Coord, scala.Product, java.io.Serializable
Equatorial coordinates.param: tag a Tag instance (name for the coordinates) param: ra right ascension, expressed as an Angle instance param: dec declination, expressed as an Angle instance param: frame the IAU celestial reference system param: catalogName the name of the catalog from which the coordinates were taken (use "none" if unknown) param: pm proper motion
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EqCoord(Coords.Tag tag, Angle ra, Angle dec, Coords.EqFrame frame, java.lang.String catalogName, ProperMotion pm)
EqCoord(java.lang.Object ra, java.lang.Object dec, Coords.EqFrame frame, Coords.Tag tag, java.lang.String catalogName, double pmx, double pmy)
Creates an EqCoord from the given arguments, which all have default values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
catalogName()
Angle
dec()
Coords.EqFrame
frame()
ProperMotion
pm()
Angle
ra()
Coords.Tag
tag()
java.lang.String
toString()
Coords.EqCoord
withPM(double pmx, double pmy)
-
-
-
Constructor Detail
-
EqCoord
public EqCoord(Coords.Tag tag, Angle ra, Angle dec, Coords.EqFrame frame, java.lang.String catalogName, ProperMotion pm)
-
EqCoord
public EqCoord(java.lang.Object ra, java.lang.Object dec, Coords.EqFrame frame, Coords.Tag tag, java.lang.String catalogName, double pmx, double pmy)
Creates an EqCoord from the given arguments, which all have default values. The values for ra and dec may be an Angle instance, or a String that can be parsed by Angle.parseRa()- Parameters:
ra
- may be an Angle instance, or a String (in hms) that can be parsed by Angle.parseRa() or a Double value in degrees (default: 0.0)dec
- may be an Angle instance, or a String that can be parsed by Angle.parseDe() or a Double value in degrees (default: 0.0)frame
- the the IAU celestial reference system (default: ICRS)tag
- a Tag instance (name for the coordinates, default: "BASE")catalogName
- the name of the catalog from which the coordinates were taken (default: "none")pmx
- proper motion X coordinate (default: 0.0)pmy
- proper motion y coordinate (default: 0.0)
-
-
Method Detail
-
tag
public Coords.Tag tag()
- Specified by:
tag
in interfaceCoords.Coord
-
ra
public Angle ra()
-
dec
public Angle dec()
-
frame
public Coords.EqFrame frame()
-
catalogName
public java.lang.String catalogName()
-
pm
public ProperMotion pm()
-
withPM
public Coords.EqCoord withPM(double pmx, double pmy)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-