public final class InputParameters extends Object
Converts text to objects, and performs validation. If an error is detected, then the caller can report all errors.
Constructor and Description |
---|
InputParameters(String aBeta,
String aLimitingMag,
String aCatalogDir,
String aCatalog,
String aOutputFile,
String aProjector,
String aImageSize,
String aMagnification,
String aDirectionRA,
String aDirectionDec,
String aRotation)
Construct using text only.
|
Modifier and Type | Method and Description |
---|---|
double |
getBeta() |
Catalog |
getCatalog() |
File |
getCatalogDirectory() |
double |
getDirectionOfMotionDec() |
double |
getDirectionOfMotionRA() |
int |
getImageSize() |
double |
getLimitingMagnitude() |
int |
getMagnification() |
File |
getOutputFile() |
Projector |
getProjector() |
double |
getRotation() |
String |
toString()
Intended For debugging.
|
public InputParameters(String aBeta, String aLimitingMag, String aCatalogDir, String aCatalog, String aOutputFile, String aProjector, String aImageSize, String aMagnification, String aDirectionRA, String aDirectionDec, String aRotation) throws InputParameterException
aBeta
- the Lorentz boost speed, 0 <= beta < 1.aLimitingMag
- the brightness below which a star is taken as invisible to the human eye. Typical values are in the range 4.0 to 6.0.aCatalog
- the star catalog being used as a data sourceaCatalogDir
- the directory that contains the catalog data. Must be an existing directory, must contain only
the catalog's data files and nothing else. No subdirectories will be scanned by this tool.aProjector
- the projection to use when mapping positions on the celestial sphere to the image plane.aOutputFile
- the complete file name of the generated image. The directory must already exist; it won't be created for you.aImageSize
- width of the image in pixels. The image is square, so this is also the height of the image.aMagnification
- is applied only to the half-sky projections. When beta is high, increasing the
magnification can be used to resolve stars that are crowded together in the center.aDirectionRA
- the right ascension of the direction of motion of the spacecraft, in degrees, 0..360. Defaults to the North Celestial Pole.aDirectionDec
- the declination of the direction of motion of the spacecraft, in degrees, -90..+90. Defaults to the North Celestial Pole.aRotation
- the angle to rotate the image about the center, in degrees, 0..360. Defaults to 0.InputParameterException
public double getBeta()
public double getLimitingMagnitude()
public Catalog getCatalog()
public File getCatalogDirectory()
public Projector getProjector()
public File getOutputFile()
public int getImageSize()
public int getMagnification()
public double getDirectionOfMotionRA()
public double getDirectionOfMotionDec()
public double getRotation()
Starfield - Copyright Hirondelle Systems. Published March 1, 2014