Olivares Romero, JavierSarro Baro, Luis ManuelBouy, HervéMiret Roig, NuriaCasamiquela, LaiaGalli, P. A. B.Berihuete, ÁngelTarricq, Y.2024-06-032024-06-032020-11-24Kalkayotl: A cluster distance inference code J. Olivares, L. M. Sarro, H. Bouy, N. Miret-Roig, L. Casamiquela, P. A. B. Galli, A. Berihuete and Y. Tarricq A&A, 644 (2020) A7 DOI: https://doi.org/10.1051/0004-6361/2020378460004-6361 - eISSN 1432-0746https://doi.org/10.1051/0004-6361/202037846https://hdl.handle.net/20.500.14468/22256The registered version of this article, first published in Astronomy & Astrophysics (A&A), is available online at the publisher's website: EDP Sciences, https://doi.org/10.1051/0004-6361/202037846La versión registrada de este artículo, publicado por primera vez en Astronomy & Astrophysics (A&A), está disponible en línea en el sitio web del editor: EDP Sciences, https://doi.org/10.1051/0004-6361/202037846Context. The high-precision parallax data of the Gaia mission allows for significant improvements in the distance determination to stellar clusters and their stars. In order to obtain accurate and precise distance determinations, systematics such as parallax spatial correlations need to be accounted for, especially with regard to stars in small sky regions. Aims. Our aim is to provide the astrophysical community with a free and open code designed to simultaneously infer cluster parameters (i.e., distance and size) and distances to the cluster stars using Gaia parallax measurements. The code includes cluster-oriented prior families and it is specifically designed to deal with the Gaia parallax spatial correlations. Methods. A Bayesian hierarchical model is created to allow for the inference of both the cluster parameters and distances to its stars. Results. Using synthetic data that mimics Gaia parallax uncertainties and spatial correlations, we observe that our cluster-oriented prior families result in distance estimates with smaller errors than those obtained with an exponentially decreasing space density prior. In addition, the treatment of the parallax spatial correlations minimizes errors in the estimated cluster size and stellar distances, and avoids the underestimation of uncertainties. Although neglecting the parallax spatial correlations has no impact on the accuracy of cluster distance determinations, it underestimates the uncertainties and may result in measurements that are incompatible with the true value (i.e., falling beyond the 2σ uncertainties). Conclusions. The combination of prior knowledge with the treatment of Gaia parallax spatial correlations produces accurate (error < 10%) and trustworthy estimates (i.e., true values contained within the 2σ uncertainties) of cluster distances for clusters up to ∼5 kpc, along with cluster sizes for clusters up to ∼1 kpc.enAtribución 4.0 Internacional33 Ciencias TecnológicasKalkayotl: A cluster distance inference codeartículomethods: statisticalparallaxesopen clusters and associations: generalstars: distancesvirtual observatory tools