{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "\"Open\n", "\n", "[Open this tutorial in Google Colab](https://colab.research.google.com/github/konkolyseismolab/seismolab/blob/master/docs/source/query_gaia.ipynb)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Query Gaia catalog\n", "\n", "The *Gaia* module combines Gaia data with the Bailer-Jones distance catalog, galactic extinction maps and magnitudes from the Simbad catalog. Simply passing the Gaia ID of one or more targets, the code automatically queries\n", "\n", "- the Gaia parallax,\n", "- the Gaia G, BP and RP brightness,\n", "- the Johnson B, V and 2MASS JHK brightness,\n", "\n", "and delivers\n", "\n", "- the extinction corrected apparent brightness,\n", "- the extinction corrected absolute brightness,\n", "- extinction values in each band,\n", "\n", "with the associated upper and lower errorbars.\n", "\n", "__Note:__\n", "Both Gaia DR2 and DR3 catalogs can be used. However, there is a subtle difference between them. In case of DR3, the distance are queried from the [Bailer-Jones catalog](https://ui.adsabs.harvard.edu/abs/2021AJ....161..147B/abstract). If DR2 is used, the distances are estimated from the Gaia parallaxes in a probabilistic way as defined by [Bailer-Jones+ (2018, AJ, 156, 58)](https://ui.adsabs.harvard.edu/abs/2018AJ....156...58B/abstract)." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## __How to use__" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "from seismolab.gaia import query_gaia" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "After importing the relevant module, we can pass a list of __Gaia DR3 IDs__ to perform the query and all the calculations." ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Using Combined19 map from mwdust\n", "Querying Gaia DR3 and BJ catalogs...\n", "Downloading Simbad data for all stars...\n", "Calculating distances, absolute magnitudes...\n" ] }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "a67b9316fac64b3aa52983bf8caa02ea", "version_major": 2, "version_minor": 0 }, "text/plain": [ " 0%| | 0/2 [00:00Table length=2\n", "\n", "\n", "\n", "\n", "\n", "\n", "
Sourceradecparallaxsig_parallaxGmagsig_GmagBPmagsig_BPmagRPmagsig_RPmagBmagsig_BmagVmagsig_VmagJmagsig_JmagHmagsig_HmagKmagsig_Kmagdistdistepdistemlon_deglat_degaGaGepaGemMGMGepMGemmGmGepmGemaBPaBPepaBPemMBPMBPepMBPemmBPmBPepmBPemaRPaRPepaRPemMRPMRPepMRPemmRPmRPepmRPemaBaBepaBemMBMBepMBemmBmBepmBemaVaVepaVemMVMVepMVemmVmVepmVemaJaJepaJemMJMJepMJemmJmJepmJemaHaHepaHemMHMHepMHemmHmHepmHemaKaKepaKemMKMKepMKemmKmKepmKem
degdegmasmasmagmagmagmagmagmagmagmag
str21float64float64float64float32float32float64float32float64float32float64float32float32float32float32float32float32float32float32float32float32float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64
1022096392749670016145.9395965109242855.95238873753413619.2667005723474920.018870337.74521640.0071819389694360538.0882480.0240516158653640747.27568860.023880092621636588.54-99.0007.75-99.0006.5730.0296.2230.0346.1840.01751.8314437866210940.04606628417968750.050594329833984375158.9225783707745445.902485754162840.00.00.04.1722499132156370.009302672230544040.0091113413208150367.7452163696289060.0071819389694356420.0071819389694356420.00.00.04.5152817964553830.0261723491264724830.025981018216743488.0882482528686520.0240516158653640840.0240516158653640840.00.00.03.7027221918106080.0260008258827451040.02580949497301617.2756886482238770.0238800926216367060.0238800926216367060.00.00.04.9670335054397580.0221207332611079720.0219294023513789688.5399999618530270.0199999999999995740.0199999999999995740.00.00.04.1770335435867310.0221207332611079720.0219294023513789687.750.0199999999999995740.0199999999999995740.00.00.03.00003349781036380.031120538711547850.0309292078018188486.5729999542236330.0289998054504394530.0289998054504394530.00.00.02.65003359317779540.036120653152465820.0359293222427368166.22300004959106450.033999919891357420.033999919891357420.00.00.02.611033558845520.019120931625366210.0189296007156372076.1840000152587890.0170001983642578120.017000198364257812
3107142829863485952101.76822041702867-1.20751516253642670.4322272483217940.03099722412.6216530.000634441188004335312.8029920.002088514482205088412.2913910.001759347451621064813.010.02012.720.02011.9030.02311.8380.02311.80.0242190.859619140625197.47900390625151.5408935546875213.5092718420073-1.52167909010993731.09725063483480210.28134631017448220.01746006095976571-0.178670818016563260.173741303142641360.4693872912794816411.5244019683146120.0180945021477700860.28198075136248771.31073211462679830.33608514989190840.020857096725901858-0.210813033892545580.17859241220297940.525580204291104611.4922597524386310.0229456112081063420.338173664374112450.75765831595060940.194271358610614180.012056279543791626-0.169339729601123420.16946242799028610.38343724597922711.5337330567300550.0138156269954130550.19603070606223661.50854030787735380.38680519828058270.024004730459570967-0.201612865326694650.199651989218114780.594212195961247911.5014599210044820.044005188223243510.40680565604425391.19244530259003860.3057551987829210.01897485133607879-0.175517821892405830.194622110094623930.513162196463586211.5275549644387710.038975309099749110.3257556565465940.30915298866033550.079269995275139780.0049194139028371775-0.109225897061826060.18356597838648270.289676298680898711.5938468892693520.0279191773916060980.102269758763910090.182909993290901180.046899997204542160.00291056530898276-0.0479824820756924450.181557129792626170.257306300610302711.6550903042554860.0259103287977513470.069899760693312270.118013995671272270.0302599981963634360.001877904184431095-0.0210865912675863850.18152487302598530.241666705960035711.681986195063590.0258780720311122540.054260166043041735
" ], "text/plain": [ "\n", " Source ra ... mKem \n", " deg ... \n", " str21 float64 ... float64 \n", "------------------- ------------------ ... --------------------\n", "1022096392749670016 145.93959651092428 ... 0.017000198364257812\n", "3107142829863485952 101.76822041702867 ... 0.054260166043041735" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "result_table" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The columns are named according to the followings:\n", "\n", "- __Source:__ Gaia DR3 (or DR2) ID \n", "- __ra, dec:__ equatorial coordinates in deg\n", "- __parallax, sig_parallax:__ parallax and its error in mas\n", "- __\\mag:__ observed magnitude in given filter\n", "- __sig_\\mag:__ observed magnitude error in given filter\n", "- __dist:__ distance in pc\n", "- __distep:__ upper distance errorbar in pc\n", "- __distem:__ lower distance errorbar in pc\n", "- __lon_deg, lat_deg:__ galactic coordinates in deg\n", "- __a\\:__ extinction in given filter\n", "- __a\\ep:__ upper extinction errorbar in given filter\n", "- __a\\em:__ lower extinction errorbar in given filter\n", "- __M\\:__ extinction corrected absolute magnitude in given filter\n", "- __M\\ep:__ upper absolute magnitude errorbar in given filter\n", "- __M\\em:__ lower absolute magnitude errorbar in given filter\n", "- __m\\:__ extinction corrected apparent magnitude in given filter\n", "- __m\\ep:__ upper apparent magnitude errorbar in given filter\n", "- __m\\em:__ lower apparent magnitude errorbar in given filter" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Using photodistances\n", "\n", "The [Bailer-Jones catalog](https://ui.adsabs.harvard.edu/abs/2021AJ....161..147B/abstract) contains two kinds of distances. By default, the geometric ones are returned, but there is an option to use the __photodistances__ instead." ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Using Combined19 map from mwdust\n", "Querying Gaia DR3 and BJ catalogs...\n", "Downloading Simbad data for all stars...\n", "Calculating distances, absolute magnitudes...\n" ] }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "2a2dff7707f1479db603ac94bdff4806", "version_major": 2, "version_minor": 0 }, "text/plain": [ " 0%| | 0/2 [00:00Table length=2\n", "
\n", "\n", "\n", "\n", "\n", "\n", "
Sourceradecparallaxsig_parallaxGmagsig_GmagBPmagsig_BPmagRPmagsig_RPmagBmagsig_BmagVmagsig_VmagJmagsig_JmagHmagsig_HmagKmagsig_Kmagdistdistepdistemlon_deglat_degaGaGepaGemMGMGepMGemmGmGepmGemaBPaBPepaBPemMBPMBPepMBPemmBPmBPepmBPemaRPaRPepaRPemMRPMRPepMRPemmRPmRPepmRPemaBaBepaBemMBMBepMBemmBmBepmBemaVaVepaVemMVMVepMVemmVmVepmVemaJaJepaJemMJMJepMJemmJmJepmJemaHaHepaHemMHMHepMHemmHmHepmHemaKaKepaKemMKMKepMKemmKmKepmKem
degdegmasmasmagmagmagmagmagmagmagmag
str21float64float64float64float32float32float64float32float64float32float64float32float32float32float32float32float32float32float32float32float32float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64
1022096392749670016145.9395965109242855.95238873753413619.2667005723474920.018870337.74521640.0071819389694360538.0882480.0240516158653640747.27568860.023880092621636588.54-99.0007.75-99.0006.5730.0296.2230.0346.1840.01751.8261337280273440.0406608581542968750.044971466064453125158.9225783707745445.902485754162840.00.00.04.1724722385406490.0090672338836812470.0088848436706685527.7452163696289060.0071819389694356420.0071819389694356420.00.00.04.51550412178039550.025936910779609690.0257545205665969958.0882482528686520.0240516158653640840.0240516158653640840.00.00.03.702944517135620.025765387535882310.0255829973228696167.2756886482238770.0238800926216367060.0238800926216367060.00.00.04.96725583076477050.021885294914245180.0217029047012324848.5399999618530270.0199999999999995740.0199999999999995740.00.00.04.1772558689117430.021885294914245180.0217029047012324847.750.0199999999999995740.0199999999999995740.00.00.03.0002558231353760.030885100364685060.0307027101516723636.5729999542236330.0289998054504394530.0289998054504394530.00.00.02.65025591850280760.035885214805603030.035702824592590336.22300004959106450.033999919891357420.033999919891357420.00.00.02.61125588417053220.0188854932785034180.0187031030654907236.1840000152587890.0170001983642578120.017000198364257812
3107142829863485952101.76822041702867-1.20751516253642670.4322272483217940.03099722412.6216530.000634441188004335312.8029920.002088514482205088412.2913910.001759347451621064813.010.02012.720.02011.9030.02311.8380.02311.80.0242193.359375145.941162109375138.426025390625213.5092718420073-1.52167909010993731.09725063483480210.21479186915527150.01373223426890191-0.1811467949605330.155926514705562620.355307682795061211.5244019683146120.0143666754569071740.21542631034327721.31073211462679830.256581852791471170.01640398272773691-0.21328901083651530.160052336458599950.398551739725457211.4922597524386310.0184924972099427260.258670367273676760.75765831595060940.148315107503736220.009482192272307954-0.171815706545093150.152801378972586830.2899558274071374311.5337330567300550.011241539723927830.150074454955356981.50854030787735380.29530371834674660.018879577968958783-0.204088842270664370.1804398749812890.4551855485622020611.5014599210044820.038880035732629990.315304176110418061.19244530259003860.233426664134306130.014923607905210634-0.177993798836375560.17648390491753930.3933084943497604511.5275549644387710.0349240656688820650.25342712189797820.30915298866033550.060518122460953840.0038690898236336535-0.111701874005795790.16842869256106140.2233992584015034311.5938468892693520.0268688533124024080.083517885949722980.182909993290901180.035805474245221850.002289142332892874-0.050458459019662170.166848745070321770.1986866101857707211.6550903042554860.025288905821660990.0588052377339920440.118013995671272270.023101783596170850.0014769604902630795-0.0235625682115561120.167036967585602270.1869833238946334611.681986195063590.0254771283369432670.047101951442849455
" ], "text/plain": [ "\n", " Source ra ... mKem \n", " deg ... \n", " str21 float64 ... float64 \n", "------------------- ------------------ ... --------------------\n", "1022096392749670016 145.93959651092428 ... 0.017000198364257812\n", "3107142829863485952 101.76822041702867 ... 0.047101951442849455" ] }, "execution_count": 5, "metadata": {}, "output_type": "execute_result" } ], "source": [ "result_table" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Querying DR2 catalog\n", "\n", "If DR2 catalog is queried, then __Gaia DR2 IDs__ must be passed." ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Using Combined19 map from mwdust\n", "Querying Gaia DR2 catalog...\n", "Downloading Simbad data for all stars...\n", "Calculating distances, absolute magnitudes...\n" ] }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "1763b9a8622948ebb4f0d45a53e83ae9", "version_major": 2, "version_minor": 0 }, "text/plain": [ " 0%| | 0/2 [00:00Table length=2\n", "
\n", "\n", "\n", "\n", "\n", "\n", "
Sourceradecparallaxsig_parallaxGmagsig_GmagBPmagsig_BPmagRPmagsig_RPmagBmagsig_BmagVmagsig_VmagJmagsig_JmagHmagsig_HmagKmagsig_Kmagdistdistepdistemlon_deglat_degaGaGepaGemMGMGepMGemmGmGepmGemaBPaBPepaBPemMBPMBPepMBPemmBPmBPepmBPemaRPaRPepaRPemMRPMRPepMRPemmRPmRPepmRPemaBaBepaBemMBMBepMBemmBmBepmBemaVaVepaVemMVMVepMVemmVmVepmVemaJaJepaJemMJMJepMJemmJmJepmJemaHaHepaHemMHMHepMHemmHmHepmHemaKaKepaKemMKMKepMKemmKmKepmKem
degdegmasmasmagmagmagmagmagmagmagmag
str21float64float64float64float64float32float64float32float64float32float64float32float32float32float32float32float32float32float32float32float32float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64
1022096392749670016145.9395922628855555.9523926996082719.2775323066045520.033431946113670657.79370160.0125700324986267918.15525150.0388041182054895757.3674360.035604608503343588.54-99.0007.75-99.0006.5730.0296.2230.0346.1840.01751.874148741487420.08914409144090740.08908409084090607158.922574272082745.9024821182666260.00.00.04.21889734769004750.0130469697767034990.0130109261666824247.7936745171384140.0124925827130608620.0124929480986528670.00.00.04.5802280548328560.038858303934061310.038523963439613068.1551677468990210.0385650280810665440.038566156038829290.00.00.03.792426117424840.0357030940774221150.0353855826891460457.3673590819952470.035385232038403380.035386266992844640.00.00.04.9651180694672210.0202821383888149850.020187111150414168.5399567931917740.0198767707472917720.0198773521071142770.00.00.04.1751181076141930.0202821383888149850.020187111150414167.7499568313387460.019876770747292660.019877352107113390.00.00.02.9980252922493270.02915515617628550.0289061153847089976.5729373596666160.0288213167542510360.028822159725966580.00.00.02.6480069461674310.034114311339171090.033828558996126476.2229266628629450.0337905121067567650.033791500418506540.00.00.02.6091543830874510.0173502377702203780.0172669006100694136.183963321894730.0168952560533774940.016895750209253713
3107142829863485952101.76822078135328-1.2075151920875550.27844085817857640.0715064746616130612.6315750.000938211373855496912.8012290.003839685414495689312.2989640.00202097590270749513.010.02012.720.02011.9030.02311.8380.02311.80.0243832.6327963279631205.1134011340114781.2820460204603213.50927203436055-1.5216787793478811.76969873258662220.41227286767073610.2407382729227452-2.05564182778912660.73484294001057141.00543002989472910.8618195775861860.23965064995060460.41173720383175372.11401195713580850.492484825699531560.2875763982466415-2.23044427691993970.78128660809663121.084830380864777210.6871200938325060.286319057275379760.491735068120714661.2219878657653980.28467695229774590.1662312589821069-1.84070003043531470.6607247168807480.877567677220769711.076948076456930.165519586587127070.284286837958362072.43304654939508860.56680781854286840.3309757833108171-2.3412230289752830.82600605722249851.158044228045371310.576842291684570.33045294237147260.56642404399975991.9232332829683680.448040610624307330.2616241117450673-2.12106072884629350.75663436526937121.039894120946832410.7968098216693490.26129505902896710.44735054559009770.49861684727111830.116158865748265620.06782858373119044-1.51381914093781140.56392518483394070.707860495253423311.4041634477042120.070207573894338180.110183002354355960.29500605698265990.06872525297834820.04013069984852824-1.37519040426165520.53655730450188890.660450021116464611.5411882010689140.04600371038249840.062042631234186630.190338662778151150.0443417090644950.025892430222099444-1.30844106447858180.52247821720614650.63652680095077711.6071185440522540.036068806920521720.04095751794617364
" ], "text/plain": [ "\n", " Source ra ... mKem \n", " deg ... \n", " str21 float64 ... float64 \n", "------------------- ------------------ ... --------------------\n", "1022096392749670016 145.93959226288555 ... 0.016895750209253713\n", "3107142829863485952 101.76822078135328 ... 0.04095751794617364" ] }, "execution_count": 7, "metadata": {}, "output_type": "execute_result" } ], "source": [ "result_table_dr2" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Extinction correction\n", "\n", "The extinction correction is done using the [mwdust](https://github.com/jobovy/mwdust) galactic dust maps. Given the coordinates and the distance of a target, `mwdust` returns the $E(B-V)$ color excess. From this, the $A_{\\lambda}$ extinction coefficient can be calculated using the extinction vector $R_{\\lambda}$:\n", "$$ A_{\\lambda} = R_{\\lambda} \\times E(B-V) ,$$\n", "where $\\lambda$ denotes the passband.\n", "\n", "The values of the extinction vector are from [Green+ (2019)](https://ui.adsabs.harvard.edu/abs/2019ApJ...887...93G/abstract), whose results are based on [Schlafly+ (2016)](https://ui.adsabs.harvard.edu/abs/2016ApJ...821...78S/abstract). Since not all filters are available, [Huber+ (2017)](https://ui.adsabs.harvard.edu/abs/2017ApJ...844..102H/abstract) interpolated [Cardelli+ (1989)](https://ui.adsabs.harvard.edu/abs/1989ApJ...345..245C/abstract) extinction law to get extinction in e.g., the Gaia passbands, too.\n", "\n", "| Passband | $R_{\\lambda}$ |\n", "| --- | --- |\n", "| Johnson-Cousins B | 3.8681 |\n", "| Johnson-Cousins V | 3.0576 |\n", "| Tycho B$_{\\rm T}$ | 3.9958 |\n", "| Tycho V$_{\\rm T}$ | 3.1870 |\n", "| SDSS u | 4.5890 |\n", "| SDSS g | 3.6134 |\n", "| SDSS r | 2.6198 |\n", "| SDSS i | 1.9872 |\n", "| SDSS z | 1.4617 |\n", "| 2MASS J | 0.7927 |\n", "| 2MASS H | 0.4690 |\n", "| 2MASS K | 0.3026 |\n", "| Gaia G | 2.8135 |\n", "| Gaia BP | 3.3609 |\n", "| Gaia RP | 1.9427 |" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Selecting the dust map\n", "\n", "There are several dust maps implemented in `mwdust` (see [here](https://github.com/jobovy/mwdust?tab=readme-ov-file#dust-data)). By default the _Combined19_ map is used, however any other available map can also be selected. E.g. changing the map to Green19 can be done by passing the name of the map to `dustmodel`.\n", "\n", "__Note:__ the desired dust map _might_ be downloaded beforehand.\n", "\n", "__Note:__ if the distance of the star is too large and the color excess falls outside the reliable range of the given dust map, no warning is given!" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Using Green19 map from mwdust\n", "Querying Gaia DR3 and BJ catalogs...\n", "Downloading Simbad data for all stars...\n", "Calculating distances, absolute magnitudes...\n" ] }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "c7d609ea273d4eb1bcbd1922ec61d7ad", "version_major": 2, "version_minor": 0 }, "text/plain": [ " 0%| | 0/2 [00:00Table length=2\n", "
\n", "\n", "\n", "\n", "\n", "\n", "
Sourceradecparallaxsig_parallaxGmagsig_GmagBPmagsig_BPmagRPmagsig_RPmagBmagsig_BmagVmagsig_VmagJmagsig_JmagHmagsig_HmagKmagsig_Kmagdistdistepdistemlon_deglat_degaGaGepaGemMGMGepMGemmGmGepmGemaBPaBPepaBPemMBPMBPepMBPemmBPmBPepmBPemaRPaRPepaRPemMRPMRPepMRPemmRPmRPepmRPemaBaBepaBemMBMBepMBemmBmBepmBemaVaVepaVemMVMVepMVemmVmVepmVemaJaJepaJemMJMJepMJemmJmJepmJemaHaHepaHemMHMHepMHemmHmHepmHemaKaKepaKemMKMKepMKemmKmKepmKem
degdegmasmasmagmagmagmagmagmagmagmag
str21float64float64float64float32float32float64float32float64float32float64float32float32float32float32float32float32float32float32float32float32float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64
1022096392749670016145.9395965109242855.95238873753413619.2667005723474920.018870337.74521640.0071819389694360538.0882480.0240516158653640747.27568860.023880092621636588.54-99.0007.75-99.0006.5730.0296.2230.0346.1840.01751.8314437866210940.04606628417968750.050594329833984375158.9225783707745445.902485754162840.00.00.04.1722499132156370.009302672230544040.0091113413208150367.7452163696289060.0071819389694356420.0071819389694356420.00.00.04.5152817964553830.0261723491264724830.025981018216743488.0882482528686520.0240516158653640840.0240516158653640840.00.00.03.7027221918106080.0260008258827451040.02580949497301617.2756886482238770.0238800926216367060.0238800926216367060.00.00.04.9670335054397580.0221207332611079720.0219294023513789688.5399999618530270.0199999999999995740.0199999999999995740.00.00.04.1770335435867310.0221207332611079720.0219294023513789687.750.0199999999999995740.0199999999999995740.00.00.03.00003349781036380.031120538711547850.0309292078018188486.5729999542236330.0289998054504394530.0289998054504394530.00.00.02.65003359317779540.036120653152465820.0359293222427368166.22300004959106450.033999919891357420.033999919891357420.00.00.02.611033558845520.019120931625366210.0189296007156372076.1840000152587890.0170001983642578120.017000198364257812
3107142829863485952101.76822041702867-1.20751516253642670.4322272483217940.03099722412.6216530.000634441188004335312.8029920.002088514482205088412.2913910.001759347451621064813.010.02012.720.02011.9030.02311.8380.02311.80.0242190.859619140625197.47900390625151.5408935546875213.5092718420073-1.52167909010993731.09725063483480210.28134631017448220.01746006095976571-0.178670818016563260.173741303142641360.4693872912794816411.5244019683146120.0180945021477700860.28198075136248771.31073211462679830.33608514989190840.020857096725901858-0.210813033892545580.17859241220297940.525580204291104611.4922597524386310.0229456112081063420.338173664374112450.75765831595060940.194271358610614180.012056279543791626-0.169339729601123420.16946242799028610.38343724597922711.5337330567300550.0138156269954130550.19603070606223661.50854030787735380.38680519828058270.024004730459570967-0.201612865326694650.199651989218114780.594212195961247911.5014599210044820.044005188223243510.40680565604425391.19244530259003860.3057551987829210.01897485133607879-0.175517821892405830.194622110094623930.513162196463586211.5275549644387710.038975309099749110.3257556565465940.30915298866033550.079269995275139780.0049194139028371775-0.109225897061826060.18356597838648270.289676298680898711.5938468892693520.0279191773916060980.102269758763910090.182909993290901180.046899997204542160.00291056530898276-0.0479824820756924450.181557129792626170.257306300610302711.6550903042554860.0259103287977513470.069899760693312270.118013995671272270.0302599981963634360.001877904184431095-0.0210865912675863850.18152487302598530.241666705960035711.681986195063590.0258780720311122540.054260166043041735
" ], "text/plain": [ "\n", " Source ra ... mKem \n", " deg ... \n", " str21 float64 ... float64 \n", "------------------- ------------------ ... --------------------\n", "1022096392749670016 145.93959651092428 ... 0.017000198364257812\n", "3107142829863485952 101.76822041702867 ... 0.054260166043041735" ] }, "execution_count": 9, "metadata": {}, "output_type": "execute_result" } ], "source": [ "result_table" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Setting the parallax offset in Gaia DR2\n", "\n", "A parallax offset can be given if the Gaia DR2 catalog is used. There are four predefined options, which can be selected:\n", "\n", "- __Stassun__ : +0.08 mas (Stassun et al. 2018)\n", "- __Riess__ : +0.046 mas (Riess et al. 2018)\n", "- __BJ__ : +0.029 mas (Bailer-Jones et al. 2018)\n", "- __Zinn__ : +0.0528 mas (Zinn et al 2019)\n", " \n", "or simply an offset in _mas_ can be passed." ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Using Combined19 map from mwdust\n", "Querying Gaia DR2 catalog...\n", "Downloading Simbad data for all stars...\n", "Calculating distances, absolute magnitudes...\n" ] }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "1b1eac67dbdb4975bc3a6d7f18fd81e0", "version_major": 2, "version_minor": 0 }, "text/plain": [ " 0%| | 0/2 [00:00Table length=2\n", "
\n", "\n", "\n", "\n", "\n", "\n", "
Sourceradecparallaxsig_parallaxGmagsig_GmagBPmagsig_BPmagRPmagsig_RPmagBmagsig_BmagVmagsig_VmagJmagsig_JmagHmagsig_HmagKmagsig_Kmagdistdistepdistemlon_deglat_degaGaGepaGemMGMGepMGemmGmGepmGemaBPaBPepaBPemMBPMBPepMBPemmBPmBPepmBPemaRPaRPepaRPemMRPMRPepMRPemmRPmRPepmRPemaBaBepaBemMBMBepMBemmBmBepmBemaVaVepaVemMVMVepMVemmVmVepmVemaJaJepaJemMJMJepMJemmJmJepmJemaHaHepaHemMHMHepMHemmHmHepmHemaKaKepaKemMKMKepMKemmKmKepmKem
degdegmasmasmagmagmagmagmagmagmagmag
str21float64float64float64float64float32float64float32float64float32float64float32float32float32float32float32float32float32float32float32float32float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64
1022096392749670016145.9395922628855555.9523926996082719.2775323066045520.033431946113670657.79370160.0125700324986267918.15525150.0388041182054895757.3674360.035604608503343588.54-99.0007.75-99.0006.5730.0296.2230.0346.1840.01751.659766597665980.088404084040838880.08836088360883565158.922574272082745.9024821182666260.00.00.04.2278941822102690.0130308065961752820.0130122962497889467.7936745171384140.0124925827130608620.0124929480986528670.00.00.04.5892257430081260.038853484508927670.0385188853455389348.1551677468990210.0385650280810665440.038566156038829290.00.00.03.80142353194091150.03569944661578850.0353799207337779367.3673590819952470.035385232038403380.035386266992844640.00.00.04.9741067745840160.0202845096881159040.020176834654750848.5399567931917740.0198767707472917720.0198773521071142770.00.00.04.1841068127309890.0202845096881159040.0201768346547499537.7499568313387460.019876770747292660.019877352107113390.00.00.03.00701754913967050.0291523330250877950.0289057087558224356.5729373596666160.0288213167542510360.028822159725966580.00.00.02.6570030970807570.034111469170432510.0338223371913426446.2229266628629450.0337905121067567650.033791500418506540.00.00.02.6181436570115340.0173490680443655340.0172643083331092136.183963321894730.0168952560533774940.016895750209253713
3107142829863485952101.76822078135328-1.2075151920875550.27844085817857640.0715064746616130612.6315750.000938211373855496912.8012290.003839685414495689312.2989640.00202097590270749513.010.02012.720.02011.9030.02311.8380.02311.80.0243002.1165711657113774.5859362593628522.2633730337302213.50927203436055-1.5216787793478811.51000848337783240.255071430215894070.12459642264064508-1.26561049469234280.53955341743905070.752965808401511211.1215018190217750.124548525966856620.25454657461657961.80379627925229150.30469821979924940.1488379476283419-1.38995119011984250.56401083256452110.801870617734614710.9971974773316210.149104532993359130.303979983899386851.04267015052529820.176128392300801680.08603459661301027-1.13104056635421020.5011241401117310.673794814250894511.2561839146438840.086144926863145340.17569991218093862.07601489586302620.35068153223400380.17129971931985621-1.45394042267024750.58762191693904480.84684320006142510.9335191972280570.17871456375304540.34996751950949091.64101296979071340.27720077722411960.13540609062370623-1.30884576061276730.55181621093181880.773421469742251711.0786283408960560.143907045232261050.276534849995519140.42544849892841540.071866985053038620.03510533984930536-0.91020877103812210.45208458365167810.56919050984014411.4744856798095680.0514016080339150250.07139740689819440.25171609183477590.042520015125362850.02077003202891914-0.8014182714850540.437705739703901640.54000922333788511.5828625947223750.038075737741714020.045197179673284180.16240786650149930.0274340225520997850.01340087780799773-0.74994231877585720.43025150501696710.525469206614017611.6345108623719740.031706787331970080.03456370625147187
" ], "text/plain": [ "\n", " Source ra ... mKem \n", " deg ... \n", " str21 float64 ... float64 \n", "------------------- ------------------ ... --------------------\n", "1022096392749670016 145.93959226288555 ... 0.016895750209253713\n", "3107142829863485952 101.76822078135328 ... 0.03456370625147187" ] }, "execution_count": 11, "metadata": {}, "output_type": "execute_result" } ], "source": [ "result_table" ] } ], "metadata": { "kernelspec": { "display_name": "seismolab", "language": "python", "name": "seismolab" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.13" } }, "nbformat": 4, "nbformat_minor": 4 }