object SkyFiles
This singleton object has utilities for handling files that specify the locations of stars and (optionally) constellations on a star map.
- Alphabetic
- By Inheritance
- SkyFiles
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val DefaultStarListFile: String
The default name of the file within a star map folder that contains a list of all the visible stars.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def parseStarInfo(starAsString: String): Star
Given a single-line description of a star in a particular format, creates and returns a
Star
object.Given a single-line description of a star in a particular format, creates and returns a
Star
object. The given string consists of six or seven parts separated by semicolons. Here is an example with seven parts:0.020891;0.991435;0.128917;39801;0.45;2061;BETELGEUSE
The parts are, in order:
- the x coordinate of the star 2. the y coordinate of the star 3. the z coordinate of the star (ignored by this method) 4. the Henry Draper number of the star (used by this method as the star's ID) 5. the magnitude of the star 6. the Harvard Revised number of the star (an alternative ID ignored by this method) 7. (optional; may be missing) the name of the star
This method assumes that the first six parts will appear in any input provided. If the optional seventh part is missing, as in the example below, the star is unnamed.
0.015817;0.296915;-0.954773;39810;6.54;2062
- starAsString
a star described in six or seven semicolon-separated parts
- def readStarMap(starMapFolder: String, starListFileName: String = DefaultStarListFile): Option[StarMap]
Reads in a star map from the files in a given folder.
Reads in a star map from the files in a given folder. The folder is expected to contain at least a file that lists all the visible stars (one per line as specified under parseStarInfo). If there are any other files in the folder, each of those files is expected to define a constellation: the name of the file names the constellation, and each line of text within specifies a single line of the constellation by listing the names of two stars separated by a comma.
- starMapFolder
a path to a folder that contains the files that specify a star map
- starListFileName
the name of file within the folder that lists all the stars; defaults to DefaultStarListFile
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString: String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.