Every time you click Simulate, and every night when NINA builds its schedule, Astro PM works through the same steps to turn your Active projects into a plan. This page walks through them in order, so you can predict what the scheduler will do and know which setting to change when it does something you don’t want. The examples use the default Step 1 settings and the Proportional Time Across All Targets strategy; the differences under Manual Priority are at the end.
1. Map the Night #
The night, from the end of evening twilight to the start of morning twilight, is split into five-minute steps. For every target and every step the scheduler works out whether it can be imaged:
- Is it above the project’s Min Altitude and above the site’s custom horizon?
- Is the Sun below the project’s Twilight Type threshold?
- Which of its filters does the Moon allow right now? This is decided per filter by its moon avoidance profile. A No Moon profile means the Moon must be below the horizon.
A target can therefore be usable for some filters and not others at the same moment. A bright-moon night typically leaves broadband filters only the moon-down hours, while narrowband filters can run all night.
2. Decide Who Takes Part Tonight #
A target joins tonight’s plan only if it is Active, has remaining work on an enabled filter, and has enough usable time to reach its minimum block. The minimum here is the floor: Min Time on Target reduced by Min-Time Tolerance. With a 1-hour minimum and the default 50%, a target needs at least 30 usable minutes.
End-of-target completion: when a project’s whole remaining workload is shorter than one minimum block (say 20 minutes of subs left against a 1-hour minimum), the minimum shrinks to what is left. Otherwise those last frames would never qualify and the project would never finish. The card’s Time check reads finishing — last 0.3h.
3. Book Fixed Appointments #
Exoplanet transits come first. A transit project owns its capture window (one hour before ingress to one hour after egress) outright, and everything else is scheduled around it. For that night the transit ignores filter moon rules, and dithering and filter switching are off. See Exoplanet Transit Planner.
Next, any stretch of time when only one target is up and able to image goes to that target. Nobody else could use it, so it doesn’t count against anyone’s share.
4. Share the Dark Hours First #
Time with the Moon below the horizon is the scarcest resource on most nights, so it is shared first and carefully:
- It goes first to work that can only be done with the Moon down: filters with a No Moon profile, or filters the Moon blocks at every moon-up moment this target has tonight. This is decided per filter, not per project.
- That time is shared in proportion to how much moon-down-only work each target has, but no target can take more than its fair share of the whole night. A No Moon project can’t swallow a moonless night that another project could have shared.
- A target that sets before moonrise, and so has no real moon-up time, gets the dark time its window needs first.
- Any dark time nobody else could reach goes back to the targets that were capped, rather than sitting idle.
- Remaining dark time then goes to other lunar-avoidance work, with targets that can also image moon-up giving way to those that can’t.
5. Protect Targets That Set Early #
A target whose window closes well before the end of the night (at least half an hour before the last usable moment) can only use that early stretch. Before the remaining time is shared out, it gets a protected share of its own window, in proportion to the work competing for that window. All-night targets can’t crowd it out, and it doesn’t take more than its share.
6. Share Everything Else by Entitlement #
The rest of the night is divided by entitlement: each target’s share of the whole night in proportion to its remaining work, minus what it already holds from the earlier steps. A target’s usable time is only a ceiling. If a target can’t use all of its share, the leftover is shared among the others.
Two projects with the same amount of work left therefore get about the same time, even if one is up much longer than the other. Over a season this pulls every project towards completion together. The SCHEDULING PRIORITY chips decide who goes first when targets tie for the same time.
7. Enforce Minimum Blocks #
Now the plan is checked against each project’s Min Time on Target:
- A block shorter than the minimum may borrow neighbouring time, but only time the target can actually use under its moon rules.
- A block that still falls below the floor (Min Time × (1 − Min-Time Tolerance)) is dropped, and its time goes to a neighbouring target: planned work first, then bonus.
- Blocks between the floor and the full minimum are kept. The card’s Time check shows, for example,
0.7h ≥ 0.5h floor (1.0h min).
Set Min-Time Tolerance to 0% if you never want a block shorter than the minimum. Raise it if short, moon-limited windows are being thrown away.
8. Fill Gaps and Tidy Up #
- Gap fill: a few spare minutes next to a block become more subs on the current target rather than an early slew.
- Fewer switches: an A-B-A pattern becomes A-A-B, and each target is consolidated into one continuous block where possible, with the target whose window closes first imaged first.
- No pointless visits: a leftover stretch too short for a real visit is not used for a slew. A longer idle stretch is offered to any target that can use it.
9. Write the Exposures #
Finally each block is filled with exposures, which is what you see in the Simulation Log:
- Filter order. Filters whose moon-safe time runs out soonest go first. Among equals, the filter with the most work left goes first, so channels stay balanced.
- First filter on a new target. When filters are tied, the scheduler starts with the filter already in the wheel, saving a filter change (and a filter-change autofocus) at the slew.
- Rotation. With Filter switch on, each filter shoots a batch of N subs (default 20), then rotates to the filter that has waited longest. After a pause, such as broadband stopping at moonrise, the rotation picks up where it left off.
- Tolerance. A switch only starts a filter that has time for at least the tolerance share of a batch (default 10 of 20). Near the end of a block, if nothing qualifies, the current filter keeps going.
- Tail fold. If a filter has only a few subs left (fewer than the tolerance share of a batch), they are finished in the current batch rather than costing a separate filter change later.
- Dither every N subs (default 3). With Individual filters override on, each filter uses its own Dither value instead; the count of subs since the last dither carries across a filter change.
- Overshoot subs, if set, run right after the planned subs.
- Bonus subs, if enabled, fill any time still left, rotating across the target’s filters.
- End of night. The last sub of the session may start just before the night ends and run past it.
Mosaics #
With Treat Mosaic Panels Independently on (the default), every panel is its own target in all the steps above, with its own share, its own block and its own Min Time on Target. Panels of one mosaic can therefore be imaged in separate blocks on the same night. Turn it off and the mosaic competes as a single combined target. See Mosaic Planning.
Under Manual Priority #
With Manual Priority Targeting the sharing steps are replaced by your order. Moon-down time is first reserved for work that cannot run with the Moon up tonight. Then the scheduler takes your projects in priority order and gives each one all the usable time it can take, earliest first. Transits, minimum blocks, gap fill and the exposure rules work the same way. See Scheduling Strategies.
What the Plan Leaves Out #
The plan gives slews, plate solves, filter changes, dithers and autofocus no time. A real night therefore runs a little behind the plan, and Execution Playback decides how NINA catches up. See Playback Modes.
NINA runs these same steps on the observatory PC. If its plan differs from the desktop’s, the cause is almost always the NINA profile’s location or horizon, or subs NINA has captured that the desktop hasn’t counted yet. See NINA Troubleshooting.