Packages

  • package root
    Definition Classes
    root
  • package csw
    Definition Classes
    root
  • package params

    This project is intended to hold reusable models and params used throughout the csw source code.

    Params

    This project is intended to hold reusable models and params used throughout the csw source code.

    This also provides out of the box support to cater to the diverse communication requirements. Consumer of this library will be able to create Commands, Events, States to store ParameterSets.

    Imp Packages

    Commands and Events

    This packages contains classes, traits and models used to create *commands* and *events*. These are all based on type-safe keys and items (a set of values with optional units). Each key has a specific type and the key's values must be of that type.

    Two types of csw.params.commands.Command are supported:

    Following are the concrete commands supported by csw:

    Two types of csw.params.events.Event are supported:

    core

    This package supports serialization and deserialization of commands, events and state variables in JSON format csw.params.core.formats.JsonSupport.

    Scala and Java APIs

    All the param and event classes are immutable. The set methods return a new instance of the object with a new item added and the get methods return an Option, in case the Key is not found. There are also value methods that return a value directly, throwing an exception if the key or value is not found.

    Key Types

    A set of standard key types and matching items are defined. Each key accepts one or more values of the given type.

    Following csw.params.core.generics.KeyType are supported by csw:

    +--------------+-------------------------+---------------------------+
    |  Primitive   |      Scala KeyType      |       Java KeyType        |
    +--------------+-------------------------+---------------------------+
    | Boolean      | KeyType.BooleanKey      | JKeyType.BooleanKey      |
    | Character    | KeyType.CharKey         | JKeyType.JCharKey        |
    | Byte         | KeyType.ByteKey         | JKeyType.ByteKey         |
    | Short        | KeyType.ShortKey        | JKeyType.ShortKey        |
    | Long         | KeyType.LongKey         | JKeyType.LongKey         |
    | Int          | KeyType.IntKey          | JKeyType.IntKey          |
    | Float        | KeyType.FloatKey        | JKeyType.FloatKey        |
    | Double       | KeyType.DoubleKey       | JKeyType.DoubleKey       |
    | String       | KeyType.StringKey       | JKeyType.StringKey       |
    | UtcTime      | KeyType.UTCTimeKey      | JKeyType.UTCTimeKey      |
    | TaiTime      | KeyType.TAITimeKey      | JKeyType.TAITimeKey      |
    | ----------   | ----------              | ----------               |
    | ByteArray    | KeyType.ByteArrayKey    | JKeyType.ByteArrayKey    |
    | ShortArray   | KeyType.ShortArrayKey   | JKeyType.ShortArrayKey   |
    | LongArray    | KeyType.LongArrayKey    | JKeyType.LongArrayKey    |
    | IntArray     | KeyType.IntArrayKey     | JKeyType.IntArrayKey     |
    | FloatArray   | KeyType.FloatArrayKey   | JKeyType.FloatArrayKey   |
    | DoubleArray  | KeyType.DoubleArrayKey  | JKeyType.DoubleArrayKey  |
    | ----------   | ----------              | ----------               |
    | ByteMatrix   | KeyType.ByteMatrixKey   | JKeyType.ByteMatrixKey   |
    | ShortMatrix  | KeyType.ShortMatrixKey  | JKeyType.ShortMatrixKey  |
    | LongMatrix   | KeyType.LongMatrixKey   | JKeyType.LongMatrixKey   |
    | IntMatrix    | KeyType.IntMatrixKey    | JKeyType.IntMatrixKey    |
    | FloatMatrix  | KeyType.FloatMatrixKey  | JKeyType.FloatMatrixKey  |
    | DoubleMatrix | KeyType.DoubleMatrixKey | JKeyType.DoubleMatrixKey |
    | ----------   | ----------              | ----------               |
    | Choice       | KeyType.ChoiceKey       | JKeyType.ChoiceKey       |
    +--------------+-------------------------+---------------------------+

    Detailed information about creating Keys and Parameters can be found here: https://tmtsoftware.github.io/csw/services/messages/keys-parameters.html

    Detailed information about creating commands can be found here: https://tmtsoftware.github.io/csw/services/messages/commands.html

    Detailed information about creating events can be found here: https://tmtsoftware.github.io/csw/services/messages/events.html

    Definition Classes
    csw
  • package core
    Definition Classes
    params
  • package models
    Definition Classes
    core
  • Angle
  • ArrayData
  • CalibrationLevel
  • Choice
  • Choices
  • Coords
  • ExposureId
  • ExposureIdWithObsId
  • ExposureNumber
  • Id
  • JAngle
  • JCoords
  • JEqCoord
  • MatrixData
  • ObsId
  • PMValue
  • ProgramId
  • ProperMotion
  • Semester
  • SemesterId
  • Separator
  • StandaloneExposureId
  • TYP
  • TYPLevel
  • Units

