Gaia DR4 microlensing events — data and selection methods

Citation: Wyrzykowski et al. (2026) in prep.
Catalogue: Gaia DR4 microlensing events.

Selections reproduce the existing local catalogue viewers and are figure masks,
not the internal CU7 fitting cuts. No models were refitted for this website.

Photometry: retain finite observation time and magnitude, and finite positive
magnitude error when flux/error columns exist. sigma_mag=(2.5/ln(10))*error_flux/flux.
The existing viewer applies no residual sigma clipping and no photometric-flag
filter. All *_statistically_clipped fields are False. The old G axis was restricted
to the level-2 model minimum minus 0.12 mag and maximum plus 0.07 mag, evaluated
on 1000 equally spaced epochs. Rows outside it remain retained and are marked
g_outside_legacy_display_window. The new selection.svg shows the full range.
G/BP/RP derived finite_for_plot flags use the same finite/error criterion in each
band; the old auxiliary all-band panel only required finite time and magnitude.

Astrometry: finite CCD time, scan angle, AL centroid/error and both AL/AC parallax
factors; used_by_agis_al is retained but is not a selection criterion. Finite
nonpositive errors receive weight 1 in the legacy implementation; positive errors
receive weight 1/error^2. Weighted transit time and AL; error sqrt(1/sum(weights)).
Model predictions at retained CCD times are averaged arithmetically, matching the
old viewer. No barycentric correction is newly applied to the astrometric grid.
Single-pass transit clip: residual r = level-3 lens model minus AL; center=median(r)
among finite residual/time and positive finite transit errors. Scale=1.4826 MAD;
fallback=RMS about median. Clip |r-center| > 5*scale. Both 5p and lens residual
panels use this mask. If no point survives, the original finite-time/positive-error
fallback is retained and recorded. No per-CCD residual clip is inferred.
If a complete lens model is unavailable, clipping is not evaluable; the manifest
reports this separately instead of treating a zero clip count as a successful fit.

The new SVG uses blue points for retained samples, red crosses for clipped
astrometric transits, amber crosses for retained G points outside the old display
window, and grey crosses for other excluded but finite values. Downloaded rows
retain the original flags even when they are excluded from a plot.

Photometric models use the existing level-2 parameters and the local astromet
observer projection; astrometric models use ECLIPSE linear_model_matrix with the
existing level-2 geometry and level-3 source/theta_E parameters. The standalone
selection_methods.py embeds these helper functions for reproducibility. It does
not retrieve archive data. Requirements: numpy, astropy, astromet, pandas.

Times and units: epoch photometry and XP times are JD(TCB)-2455197.5 days. Raw
astrometry time is nanoseconds from that epoch. Barycentric correction is a
separate raw field. Photometry plots use TCB decimal year, astrometry TCB Julian
year. Epoch BP/RP uses pseudo-wavelength; it is not a calibrated nm grid. Raw
mean XP contains continuous BP/RP coefficients with covariance information.
Mean-spectrum images were calibrated by the existing GaiaXPy-C04 workflow.

Mass sample: the existing 192 good-source posterior estimates. Dark sample: all
36 members with median mass M<0.075, 1.4<=M<3, or M>=3 solar masses. No precision
cut; 8 brown-dwarf, 17 neutron-star, 11 black-hole candidates. Names, roots and
descriptions are copied from the current dark-lens catalogue, not reassigned.
Masses/distances: posterior p16, median, p84. Speed: heliocentric transverse speed;
mu_L/source mu are magnitudes with propagated uncertainty. The supplied Monte
Carlo kinematics did not have fit covariances; do not infer full joint posteriors
from marginal summaries. Missing CSV values are empty, not zero.

All identifiers must be imported as strings or exact 64-bit integers. All source
and microlensing columns from the joined 193-column source table are retained,
with existing positional fallbacks and astrometry supplement. Added physical
posterior/kinematic fields are present only for the 192 mass estimates. The
column_metadata.csv file preserves supplied units/descriptions; blank means no
unit/description was supplied or inferred. Native metadata remains in ECSV and
raw VOTables. No absent product has been manufactured.
