Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
TristanCantatGaudin committed May 6, 2024
1 parent 8dd55f4 commit b9592bd
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 65 deletions.
40 changes: 20 additions & 20 deletions docs/notebooks/SubsampleSF_Tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"cells": [
{
"cell_type": "markdown",
"id": "58d9e9e6",
"id": "08d746b7",
"metadata": {},
"source": [
"# Selection function for a subset of the Gaia catalogue\n",
"# 📊 Selection function for a subset of the Gaia catalogue\n",
"\n",
"The GaiaUnlimited module **subsample** provides a simple way of counting sources satisfying user-defined criteria, out of the whole Gaia catalogue. The result is given per bin of colour and magnitude, and per healpix region on the sky. The coulour and magnitude binning can be chosen by the user, as well as the spatial resolution (order of the healpix tessellation).\n",
"\n",
Expand All @@ -17,7 +17,7 @@
{
"cell_type": "code",
"execution_count": 1,
"id": "5d307655",
"id": "6fc778ba",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -35,7 +35,7 @@
{
"cell_type": "code",
"execution_count": 2,
"id": "9ea2d42b",
"id": "a05f7ef2",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -48,7 +48,7 @@
},
{
"cell_type": "markdown",
"id": "583b0c9e",
"id": "54bb32f6",
"metadata": {},
"source": [
"Define dependencies of the selection function:\n",
Expand All @@ -63,7 +63,7 @@
{
"cell_type": "code",
"execution_count": 3,
"id": "c9576b2d",
"id": "f439a7ab",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -72,7 +72,7 @@
},
{
"cell_type": "markdown",
"id": "c831785e",
"id": "8759897c",
"metadata": {},
"source": [
"Launch the query to the Gaia DR3 catalogue to determine which fraction of sources have a valid radial velocity (**radial_velocity is not null**). Depending on the exact query, this operation can take ~40 minutes.\n",
Expand All @@ -85,7 +85,7 @@
{
"cell_type": "code",
"execution_count": 4,
"id": "012878a9",
"id": "80b09818",
"metadata": {},
"outputs": [
{
Expand All @@ -105,7 +105,7 @@
},
{
"cell_type": "markdown",
"id": "43a3d105",
"id": "afd1f19a",
"metadata": {},
"source": [
"Now we want to visualise the results for the entire sky, so we generate a list of coordinates of the centers of all healpix regions of order 4.\n",
Expand All @@ -118,7 +118,7 @@
{
"cell_type": "code",
"execution_count": 5,
"id": "50d49621",
"id": "558ff246",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -168,7 +168,7 @@
},
{
"cell_type": "markdown",
"id": "7a50ac0e",
"id": "03ea0986",
"metadata": {},
"source": [
"## Selection function for a user-updated table (requires authenticated query)\n",
Expand All @@ -181,7 +181,7 @@
{
"cell_type": "code",
"execution_count": 9,
"id": "d80a54f2",
"id": "655de081",
"metadata": {},
"outputs": [
{
Expand All @@ -203,7 +203,7 @@
},
{
"cell_type": "markdown",
"id": "33f1b328",
"id": "488b3867",
"metadata": {},
"source": [
"In this example we construct the selection function for the Gaia-Enceladus Sausage sample. In Castro-Ginard et al. (2023, Sect. 4) we reproduced the cuts from Helmi et al. (2018) and uploaded the table to the Gaia archive as:\n",
Expand All @@ -218,7 +218,7 @@
{
"cell_type": "code",
"execution_count": 10,
"id": "9350b3d3",
"id": "18495cc9",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -230,7 +230,7 @@
},
{
"cell_type": "markdown",
"id": "8cf4cd4b",
"id": "0ca17b9d",
"metadata": {},
"source": [
"which takes about 45 minutes to complete. The result can then be queried and displayed:"
Expand All @@ -239,7 +239,7 @@
{
"cell_type": "code",
"execution_count": 11,
"id": "964f85ac",
"id": "e0f0c574",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -290,23 +290,23 @@
{
"cell_type": "code",
"execution_count": null,
"id": "a81d187e",
"id": "78310f53",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"id": "8088a229",
"id": "3f246b2f",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
Expand All @@ -320,7 +320,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.6"
"version": "3.7.6"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit b9592bd

Please sign in to comment.