Reference/API¶
astroplan Package¶
astroplan is an open source (BSD licensed) observation planning package for astronomers that can help you plan for everything but the clouds.
It is an in-development Astropy affiliated package that seeks to make your life as an observational astronomer a little less infuriating.
Functions¶
|
Download and cache the IERS Bulletin A table. |
|
A function to determine whether |
|
Determines if the |
|
Determines if the |
|
rescales an input array |
|
rescales an input array |
|
Determines which month the specified |
|
Calculate fraction of the moon illuminated. |
|
Calculate lunar orbital phase in radians. |
|
Creates a table with information about observability for all the |
|
Computes all possible sequential subarrays of arr with length = window_width |
|
Run the tests using py.test. |
|
Get linearly-spaced sequence of times. |
Classes¶
|
Constrain the airmass of a target. |
|
Constrain the altitude of the target. |
Superclass for warnings used by astroplan |
|
|
Constrain the Sun to be below |
Abstract class for objects defining observational constraints. |
|
|
Define parameters for an eclipsing system; useful for an eclipsing binary or transiting exoplanet. |
|
Coordinates and metadata for an object that is "fixed" with respect to the celestial sphere. |
|
Constrain the distance between the Galactic plane and some targets. |
|
Constrain the observable hours. |
|
Constrain the fractional illumination of the Earth's moon. |
|
Constrain the distance between the Earth's moon and some targets. |
|
Placeholder for future function. |
|
A container class for information about an observer's location and environment. |
|
An observation to be scheduled, consisting of a target and associated constraints on observations. |
Using old Earth rotation data from IERS |
|
|
A periodic event defined by an epoch and period. |
|
Constrain observations to times in some range of phases for a periodic event (e.g.~transiting exoplanets, eclipsing binaries). |
Warning for when something is hidden on a plot because it's below the horizon |
|
Warnings dealing with the plotting aspects of astroplan |
|
|
Constrain observations to times during primary eclipse. |
|
A scheduler that optimizes a prioritized list. |
|
An object that represents a schedule, consisting of a list of |
|
Schedule a set of |
|
Returns scores and score arrays from the evaluation of constraints on observing blocks |
|
Constrain observations to times during secondary eclipse. |
|
A scheduler that does "stupid simple sequential scheduling". |
|
A time slot consisting of a start and end time |
|
Constrain the distance between the Sun and some targets. |
|
Abstract base class for target objects. |
Target is circumpolar |
|
Target never rises above horizon |
|
|
Constrain the observing time to be within certain time limits. |
|
Parameterizes the "dead time", e.g. |
|
A class that defines how to compute transition times from one block to another. |
Class Inheritance Diagram¶
digraph inheritance2c68e5bcb2 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "AirmassConstraint" [URL="../api/astroplan.AirmassConstraint.html#astroplan.AirmassConstraint",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Constrain the airmass of a target."]; "AltitudeConstraint" -> "AirmassConstraint" [arrowsize=0.5,style="setlinewidth(0.5)"]; "AltitudeConstraint" [URL="../api/astroplan.AltitudeConstraint.html#astroplan.AltitudeConstraint",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Constrain the altitude of the target."]; "Constraint" -> "AltitudeConstraint" [arrowsize=0.5,style="setlinewidth(0.5)"]; "AstroplanWarning" [URL="../api/astroplan.AstroplanWarning.html#astroplan.AstroplanWarning",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Superclass for warnings used by astroplan"]; "AstropyWarning" -> "AstroplanWarning" [arrowsize=0.5,style="setlinewidth(0.5)"]; "AstropyWarning" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="The base warning class from which all Astropy warnings should inherit."]; "AtNightConstraint" [URL="../api/astroplan.AtNightConstraint.html#astroplan.AtNightConstraint",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Constrain the Sun to be below ``horizon``."]; "Constraint" -> "AtNightConstraint" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Constraint" [URL="../api/astroplan.Constraint.html#astroplan.Constraint",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Abstract class for objects defining observational constraints."]; "EclipsingSystem" [URL="../api/astroplan.EclipsingSystem.html#astroplan.EclipsingSystem",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Define parameters for an eclipsing system; useful for an eclipsing binary or"]; "PeriodicEvent" -> "EclipsingSystem" [arrowsize=0.5,style="setlinewidth(0.5)"]; "FixedTarget" [URL="../api/astroplan.FixedTarget.html#astroplan.FixedTarget",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Coordinates and metadata for an object that is \"fixed\" with respect to the"]; "Target" -> "FixedTarget" [arrowsize=0.5,style="setlinewidth(0.5)"]; "GalacticLatitudeConstraint" [URL="../api/astroplan.GalacticLatitudeConstraint.html#astroplan.GalacticLatitudeConstraint",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Constrain the distance between the Galactic plane and some targets."]; "Constraint" -> "GalacticLatitudeConstraint" [arrowsize=0.5,style="setlinewidth(0.5)"]; "LocalTimeConstraint" [URL="../api/astroplan.LocalTimeConstraint.html#astroplan.LocalTimeConstraint",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Constrain the observable hours."]; "Constraint" -> "LocalTimeConstraint" [arrowsize=0.5,style="setlinewidth(0.5)"]; "MoonIlluminationConstraint" [URL="../api/astroplan.MoonIlluminationConstraint.html#astroplan.MoonIlluminationConstraint",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Constrain the fractional illumination of the Earth's moon."]; "Constraint" -> "MoonIlluminationConstraint" [arrowsize=0.5,style="setlinewidth(0.5)"]; "MoonSeparationConstraint" [URL="../api/astroplan.MoonSeparationConstraint.html#astroplan.MoonSeparationConstraint",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Constrain the distance between the Earth's moon and some targets."]; "Constraint" -> "MoonSeparationConstraint" [arrowsize=0.5,style="setlinewidth(0.5)"]; "NonFixedTarget" [URL="../api/astroplan.NonFixedTarget.html#astroplan.NonFixedTarget",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Placeholder for future function."]; "Target" -> "NonFixedTarget" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Observer" [URL="../api/astroplan.Observer.html#astroplan.Observer",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A container class for information about an observer's location and"]; "ObservingBlock" [URL="../api/astroplan.ObservingBlock.html#astroplan.ObservingBlock",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="An observation to be scheduled, consisting of a target and associated"]; "OldEarthOrientationDataWarning" [URL="../api/astroplan.OldEarthOrientationDataWarning.html#astroplan.OldEarthOrientationDataWarning",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Using old Earth rotation data from IERS"]; "AstroplanWarning" -> "OldEarthOrientationDataWarning" [arrowsize=0.5,style="setlinewidth(0.5)"]; "PeriodicEvent" [URL="../api/astroplan.PeriodicEvent.html#astroplan.PeriodicEvent",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A periodic event defined by an epoch and period."]; "PhaseConstraint" [URL="../api/astroplan.PhaseConstraint.html#astroplan.PhaseConstraint",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Constrain observations to times in some range of phases for a periodic event"]; "Constraint" -> "PhaseConstraint" [arrowsize=0.5,style="setlinewidth(0.5)"]; "PlotBelowHorizonWarning" [URL="../api/astroplan.PlotBelowHorizonWarning.html#astroplan.PlotBelowHorizonWarning",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Warning for when something is hidden on a plot because it's below the horizon"]; "PlotWarning" -> "PlotBelowHorizonWarning" [arrowsize=0.5,style="setlinewidth(0.5)"]; "PlotWarning" [URL="../api/astroplan.PlotWarning.html#astroplan.PlotWarning",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Warnings dealing with the plotting aspects of astroplan"]; "AstroplanWarning" -> "PlotWarning" [arrowsize=0.5,style="setlinewidth(0.5)"]; "PrimaryEclipseConstraint" [URL="../api/astroplan.PrimaryEclipseConstraint.html#astroplan.PrimaryEclipseConstraint",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Constrain observations to times during primary eclipse."]; "Constraint" -> "PrimaryEclipseConstraint" [arrowsize=0.5,style="setlinewidth(0.5)"]; "PriorityScheduler" [URL="../api/astroplan.PriorityScheduler.html#astroplan.PriorityScheduler",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A scheduler that optimizes a prioritized list. That is, it"]; "Scheduler" -> "PriorityScheduler" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Schedule" [URL="../api/astroplan.Schedule.html#astroplan.Schedule",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="An object that represents a schedule, consisting of a list of"]; "Scheduler" [URL="../api/astroplan.Scheduler.html#astroplan.Scheduler",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Schedule a set of `~astroplan.scheduling.ObservingBlock` objects"]; "Scorer" [URL="../api/astroplan.Scorer.html#astroplan.Scorer",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Returns scores and score arrays from the evaluation of constraints on"]; "SecondaryEclipseConstraint" [URL="../api/astroplan.SecondaryEclipseConstraint.html#astroplan.SecondaryEclipseConstraint",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Constrain observations to times during secondary eclipse."]; "Constraint" -> "SecondaryEclipseConstraint" [arrowsize=0.5,style="setlinewidth(0.5)"]; "SequentialScheduler" [URL="../api/astroplan.SequentialScheduler.html#astroplan.SequentialScheduler",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A scheduler that does \"stupid simple sequential scheduling\". That is, it"]; "Scheduler" -> "SequentialScheduler" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Slot" [URL="../api/astroplan.Slot.html#astroplan.Slot",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A time slot consisting of a start and end time"]; "SunSeparationConstraint" [URL="../api/astroplan.SunSeparationConstraint.html#astroplan.SunSeparationConstraint",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Constrain the distance between the Sun and some targets."]; "Constraint" -> "SunSeparationConstraint" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Target" [URL="../api/astroplan.Target.html#astroplan.Target",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Abstract base class for target objects."]; "TargetAlwaysUpWarning" [URL="../api/astroplan.TargetAlwaysUpWarning.html#astroplan.TargetAlwaysUpWarning",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Target is circumpolar"]; "AstroplanWarning" -> "TargetAlwaysUpWarning" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TargetNeverUpWarning" [URL="../api/astroplan.TargetNeverUpWarning.html#astroplan.TargetNeverUpWarning",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Target never rises above horizon"]; "AstroplanWarning" -> "TargetNeverUpWarning" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TimeConstraint" [URL="../api/astroplan.TimeConstraint.html#astroplan.TimeConstraint",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Constrain the observing time to be within certain time limits."]; "Constraint" -> "TimeConstraint" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TransitionBlock" [URL="../api/astroplan.TransitionBlock.html#astroplan.TransitionBlock",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Parameterizes the \"dead time\", e.g. between observations, while the"]; "Transitioner" [URL="../api/astroplan.Transitioner.html#astroplan.Transitioner",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A class that defines how to compute transition times from one block to"]; }astroplan.plots Package¶
astroplan.plots
contains functions for making plots of commonly-used
quantities in observation planning (e.g., airmass vs. time), using astroplan
and Matplotlib.
Functions¶
|
Plots airmass as a function of time for a given target. |
|
Plots altitude as a function of time for a given target. |
|
Plot survey image centered on |
|
Plots parallactic angle as a function of time for a given target. |
|
Plots when observations of targets are scheduled to occur superimposed upon plots of the airmasses of the targets. |
|
Plots target positions in the sky with respect to the observer's location. |
|
Plots target positions in the sky with respect to the observer's location over a twenty-four hour period centered on |