object Angle extends Serializable

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Angle
  2. Serializable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. class AngleWrapperDouble extends AnyRef

    used in implicit conversion to support 1.degree, 1.arcMinute etc

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val CIRCLE: Long
    Attributes
    protected[models]
  5. val D2H: Double

    multiply to convert degrees to archours

  6. val D2M: Int

    multiply to convert degrees to arcminute

  7. val D2Mas: Int

    multiply to convert degrees to milliarcseconds

  8. val D2R: Double

    multiply to convert degrees to radians

  9. val D2S: Int

    multiply to convert degrees to arcsecond

  10. val D2Uas: Long

    multiply to convert degrees to microarcseconds

  11. val DEGREE_SIGN: Char

    round circle which marks degrees

  12. val H2D: Double

    multiply to convert archour to degrees

  13. val H2Mas: Int

    multiply to convert hours to milliarcseconds

  14. val H2R: Double

    multiply to convert hours to radians

  15. val H2Uas: Long

    multiply to convert hours to microarcseconds

  16. val HMin2Mas: Int

    multiply to convert time minutes to milliarcseconds

  17. val HMin2Uas: Long

    multiply to convert time minutes to microarcseconds

  18. val HSec2Mas: Int

    multiply to convert time seconds to milliarcseconds

  19. val HSec2Uas: Long

    multiply to convert time seconds to microarcseconds

  20. val M2D: Double

    multiply to convert arcminute to toDegree

  21. val M2Mas: Int

    multiply to convert minutes to milliarcseconds

  22. val M2R: Double

    multiply to convert minutes to radians

  23. val M2Uas: Long

    multiply to convert minutes to microarcseconds

  24. val Mas2R: Double

    multiply to convert milliarcseconds to radians

  25. val R2D: Double

    multiply to convert radians to degrees

  26. val R2H: Double

    multiply to convert radians to hours

  27. val R2M: Double

    multiply to convert radians to minutes

  28. val R2Mas: Double

    multiply to convert radians to milliarcseconds

  29. val R2S: Double

    multiply to convert radians to arcseconds

  30. val R2Uas: Double

    multiply to convert radians to microarcseconds

  31. val S2D: Double

    multiply to convert arcsecond to toDegree

  32. val S2Mas: Int

    multiply to convert Seconds to milliarcseconds

  33. val S2R: Double

    multiply to convert arcseconds to radians

  34. val S2Uas: Long

    multiply to convert Seconds to microarcseconds

  35. val Uas2D: Double

    multiply to convert UAS to degrees

  36. val Uas2M: Double

    multiply to convert UAS to minutes

  37. val Uas2R: Double

    multiply to convert microarcseconds to radians

  38. val Uas2S: Double

    multiply to convert UAS to Seconds

  39. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  40. def assertDe(de: Double): Unit
  41. def assertRa(ra: Double): Unit
  42. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  43. def deToString(de2: Double, withColon: Boolean = true): String

    Converts DE to a string in the format 01:02:03.333 (or '1d 2m 3.333s)' Minutes and seconds are auto added as needed.

    Converts DE to a string in the format 01:02:03.333 (or '1d 2m 3.333s)' Minutes and seconds are auto added as needed.

    de2

    in radians

    withColon

    if true format as dd:mm:ss.sss, otherwise XXd XXm XXs

    returns

    de in string form

  44. def distance(ra1: Double, de1: Double, ra2: Double, de2: Double): Double

    calculate great circle distance of two points, coordinates are given in radians

    calculate great circle distance of two points, coordinates are given in radians

    returns

    distance of two points in radians

  45. implicit def double2angle(d: Double): AngleWrapperDouble
  46. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  47. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  48. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  49. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  50. implicit def int2angle(d: Int): AngleWrapperDouble
  51. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  52. implicit def long2angle(d: Long): AngleWrapperDouble
  53. def max(a1: Angle, a2: Angle): Angle

    returns maximal angle from two options

  54. def min(a1: Angle, a2: Angle): Angle

    returns minimal angle from two options

  55. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  56. def normalizeRa(ra2: Double): Double

    normalize RA into 0 - 2 * PI range

  57. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  58. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  59. def parseDe(de: String): Angle

    Tries to parse Angle from string.

    Tries to parse Angle from string. It knows common formats used for Declination

  60. def parseDe(deSign: String, deDegree: String, deMin: String, deSec: String): Angle

    Parse Declination from four values.

    Parse Declination from four values. It uses BigDecimal, so there are no rounding errors

    deSign

    signum (ie + or -)

    deDegree

    declination in degrees

    deMin

    remaining part in arcminutes

    deSec

    remaining part in arcseconds

    returns

    declination in microarcseconds

  61. def parseRa(ra: String): Angle

    Tries to parse Angle from string.

    Tries to parse Angle from string. It knows common formats used for Right ascencion (including hours)

  62. def parseRa(raHour: String, raMin: String, raSec: String): Angle

    parse Right ascencion from triple values raHour raMin, raSec This method uses big decimal, so there are no rounding errors

    parse Right ascencion from triple values raHour raMin, raSec This method uses big decimal, so there are no rounding errors

    raHour

    ra hours value as String

    raMin

    ra minutes value as String

    raSec

    ra seconds value as String

    returns

    result in microarcseconds

  63. def parseRaDe(str: String): (Angle, Angle)

    Parses pair of RA and De coordinates.

    Parses pair of RA and De coordinates. This method should handle formats used in vizier. An example: The following writings are allowed:

    20 54 05.689 +37 01 17.38, 10:12:45.3-45:17:50, 15h17m-11d10m, 15h17+89d15, 275d11m15.6954s+17d59m59.876s
    12.34567h-17.87654d, 350.123456d-17.33333d <=> 350.123456 -17.33333
    

  64. def raToString(ra: Double, withColon: Boolean = true): String

    Converts RA to a string in the format 01:02:03.333 (or '1h 2m 3.33s').

    Converts RA to a string in the format 01:02:03.333 (or '1h 2m 3.33s'). Minutes and seconds are auto added as needed.

    ra

    in radians

    withColon

    if true format as hh:mm:ss.sss, otherwise XXh XXm XXs

    returns

    ra in string form

  65. def randomDe(): Angle

    returns random angle with value between -PI/2 and + PI/2

  66. def randomRa(): Angle

    returns random angle with value between 0 and 2*PI

  67. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  68. def toString(): String
    Definition Classes
    AnyRef → Any
  69. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  70. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  71. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped