% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/03_gaia.R
\name{get_gaia_data}
\alias{get_gaia_data}
\title{Query Gaia Archive Data}
\usage{
get_gaia_data(vars, condition)
}
\arguments{
\item{vars}{A character string specifying the variables (columns) to
retrieve, separated by commas (e.g., \code{"source_id, ra, dec"}).}

\item{condition}{A character string specifying the SQL WHERE clause used to
filter rows (e.g., \code{"parallax > 10"}).}
}
\value{
A data frame containing the requested columns for all rows matching
  \code{condition}.
}
\description{
Queries the Gaia Archive TAP service to retrieve stellar data based on
specified variables and filter conditions. Uses the Gaia Early Data Release
3 (EDR3) catalog.
}
\details{
This function sends a synchronous ADQL query to the Gaia Archive
  TAP service at \url{https://gea.esac.esa.int/tap-server/tap/sync}. An
  internet connection is required.
}
\examples{
\donttest{
vars <- "source_id, ra, dec, phot_bp_mean_mag, phot_rp_mean_mag, parallax"
condition <- "parallax > 40"
result <- get_gaia_data(vars, condition)
head(result)
}
}
