|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjsky.plot.ElevationPlotUtil
public class ElevationPlotUtil
A utility class for calculating elevation vs time for a given list of target positions.
Field Summary | |
---|---|
static SiteDesc[] |
AVAILABLE_SITES
Convenience definition, defines some observatory sites |
static SiteDesc |
CERRO_PANCHON
|
static SiteDesc |
MAUNA_KEA
|
static java.util.TimeZone |
UT
UT TimeZone |
Constructor Summary | |
---|---|
ElevationPlotUtil(java.util.Date date,
SiteDesc site,
TargetDesc[] targets)
Calculates the positions of the given target objects in the sky as a function of time (UT), given the date and location on Earth. |
Method Summary | |
---|---|
static double |
getAirmass(double elevation)
Return the airmass for the given elevation angle in degrees |
java.util.Date |
getLst(java.util.Date date)
Return the LST time for the given UT time at the current site. |
int |
getNumSteps()
Return the number of steps to calculate for the plot. |
static SiteDesc |
getSite(java.lang.String siteName)
Return the site for the given name, if known, otherwise the default site. |
static SiteDesc |
getSite(java.lang.String siteName,
SiteDesc defaultSite)
Return the site for the given name, if known, otherwise the given default. |
java.util.Date[][] |
getXData()
Return an array with the UT time for each target index and elevation The first index is the target index (corresponding to the array of targets passed to the constructor). |
double[][] |
getYData()
Return an array with the elevation in degrees for each target index and time The first index is the target index (corresponding to the array of targets passed to the constructor). |
double[][] |
getYDataAirmass()
Return an array with the airmass for each target index and time The first index is the target index (corresponding to the array of targets passed to the constructor). |
double[][] |
getYDataPa()
Return an array with the parallactic angles for each target index and time The first index is the target index (corresponding to the array of targets passed to the constructor). |
static double |
normalizeHours(double h)
Return an hour value between 0 and 24 |
static void |
setDefaultNumSteps(int numSteps)
Set the default number of steps to calculate for the plot. |
void |
setNumSteps(int numSteps)
Set the number of steps to calculate for the plot. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final SiteDesc MAUNA_KEA
public static final SiteDesc CERRO_PANCHON
public static final SiteDesc[] AVAILABLE_SITES
public static final java.util.TimeZone UT
Constructor Detail |
---|
public ElevationPlotUtil(java.util.Date date, SiteDesc site, TargetDesc[] targets)
date
- (in) the date of interestsite
- (in) describes the observatory locationtargets
- (in) an array describing the target objectsMethod Detail |
---|
public int getNumSteps()
public void setNumSteps(int numSteps)
public static void setDefaultNumSteps(int numSteps)
public static double getAirmass(double elevation)
public java.util.Date[][] getXData()
public double[][] getYData()
public double[][] getYDataAirmass()
public double[][] getYDataPa()
public static double normalizeHours(double h)
public static SiteDesc getSite(java.lang.String siteName, SiteDesc defaultSite)
public static SiteDesc getSite(java.lang.String siteName)
public java.util.Date getLst(java.util.Date date)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |