Night Planner

Night planning logic

Which targets enter the calculation?

The station code selects the observing site and instrument. The evening date and station time zone define the night. Internally, windows are compared in UTC. Full night admits all eligible starts for that night. Remaining night advances the earliest allowed start to the current time.

NEOCP and PCCP come from the current candidate lists. Enabled catalogue groups add published targets. Multiple group memberships do not create a second visit to the same designation. Group order affects priority. An explicit inclusion gets priority for a suitable slot. Exclusions and targets parked for the night are handled according to their respective lists.

MPC observation times and station codes indicate whether this station has already measured a target. With repeats disabled, new targets take precedence. Previously observed targets can occupy eligible spare windows. Missing observation data keep an MPC candidate’s confirmation pending.

How is a window evaluated?

Each time-grid point is a potential start. The model tracks apparent sky position, altitude, azimuth, angular rate and magnitude from the site. Checks include night boundaries, altitude and magnitude limits, the enabled local horizon and configured observing restrictions. The full visit interval matters. Moving its start can change both the pointing and the exposure sequence.

For an uncertain orbit the available variants are projected onto the rotated rectangular detector. A safety margin reduces usable area. The planner tests coverage of all variants over the visit, then tries a central core of at least 90% when needed. The 90/95/98/99/100 columns refer to fractions of supplied variants. A nominal orbit alone cannot provide this distribution.

If one field is insufficient, the full check can build a mosaic. The specified overlap is retained. Each tile has a fixed centre, its own times and three stacks. All tile frames contribute to the visit. Initial previews may show a nominal orbit or an orbit sample. A plotted target can still be awaiting export clearance.

How are exposure, frame count and SNR estimated?

Motion is in arcseconds per minute. Seeing and the roundness limit, or the measured roundness curve when available, set a trail limit. A second limit is the larger of seeing and two pixels. The tighter limit applies. Single exposure in seconds = minimum of the camera maximum and 60 × allowed trail / angular rate, rounded down to 0.1 s. Windows below the camera minimum are rejected. The pixel scale follows the selected binning.

The magnitude is adjusted by k × (X − Xref), using target and reference airmass and extinction k in mag per airmass. Flux scales as 10 raised to −0.4 × the magnitude difference. Sky background at this altitude, added moonlight, trailing and relative read noise affect SNR. When enabled, the lunar model uses the Moon’s altitude, phase and angular separation. Other things being equal, brighter sky requires more frames.

The empirical curve gives measured SNR for stacks of 1, 2, … frames. The first adequate frame count is selected. Beyond the measurements the configured exponent extrapolates the curve. Without a curve the model uses square-root scaling. Each stack must meet the SNR target. The minimum per SNR level, the series-wide minimum and a minimum displacement can increase the required count.

For example, three stacks of eight frames at 7.5 s, with 2 s readout and 20 s slew, give 24 frames, 180 s integration and 248 s scheduled time. The effective exposure in the tooltip sums exposure time alone. Predicted SNR, actual detection and astrometric quality can differ.

Which eligible window wins?

The window index holds verified starts and ends for eligible targets. Visits must fit entirely inside the available night. Explicit exceptions apply to the corresponding inclusion. Inclusions with few options are placed first. Other windows must avoid occupied intervals. The first ordinary visit is chosen from the earliest starts.

For the balanced comparison the end time, in seconds, is adjusted by −900 for a rising target, −10 per degree of altitude, and +60 per magnitude fainter than 18. Lower is preferred. Group rank and discovery risk can decide first. The strategies below change the priorities. The search compares candidate schedules within a bounded computation budget. Changes in sources or settings can change their order.

Balanced
Uses the adjusted completion score from end time, altitude, trend and magnitude.
Few previous observations
Fewest measurements, then fewest stations, then the completion score.
First follow-up
One previous station takes precedence. For a target new to this station with one previous station, requested SNR 3–5 may use SNR 3.
Soon after discovery
Smallest known delay from discovery, falling back to the first local appearance.
Secure detection
Greater field coverage, less moonlight loss, brighter target, then completion score.
Window closes first
Earliest last eligible start.
Most targets
Compares target count, new objects and risk, including trials of shorter duration caps.
Most NEOCP/PCCP targets
Places MPC targets and inclusions first, fitting other groups into free time. Compares other strategies and uses altitude and timing reserves for ties.
Continuous use
Compares eligible schedules by occupied time, then new targets and visits.
Longest since last observation
Uses the most recent known MPC observation preceding the start under consideration.

Moving visits, freezing and filling gaps

Dragging the body moves a visit. Handles change its boundaries. Manual intervals are checked for overlap and against the geometry at their new start. Dropping a waiting target can temporarily create a conflict. A short or pending visit remains unverified. In 0.5.6 the tooltip can show the requested count from a matching evaluation or the preceding plan. A successful check supplies the confirmed frame count for the new start.

Freeze holds the displayed schedule while the worker may stage a newer revision. Outside freeze, saving visit times stores overrides for the station, night and settings. Reset removes these overrides or restores the initial frozen snapshot. Unfreezing can apply results obtained while the display was frozen.

Explicit Fill gaps identifies free intervals, tries complete verified visits in them, then checks extensions of existing visits, including manual boundaries. Where geometry permits it tests additional chip lines. The ordinary per-target duration cap and chosen minimum altitude are relaxed for the manual command. The physical and enabled local horizon, end of night, three stacks and camera field still apply. The button tooltip explains the remaining gaps.

What gets confirmed and exported?

A preview may reuse saved windows, nominal orbits or partial clouds. The worker verifies the revision for the station, instrument, night and sources. A confirmed partial plan can release verified visits while other candidates are pending. MPC targets need current list membership, observations and checked windows. Catalogue targets follow their own source checks. Missing pointing data and unverified manual intervals block export.

N.I.N.A. export uses the verified pointings, blocks, times, binning and configured time basis. In a time block the achieved count also depends on the camera and readout. Fixed-count mode specifies the number of frames. The observation simulation illustrates the workflow. Actual achieved values come from the external FITS measurements.

Where do measurements come from?

Calibration field: calibrated LIGHTs of one field in one night use WCS to map sky positions to pixels. SkyBoT finds reference objects and topocentric Horizons positions provide an independent check. Single-frame and stack measurements supply the reference. Target analysis follows the selected object. A missing readable SkyBoT table prevents the comparison at that epoch.

From 0.5.6, dark zenith sky measurement selects original star-filled LIGHTs at altitude ≥75°, within ten days on either side of the nearest new moon. The Sun must be below −18° and the Moon below 0° at start, midpoint and end. ASTAP verifies the solved field centre and photometric zero point. A matching bias or dark supplies the detector pedestal. Assuming zero ADU can bias the sky bright. At most one measurement per folder and ten in total enter the median. The local report lists the actual inputs and rejections.