From 0895e6d7916878331f36d5e5453b053e598c24a6 Mon Sep 17 00:00:00 2001 From: Allen Downey Date: Tue, 17 Nov 2020 09:46:18 -0500 Subject: [PATCH] Revisions after day 1 --- 01_query.ipynb | 496 ++++++++++++++++++++++++------------------------ 02_coords.ipynb | 15 +- 03_motion.ipynb | 4 +- 3 files changed, 253 insertions(+), 262 deletions(-) diff --git a/01_query.ipynb b/01_query.ipynb index d732d89..259a7df 100644 --- a/01_query.ipynb +++ b/01_query.ipynb @@ -138,7 +138,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 1, "metadata": { "tags": [ "remove-cell" @@ -248,107 +248,107 @@ "name": "stdout", "output_type": "stream", "text": [ - "external.external.apassdr9\n", - "external.external.gaiadr2_geometric_distance\n", - "external.external.galex_ais\n", - "external.external.ravedr5_com\n", - "external.external.ravedr5_dr5\n", - "external.external.ravedr5_gra\n", - "external.external.ravedr5_on\n", - "external.external.sdssdr13_photoprimary\n", - "external.external.skymapperdr1_master\n", - "external.external.tmass_xsc\n", - "public.public.hipparcos\n", - "public.public.hipparcos_newreduction\n", - "public.public.hubble_sc\n", - "public.public.igsl_source\n", - "public.public.igsl_source_catalog_ids\n", - "public.public.tycho2\n", - "public.public.dual\n", - "tap_config.tap_config.coord_sys\n", - "tap_config.tap_config.properties\n", - "tap_schema.tap_schema.columns\n", - "tap_schema.tap_schema.key_columns\n", - "tap_schema.tap_schema.keys\n", - "tap_schema.tap_schema.schemas\n", - "tap_schema.tap_schema.tables\n", - "gaiadr1.gaiadr1.aux_qso_icrf2_match\n", - "gaiadr1.gaiadr1.ext_phot_zero_point\n", - "gaiadr1.gaiadr1.allwise_best_neighbour\n", - "gaiadr1.gaiadr1.allwise_neighbourhood\n", - "gaiadr1.gaiadr1.gsc23_best_neighbour\n", - "gaiadr1.gaiadr1.gsc23_neighbourhood\n", - "gaiadr1.gaiadr1.ppmxl_best_neighbour\n", - "gaiadr1.gaiadr1.ppmxl_neighbourhood\n", - "gaiadr1.gaiadr1.sdss_dr9_best_neighbour\n", - "gaiadr1.gaiadr1.sdss_dr9_neighbourhood\n", - "gaiadr1.gaiadr1.tmass_best_neighbour\n", - "gaiadr1.gaiadr1.tmass_neighbourhood\n", - "gaiadr1.gaiadr1.ucac4_best_neighbour\n", - "gaiadr1.gaiadr1.ucac4_neighbourhood\n", - "gaiadr1.gaiadr1.urat1_best_neighbour\n", - "gaiadr1.gaiadr1.urat1_neighbourhood\n", - "gaiadr1.gaiadr1.cepheid\n", - "gaiadr1.gaiadr1.phot_variable_time_series_gfov\n", - "gaiadr1.gaiadr1.phot_variable_time_series_gfov_statistical_parameters\n", - "gaiadr1.gaiadr1.rrlyrae\n", - "gaiadr1.gaiadr1.variable_summary\n", - "gaiadr1.gaiadr1.allwise_original_valid\n", - "gaiadr1.gaiadr1.gsc23_original_valid\n", - "gaiadr1.gaiadr1.ppmxl_original_valid\n", - "gaiadr1.gaiadr1.sdssdr9_original_valid\n", - "gaiadr1.gaiadr1.tmass_original_valid\n", - "gaiadr1.gaiadr1.ucac4_original_valid\n", - "gaiadr1.gaiadr1.urat1_original_valid\n", - "gaiadr1.gaiadr1.gaia_source\n", - "gaiadr1.gaiadr1.tgas_source\n", - "gaiadr2.gaiadr2.aux_allwise_agn_gdr2_cross_id\n", - "gaiadr2.gaiadr2.aux_iers_gdr2_cross_id\n", - "gaiadr2.gaiadr2.aux_sso_orbit_residuals\n", - "gaiadr2.gaiadr2.aux_sso_orbits\n", - "gaiadr2.gaiadr2.dr1_neighbourhood\n", - "gaiadr2.gaiadr2.allwise_best_neighbour\n", - "gaiadr2.gaiadr2.allwise_neighbourhood\n", - "gaiadr2.gaiadr2.apassdr9_best_neighbour\n", - "gaiadr2.gaiadr2.apassdr9_neighbourhood\n", - "gaiadr2.gaiadr2.gsc23_best_neighbour\n", - "gaiadr2.gaiadr2.gsc23_neighbourhood\n", - "gaiadr2.gaiadr2.hipparcos2_best_neighbour\n", - "gaiadr2.gaiadr2.hipparcos2_neighbourhood\n", - "gaiadr2.gaiadr2.panstarrs1_best_neighbour\n", - "gaiadr2.gaiadr2.panstarrs1_neighbourhood\n", - "gaiadr2.gaiadr2.ppmxl_best_neighbour\n", - "gaiadr2.gaiadr2.ppmxl_neighbourhood\n", - "gaiadr2.gaiadr2.ravedr5_best_neighbour\n", - "gaiadr2.gaiadr2.ravedr5_neighbourhood\n", - "gaiadr2.gaiadr2.sdssdr9_best_neighbour\n", - "gaiadr2.gaiadr2.sdssdr9_neighbourhood\n", - "gaiadr2.gaiadr2.tmass_best_neighbour\n", - "gaiadr2.gaiadr2.tmass_neighbourhood\n", - "gaiadr2.gaiadr2.tycho2_best_neighbour\n", - "gaiadr2.gaiadr2.tycho2_neighbourhood\n", - "gaiadr2.gaiadr2.urat1_best_neighbour\n", - "gaiadr2.gaiadr2.urat1_neighbourhood\n", - "gaiadr2.gaiadr2.sso_observation\n", - "gaiadr2.gaiadr2.sso_source\n", - "gaiadr2.gaiadr2.vari_cepheid\n", - "gaiadr2.gaiadr2.vari_classifier_class_definition\n", - "gaiadr2.gaiadr2.vari_classifier_definition\n", - "gaiadr2.gaiadr2.vari_classifier_result\n", - "gaiadr2.gaiadr2.vari_long_period_variable\n", - "gaiadr2.gaiadr2.vari_rotation_modulation\n", - "gaiadr2.gaiadr2.vari_rrlyrae\n", - "gaiadr2.gaiadr2.vari_short_timescale\n", - "gaiadr2.gaiadr2.vari_time_series_statistics\n", - "gaiadr2.gaiadr2.panstarrs1_original_valid\n", - "gaiadr2.gaiadr2.gaia_source\n", - "gaiadr2.gaiadr2.ruwe\n" + "external.apassdr9\n", + "external.gaiadr2_geometric_distance\n", + "external.galex_ais\n", + "external.ravedr5_com\n", + "external.ravedr5_dr5\n", + "external.ravedr5_gra\n", + "external.ravedr5_on\n", + "external.sdssdr13_photoprimary\n", + "external.skymapperdr1_master\n", + "external.tmass_xsc\n", + "public.hipparcos\n", + "public.hipparcos_newreduction\n", + "public.hubble_sc\n", + "public.igsl_source\n", + "public.igsl_source_catalog_ids\n", + "public.tycho2\n", + "public.dual\n", + "tap_config.coord_sys\n", + "tap_config.properties\n", + "tap_schema.columns\n", + "tap_schema.key_columns\n", + "tap_schema.keys\n", + "tap_schema.schemas\n", + "tap_schema.tables\n", + "gaiadr1.aux_qso_icrf2_match\n", + "gaiadr1.ext_phot_zero_point\n", + "gaiadr1.allwise_best_neighbour\n", + "gaiadr1.allwise_neighbourhood\n", + "gaiadr1.gsc23_best_neighbour\n", + "gaiadr1.gsc23_neighbourhood\n", + "gaiadr1.ppmxl_best_neighbour\n", + "gaiadr1.ppmxl_neighbourhood\n", + "gaiadr1.sdss_dr9_best_neighbour\n", + "gaiadr1.sdss_dr9_neighbourhood\n", + "gaiadr1.tmass_best_neighbour\n", + "gaiadr1.tmass_neighbourhood\n", + "gaiadr1.ucac4_best_neighbour\n", + "gaiadr1.ucac4_neighbourhood\n", + "gaiadr1.urat1_best_neighbour\n", + "gaiadr1.urat1_neighbourhood\n", + "gaiadr1.cepheid\n", + "gaiadr1.phot_variable_time_series_gfov\n", + "gaiadr1.phot_variable_time_series_gfov_statistical_parameters\n", + "gaiadr1.rrlyrae\n", + "gaiadr1.variable_summary\n", + "gaiadr1.allwise_original_valid\n", + "gaiadr1.gsc23_original_valid\n", + "gaiadr1.ppmxl_original_valid\n", + "gaiadr1.sdssdr9_original_valid\n", + "gaiadr1.tmass_original_valid\n", + "gaiadr1.ucac4_original_valid\n", + "gaiadr1.urat1_original_valid\n", + "gaiadr1.gaia_source\n", + "gaiadr1.tgas_source\n", + "gaiadr2.aux_allwise_agn_gdr2_cross_id\n", + "gaiadr2.aux_iers_gdr2_cross_id\n", + "gaiadr2.aux_sso_orbit_residuals\n", + "gaiadr2.aux_sso_orbits\n", + "gaiadr2.dr1_neighbourhood\n", + "gaiadr2.allwise_best_neighbour\n", + "gaiadr2.allwise_neighbourhood\n", + "gaiadr2.apassdr9_best_neighbour\n", + "gaiadr2.apassdr9_neighbourhood\n", + "gaiadr2.gsc23_best_neighbour\n", + "gaiadr2.gsc23_neighbourhood\n", + "gaiadr2.hipparcos2_best_neighbour\n", + "gaiadr2.hipparcos2_neighbourhood\n", + "gaiadr2.panstarrs1_best_neighbour\n", + "gaiadr2.panstarrs1_neighbourhood\n", + "gaiadr2.ppmxl_best_neighbour\n", + "gaiadr2.ppmxl_neighbourhood\n", + "gaiadr2.ravedr5_best_neighbour\n", + "gaiadr2.ravedr5_neighbourhood\n", + "gaiadr2.sdssdr9_best_neighbour\n", + "gaiadr2.sdssdr9_neighbourhood\n", + "gaiadr2.tmass_best_neighbour\n", + "gaiadr2.tmass_neighbourhood\n", + "gaiadr2.tycho2_best_neighbour\n", + "gaiadr2.tycho2_neighbourhood\n", + "gaiadr2.urat1_best_neighbour\n", + "gaiadr2.urat1_neighbourhood\n", + "gaiadr2.sso_observation\n", + "gaiadr2.sso_source\n", + "gaiadr2.vari_cepheid\n", + "gaiadr2.vari_classifier_class_definition\n", + "gaiadr2.vari_classifier_definition\n", + "gaiadr2.vari_classifier_result\n", + "gaiadr2.vari_long_period_variable\n", + "gaiadr2.vari_rotation_modulation\n", + "gaiadr2.vari_rrlyrae\n", + "gaiadr2.vari_short_timescale\n", + "gaiadr2.vari_time_series_statistics\n", + "gaiadr2.panstarrs1_original_valid\n", + "gaiadr2.gaia_source\n", + "gaiadr2.ruwe\n" ] } ], "source": [ - "for table in (tables):\n", - " print(table.get_qualified_name())" + "for table in tables:\n", + " print(table.name)" ] }, { @@ -368,7 +368,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 5, "metadata": {}, "outputs": [ { @@ -383,10 +383,10 @@ { "data": { "text/plain": [ - "" + "" ] }, - "execution_count": 7, + "execution_count": 5, "metadata": {}, "output_type": "execute_result" } @@ -432,20 +432,12 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Notice one gotcha: in the list of table names, this table appears as `gaiadr2.gaiadr2.gaia_source`, but when we load the metadata, we refer to it as `gaiadr2.gaia_source`.\n", - "\n", - "**Exercise:** Go back and try\n", - "\n", - "```\n", - "meta = Gaia.load_table('gaiadr2.gaiadr2.gaia_source')\n", - "```\n", - "\n", - "What happens? Is the error message helpful? If you had not made this error deliberately, would you have been able to figure it out?" + "In `meta`, the name of the table appears as `gaiadr2.gaiadr2.gaia_source`, which is the \"qualified name\", but when we load the metadata, we refer to it as `gaiadr2.gaia_source`." ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 7, "metadata": { "tags": [ "hide-cell" @@ -479,7 +471,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 8, "metadata": { "tags": [ "hide-output" @@ -608,14 +600,12 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "**Exercise:** One of the other tables we'll use is `gaiadr2.gaiadr2.panstarrs1_original_valid`. Use `load_table` to get the metadata for this table. How many columns are there and what are their names?\n", - "\n", - "Hint: Remember the gotcha we mentioned earlier." + "**Exercise:** One of the other tables we'll use is `gaiadr2.panstarrs1_original_valid`. Use `load_table` to get the metadata for this table. How many columns are there and what are their names?" ] }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 9, "metadata": { "scrolled": true, "tags": [ @@ -710,7 +700,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 10, "metadata": { "tags": [ "hide-cell" @@ -772,7 +762,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 11, "metadata": {}, "outputs": [], "source": [ @@ -810,16 +800,16 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": 12, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "" + "" ] }, - "execution_count": 11, + "execution_count": 12, "metadata": {}, "output_type": "execute_result" } @@ -840,7 +830,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": 13, "metadata": {}, "outputs": [ { @@ -848,17 +838,17 @@ "output_type": "stream", "text": [ "\n", - " name dtype unit description \n", - "--------- ------- ---- ------------------------------------------------------------------\n", - "source_id int64 Unique source identifier (unique within a particular Data Release)\n", - "ref_epoch float64 yr Reference epoch\n", - " ra float64 deg Right ascension\n", - " dec float64 deg Declination\n", - " parallax float64 mas Parallax\n", + " name dtype unit description n_bad\n", + "--------- ------- ---- ------------------------------------------------------------------ -----\n", + "source_id int64 Unique source identifier (unique within a particular Data Release) 0\n", + "ref_epoch float64 yr Reference epoch 0\n", + " ra float64 deg Right ascension 0\n", + " dec float64 deg Declination 0\n", + " parallax float64 mas Parallax 2\n", "Jobid: None\n", "Phase: COMPLETED\n", "Owner: None\n", - "Output file: sync_20201005090721.xml.gz\n", + "Output file: sync_20201117092213.xml.gz\n", "Results: None\n" ] } @@ -878,7 +868,7 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": 14, "metadata": {}, "outputs": [ { @@ -887,7 +877,7 @@ "astropy.table.table.Table" ] }, - "execution_count": 13, + "execution_count": 14, "metadata": {}, "output_type": "execute_result" } @@ -901,7 +891,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "**Optional detail:** Why is `table` repeated three times? The first is the name of the module, the second is the name of the submodule, and the third is the name of the class. Most of the time we only care about the last one. It's like the Linnean name for gorilla, which is *Gorilla Gorilla Gorilla*." + "**Optional detail:** Why is `table` repeated three times? The first is the name of the module, the second is the name of the submodule, and the third is the name of the class. Most of the time we only care about the last one. It's like the Linnean name for gorilla, which is *Gorilla gorilla gorilla*." ] }, { @@ -919,27 +909,27 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": 15, "metadata": {}, "outputs": [ { "data": { "text/html": [ "Table length=10\n", - "
\n", + "
\n", "\n", "\n", "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", "
source_idref_epochradecparallax
yrdegdegmas
int64float64float64float64float64
45307383617937696002015.5281.5672536244872520.406821174303780.9785380604519425
45307526511350812162015.5281.086156535525720.5233504963518460.2674800612552977
45307433439514055682015.5281.3711441829917720.474147574053124-0.43911323550176806
45307550606271623682015.5281.267623626829920.5585239223461581.1422630184554958
45307468443413159682015.5281.137043174954120.3778523888981841.0092247424630945
45307684566150264322015.5281.872092143634720.31829694530366-0.06900136127674149
45307635131191372802015.5281.921180886411620.209568295785240.1266016679823622
45307363646185392642015.5281.491347561327420.3465790413276930.3894019486060072
45307359523051777282015.5281.408554916570420.3110309037199280.2041189982608354
45307512810560226562015.5281.058532837763820.4603095562147530.10294642821734962
20295341609128579842015.5302.122101116262629.4642424055819030.26719312673637957
20295275638435226882015.5301.7663548833347729.297302003155878-0.5339115955037064
20295301751944967682015.5301.8497990722034429.4248175710562520.4993858623581147
20295529900569653762015.5302.6123315163896529.69609949341979--
20295591748078085122015.5302.0855426972097529.5689374288911360.07378124688708597
20295341265515654402015.5302.138359545234629.4560049110412--
20295340234857504002015.5302.0623409915989429.463904128839516-0.6248984748555095
20295529900534705922015.5302.6127392000765329.701315238258985-0.5113424569489686
20295454309122366722015.5302.275274512996729.4820010002319680.049122831032945236
20295344357908295682015.5302.0896293621765429.4900160529935431.0104447723028214
" ], "text/plain": [ @@ -948,19 +938,19 @@ " yr ... deg mas \n", " int64 float64 ... float64 float64 \n", "------------------- --------- ... ------------------ --------------------\n", - "4530738361793769600 2015.5 ... 20.40682117430378 0.9785380604519425\n", - "4530752651135081216 2015.5 ... 20.523350496351846 0.2674800612552977\n", - "4530743343951405568 2015.5 ... 20.474147574053124 -0.43911323550176806\n", - "4530755060627162368 2015.5 ... 20.558523922346158 1.1422630184554958\n", - "4530746844341315968 2015.5 ... 20.377852388898184 1.0092247424630945\n", - "4530768456615026432 2015.5 ... 20.31829694530366 -0.06900136127674149\n", - "4530763513119137280 2015.5 ... 20.20956829578524 0.1266016679823622\n", - "4530736364618539264 2015.5 ... 20.346579041327693 0.3894019486060072\n", - "4530735952305177728 2015.5 ... 20.311030903719928 0.2041189982608354\n", - "4530751281056022656 2015.5 ... 20.460309556214753 0.10294642821734962" + "2029534160912857984 2015.5 ... 29.464242405581903 0.26719312673637957\n", + "2029527563843522688 2015.5 ... 29.297302003155878 -0.5339115955037064\n", + "2029530175194496768 2015.5 ... 29.424817571056252 0.4993858623581147\n", + "2029552990056965376 2015.5 ... 29.69609949341979 --\n", + "2029559174807808512 2015.5 ... 29.568937428891136 0.07378124688708597\n", + "2029534126551565440 2015.5 ... 29.4560049110412 --\n", + "2029534023485750400 2015.5 ... 29.463904128839516 -0.6248984748555095\n", + "2029552990053470592 2015.5 ... 29.701315238258985 -0.5113424569489686\n", + "2029545430912236672 2015.5 ... 29.482001000231968 0.049122831032945236\n", + "2029534435790829568 2015.5 ... 29.490016052993543 1.0104447723028214" ] }, - "execution_count": 14, + "execution_count": 15, "metadata": {}, "output_type": "execute_result" } @@ -1010,7 +1000,7 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": 16, "metadata": {}, "outputs": [], "source": [ @@ -1034,7 +1024,7 @@ }, { "cell_type": "code", - "execution_count": 16, + "execution_count": 17, "metadata": {}, "outputs": [ { @@ -1050,10 +1040,10 @@ " ra float64 deg Right ascension\n", " dec float64 deg Declination\n", " parallax float64 mas Parallax\n", - "Jobid: 1601903242219O\n", + "Jobid: 1605622934969O\n", "Phase: COMPLETED\n", "Owner: None\n", - "Output file: async_20201005090722.vot\n", + "Output file: async_20201117092215.vot\n", "Results: None\n" ] } @@ -1072,68 +1062,68 @@ }, { "cell_type": "code", - "execution_count": 17, + "execution_count": 18, "metadata": {}, "outputs": [ { "data": { "text/html": [ "Table length=3000\n", - "\n", + "
\n", "\n", "\n", "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", "
source_idref_epochradecparallax
yrdegdegmas
int64float64float64float64float64
45307383617937696002015.5281.5672536244872520.406821174303780.9785380604519425
45307526511350812162015.5281.086156535525720.5233504963518460.2674800612552977
45307433439514055682015.5281.3711441829917720.474147574053124-0.43911323550176806
45307684566150264322015.5281.872092143634720.31829694530366-0.06900136127674149
45307635131191372802015.5281.921180886411620.209568295785240.1266016679823622
45307363646185392642015.5281.491347561327420.3465790413276930.3894019486060072
45307359523051777282015.5281.408554916570420.3110309037199280.2041189982608354
45307512810560226562015.5281.058532837763820.4603095562147530.10294642821734962
45307409387744093442015.5281.376256953641620.4361400589412060.9242670062090182
20295341609128579842015.5302.122101116262629.4642424055819030.26719312673637957
20295275638435226882015.5301.7663548833347729.297302003155878-0.5339115955037064
20295301751944967682015.5301.8497990722034429.4248175710562520.4993858623581147
20295591748078085122015.5302.0855426972097529.5689374288911360.07378124688708597
20295340234857504002015.5302.0623409915989429.463904128839516-0.6248984748555095
20295529900534705922015.5302.6127392000765329.701315238258985-0.5113424569489686
20295454309122366722015.5302.275274512996729.4820010002319680.049122831032945236
20295513751541681922015.5302.632271948452529.629231848937902-0.4273623555622012
20295371845816800002015.5301.827087782926929.4819459774231160.686631849492751
...............
44677109150118026242015.5269.96809693073471.14290850381608820.42361471245557913
44677065513286795522015.5270.0331645898811.05657473236899270.922888231734588
44677122550373000962015.5270.77247179230470.6581664892880896-2.669179465293931
44677350011817617922015.5270.36286062483080.89470793235991240.6117399163086398
44677371014219166722015.5270.51108346614440.9806225910160181-0.39818224846127004
44677075477573274882015.5269.887462805949271.02127599401369620.7741412301054209
44677327720945730562015.5270.559971827601260.9037072088489417-1.7920417800164183
44677323554910877442015.5270.67307907024910.9197224705139885-0.3464446494840354
44677170997669445122015.5270.576671731208250.7262776590095680.05443955111134051
44677190582657812482015.5270.72480529715140.82055519217827850.3733943917490343
53510236172489352962015.5163.20342713669297-57.45843664435045-0.12712245925716417
53510130344032610562015.5162.76029338894156-57.57725086313733-0.04737425207265826
62300897220240565762015.5221.13188844526658-23.8561294236985760.40215405335632315
62299812483295915522015.5219.5757477670797-24.520741795344115-0.1711128865194354
62301631144256919042015.5220.67263853794475-23.502746567943603-0.0983885985018888
62299324918612523522015.5220.73523627555818-24.6407086810773280.4328661904699682
62300168793791302402015.5219.83052324579677-24.20612448929150.3925985611610745
62300733667877728002015.5221.47192783117885-23.9591396662941280.48625897986634425
62301450755630017282015.5221.03467394339305-23.580996200476610.4002784743473182
62301670314358137602015.5220.7851856662174-23.336372421616733-0.8736321545140885
" ], "text/plain": [ "\n", - " source_id ref_epoch ... dec parallax \n", - " yr ... deg mas \n", - " int64 float64 ... float64 float64 \n", - "------------------- --------- ... ------------------ --------------------\n", - "4530738361793769600 2015.5 ... 20.40682117430378 0.9785380604519425\n", - "4530752651135081216 2015.5 ... 20.523350496351846 0.2674800612552977\n", - "4530743343951405568 2015.5 ... 20.474147574053124 -0.43911323550176806\n", - "4530768456615026432 2015.5 ... 20.31829694530366 -0.06900136127674149\n", - "4530763513119137280 2015.5 ... 20.20956829578524 0.1266016679823622\n", - "4530736364618539264 2015.5 ... 20.346579041327693 0.3894019486060072\n", - "4530735952305177728 2015.5 ... 20.311030903719928 0.2041189982608354\n", - "4530751281056022656 2015.5 ... 20.460309556214753 0.10294642821734962\n", - "4530740938774409344 2015.5 ... 20.436140058941206 0.9242670062090182\n", - " ... ... ... ... ...\n", - "4467710915011802624 2015.5 ... 1.1429085038160882 0.42361471245557913\n", - "4467706551328679552 2015.5 ... 1.0565747323689927 0.922888231734588\n", - "4467712255037300096 2015.5 ... 0.6581664892880896 -2.669179465293931\n", - "4467735001181761792 2015.5 ... 0.8947079323599124 0.6117399163086398\n", - "4467737101421916672 2015.5 ... 0.9806225910160181 -0.39818224846127004\n", - "4467707547757327488 2015.5 ... 1.0212759940136962 0.7741412301054209\n", - "4467732772094573056 2015.5 ... 0.9037072088489417 -1.7920417800164183\n", - "4467732355491087744 2015.5 ... 0.9197224705139885 -0.3464446494840354\n", - "4467717099766944512 2015.5 ... 0.726277659009568 0.05443955111134051\n", - "4467719058265781248 2015.5 ... 0.8205551921782785 0.3733943917490343" + " source_id ref_epoch ... dec parallax \n", + " yr ... deg mas \n", + " int64 float64 ... float64 float64 \n", + "------------------- --------- ... ------------------- --------------------\n", + "2029534160912857984 2015.5 ... 29.464242405581903 0.26719312673637957\n", + "2029527563843522688 2015.5 ... 29.297302003155878 -0.5339115955037064\n", + "2029530175194496768 2015.5 ... 29.424817571056252 0.4993858623581147\n", + "2029559174807808512 2015.5 ... 29.568937428891136 0.07378124688708597\n", + "2029534023485750400 2015.5 ... 29.463904128839516 -0.6248984748555095\n", + "2029552990053470592 2015.5 ... 29.701315238258985 -0.5113424569489686\n", + "2029545430912236672 2015.5 ... 29.482001000231968 0.049122831032945236\n", + "2029551375154168192 2015.5 ... 29.629231848937902 -0.4273623555622012\n", + "2029537184581680000 2015.5 ... 29.481945977423116 0.686631849492751\n", + " ... ... ... ... ...\n", + "5351023617248935296 2015.5 ... -57.45843664435045 -0.12712245925716417\n", + "5351013034403261056 2015.5 ... -57.57725086313733 -0.04737425207265826\n", + "6230089722024056576 2015.5 ... -23.856129423698576 0.40215405335632315\n", + "6229981248329591552 2015.5 ... -24.520741795344115 -0.1711128865194354\n", + "6230163114425691904 2015.5 ... -23.502746567943603 -0.0983885985018888\n", + "6229932491861252352 2015.5 ... -24.640708681077328 0.4328661904699682\n", + "6230016879379130240 2015.5 ... -24.2061244892915 0.3925985611610745\n", + "6230073366787772800 2015.5 ... -23.959139666294128 0.48625897986634425\n", + "6230145075563001728 2015.5 ... -23.58099620047661 0.4002784743473182\n", + "6230167031435813760 2015.5 ... -23.336372421616733 -0.8736321545140885" ] }, - "execution_count": 17, + "execution_count": 18, "metadata": {}, "output_type": "execute_result" } @@ -1210,7 +1200,7 @@ }, { "cell_type": "code", - "execution_count": 18, + "execution_count": 19, "metadata": { "tags": [ "hide-cell" @@ -1232,7 +1222,7 @@ }, { "cell_type": "code", - "execution_count": 19, + "execution_count": 20, "metadata": { "tags": [ "hide-cell" @@ -1273,16 +1263,16 @@ }, { "cell_type": "code", - "execution_count": 20, + "execution_count": 21, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "(None, '1601903242219O')" + "(None, '1605622934969O')" ] }, - "execution_count": 20, + "execution_count": 21, "metadata": {}, "output_type": "execute_result" } @@ -1300,7 +1290,7 @@ }, { "cell_type": "code", - "execution_count": 21, + "execution_count": 22, "metadata": { "scrolled": true }, @@ -1309,7 +1299,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "Removed jobs: '['1601903242219O']'.\n" + "Removed jobs: '['1605622934969O']'.\n" ] } ], @@ -1342,7 +1332,7 @@ }, { "cell_type": "code", - "execution_count": 22, + "execution_count": 23, "metadata": {}, "outputs": [], "source": [ @@ -1358,7 +1348,7 @@ }, { "cell_type": "code", - "execution_count": 23, + "execution_count": 24, "metadata": {}, "outputs": [], "source": [ @@ -1381,7 +1371,7 @@ }, { "cell_type": "code", - "execution_count": 24, + "execution_count": 25, "metadata": {}, "outputs": [], "source": [ @@ -1397,7 +1387,7 @@ }, { "cell_type": "code", - "execution_count": 25, + "execution_count": 26, "metadata": {}, "outputs": [ { @@ -1406,7 +1396,7 @@ "'SELECT TOP 10 \\nsource_id, ra, dec, pmra, pmdec, parallax, parallax_error, radial_velocity\\nFROM gaiadr2.gaia_source\\nWHERE parallax < 1\\n AND bp_rp BETWEEN -0.75 AND 2\\n'" ] }, - "execution_count": 25, + "execution_count": 26, "metadata": {}, "output_type": "execute_result" } @@ -1424,7 +1414,7 @@ }, { "cell_type": "code", - "execution_count": 26, + "execution_count": 27, "metadata": {}, "outputs": [ { @@ -1455,7 +1445,7 @@ }, { "cell_type": "code", - "execution_count": 27, + "execution_count": 28, "metadata": { "scrolled": true }, @@ -1478,7 +1468,7 @@ "Jobid: None\n", "Phase: COMPLETED\n", "Owner: None\n", - "Output file: sync_20201005090726.xml.gz\n", + "Output file: sync_20201117092220.xml.gz\n", "Results: None\n" ] } @@ -1490,48 +1480,48 @@ }, { "cell_type": "code", - "execution_count": 28, + "execution_count": 29, "metadata": {}, "outputs": [ { "data": { "text/html": [ "Table length=10\n", - "
\n", + "
\n", "\n", "\n", "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", "
source_idradecpmrapmdecparallaxparallax_errorradial_velocity
degdegmas / yrmas / yrmasmaskm / s
int64float64float64float64float64float64float64float64
4467710915011802624269.96809693073471.14290850381608822.0233280236600626-2.56924278755102660.423614712455579130.470352406647465--
4467706551328679552270.0331645898811.0565747323689927-3.414829591355289-3.84372158574957370.9228882317345880.927008559859825--
4467712255037300096270.77247179230470.6581664892880896-3.5620173752896025-6.595792323153987-2.6691794652939310.9719742773203504--
4467735001181761792270.36286062483080.89470793235991242.13070799264892050.88267277109107120.61173991630863980.509812721702093--
4467737101421916672270.51108346614440.98062259101601810.17532366511560785-5.113270239706202-0.398182248461270040.7549581886719651--
4467707547757327488269.887462805949271.0212759940136962-2.6382230817672987-3.7077765320492870.77414123010542090.3022057897812064--
4467732355491087744270.67307907024910.9197224705139885-2.2735991502653037-11.864952855984358-0.34644464948403540.4937921513912002--
4467717099766944512270.576671731208250.726277659009568-3.4598362614808367-4.6014268933659210.054439551111340510.8867339293525688--
4467719058265781248270.72480529715140.8205551921782785-3.255079498426542-9.2492850691110850.37339439174903430.390952370410666--
4467722326741572352270.874312918885040.85955659758691580.106963983518598261.2035993780158853-0.118509434328643730.1660452431882023--
6230144152145537152221.00484394613122-23.650193344617016-3.5074596301747727-10.2249217832699790.44726118066401590.1288335146382159--
6230171669999288192222.11986606839224-24.50411126495661-3.5454562059199444-4.58989567702560650.012350777585595440.6798312067588314--
6230030795072008832220.6858032920676-24.529155332809893-7.395300108444131-2.35096443957547230.91921930900127221.011426390802751--
6230121401702753664220.2681390809788-23.90595652859401-0.9310688845911029-4.8509751419453760.78926601626169560.612231874239708--
6229987570521485440219.69736802123325-24.463333246855726-1.2742408484284249-3.4048993859004980.22153668536996050.21596169286289862--
6230018425567339520220.1035725206795-24.232146422440013.5001851583023207-7.5224361584235040.106945867406806140.8296685650840913--
6230130266515510528220.4226870525988-23.73255151335769-2.363789876365865-4.7034380389086090.30477251873021320.2970783741597157--
6230061757492831616221.17289130564805-24.25689151102804-2.857319870871607-3.37527560102156960.57184617008194170.08382745553667581--
2003409519814774528339.9327812858470654.693746629826066-4.309526744320447-4.179418290817069-0.034221819684481890.16657261834688394--
2003390901139218816338.710347564166554.8423710812471440.9558208039434155-3.9189553879811840.70729748945880370.4296262772904238--
" ], "text/plain": [ "\n", - " source_id ra ... parallax_error radial_velocity\n", - " deg ... mas km / s \n", - " int64 float64 ... float64 float64 \n", - "------------------- ------------------ ... ------------------ ---------------\n", - "4467710915011802624 269.9680969307347 ... 0.470352406647465 --\n", - "4467706551328679552 270.033164589881 ... 0.927008559859825 --\n", - "4467712255037300096 270.7724717923047 ... 0.9719742773203504 --\n", - "4467735001181761792 270.3628606248308 ... 0.509812721702093 --\n", - "4467737101421916672 270.5110834661444 ... 0.7549581886719651 --\n", - "4467707547757327488 269.88746280594927 ... 0.3022057897812064 --\n", - "4467732355491087744 270.6730790702491 ... 0.4937921513912002 --\n", - "4467717099766944512 270.57667173120825 ... 0.8867339293525688 --\n", - "4467719058265781248 270.7248052971514 ... 0.390952370410666 --\n", - "4467722326741572352 270.87431291888504 ... 0.1660452431882023 --" + " source_id ra ... parallax_error radial_velocity\n", + " deg ... mas km / s \n", + " int64 float64 ... float64 float64 \n", + "------------------- ------------------ ... ------------------- ---------------\n", + "6230144152145537152 221.00484394613122 ... 0.1288335146382159 --\n", + "6230171669999288192 222.11986606839224 ... 0.6798312067588314 --\n", + "6230030795072008832 220.6858032920676 ... 1.011426390802751 --\n", + "6230121401702753664 220.2681390809788 ... 0.612231874239708 --\n", + "6229987570521485440 219.69736802123325 ... 0.21596169286289862 --\n", + "6230018425567339520 220.1035725206795 ... 0.8296685650840913 --\n", + "6230130266515510528 220.4226870525988 ... 0.2970783741597157 --\n", + "6230061757492831616 221.17289130564805 ... 0.08382745553667581 --\n", + "2003409519814774528 339.93278128584706 ... 0.16657261834688394 --\n", + "2003390901139218816 338.7103475641665 ... 0.4296262772904238 --" ] }, - "execution_count": 28, + "execution_count": 29, "metadata": {}, "output_type": "execute_result" } @@ -1559,7 +1549,7 @@ }, { "cell_type": "code", - "execution_count": 29, + "execution_count": 30, "metadata": { "tags": [ "hide-cell" @@ -1579,7 +1569,7 @@ }, { "cell_type": "code", - "execution_count": 30, + "execution_count": 31, "metadata": { "tags": [ "hide-cell" @@ -1591,10 +1581,10 @@ "output_type": "stream", "text": [ "SELECT TOP 10\n", - "source_id, ra, dec, pmra, pmdec, parallax, parallax_error, radial_velocity\n", + "source_id, ref_epoch, ra, dec, parallax\n", "FROM gaiadr2.gaia_source\n", - "WHERE parallax < 0.5 AND \n", - "bp_rp BETWEEN -0.75 AND 2\n", + "WHERE parallax < 1 \n", + " AND bp_rp BETWEEN -0.75 AND 2\n", "\n" ] } diff --git a/02_coords.ipynb b/02_coords.ipynb index b142e7e..6ea4aad 100644 --- a/02_coords.ipynb +++ b/02_coords.ipynb @@ -154,7 +154,7 @@ "data": { "text/html": [ "Table length=10\n", - "
\n", + "
\n", "\n", "\n", "\n", @@ -1334,8 +1334,8 @@ } ], "source": [ - "coord = 30 * u.deg\n", - "type(coord)" + "coordinate = 30 * u.deg\n", + "type(coordinate)" ] }, { @@ -1367,7 +1367,7 @@ } ], "source": [ - "coord" + "coordinate" ] }, { @@ -1810,10 +1810,10 @@ " parallax float64 mas Parallax 0\n", " parallax_error float64 mas Standard error of parallax 0\n", "radial_velocity float64 km / s Radial velocity 139374\n", - "Jobid: 1603114980658O\n", + "Jobid: 1605624329053O\n", "Phase: COMPLETED\n", "Owner: None\n", - "Output file: async_20201019094300.vot\n", + "Output file: async_20201117094529.vot\n", "Results: None\n" ] } @@ -1901,7 +1901,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "-rw-rw-r-- 1 downey downey 8.6M Oct 19 09:43 gd1_results.fits\r\n" + "-rw-rw-r-- 1 downey downey 8.6M Nov 17 09:45 gd1_results.fits\r\n" ] } ], @@ -1953,7 +1953,6 @@ } ], "metadata": { - "celltoolbar": "Tags", "kernelspec": { "display_name": "Python 3", "language": "python", diff --git a/03_motion.ipynb b/03_motion.ipynb index 77700da..8b33467 100644 --- a/03_motion.ipynb +++ b/03_motion.ipynb @@ -548,7 +548,9 @@ "\n", "To plot them, we will transform them back to the `GD1Koposov10` frame; that way, the axes of the figure are aligned with the GD-1, which will make it easy to select stars near the centerline of the stream.\n", "\n", - "To do that, we'll put the results into a `GaiaData` object, provided by the [pyia library](https://pyia.readthedocs.io/en/latest/api/pyia.GaiaData.html)." + "To do that, we'll put the results into a `GaiaData` object, provided by the [pyia library](https://pyia.readthedocs.io/en/latest/api/pyia.GaiaData.html).\n", + "\n", + "TODO: Do we need pyia, or could we do this with astropy and gala?" ] }, {
source_id
int64
4057468321929794432