--Data Columns:
SELECT
--GaiaDR2 Columns:
gaia.source_id AS id,
gaia.parallax AS prlx, gaia.parallax_error AS prlx_err,
gaia.ra, gaia.ra_error AS ra_err,
gaia.dec, gaia.dec_error AS dec_err,
gaia.pmra, gaia.pmra_error AS pmra_err,
gaia.pmdec, gaia.pmdec_error AS pmdec_err,
--GaiaDR2 Magnitudes and Colors:
gaia.phot_bp_mean_mag AS Gbp,
gaia.phot_bp_mean_flux_over_error AS Gbpfluxfracerr,
gaia.phot_rp_mean_mag AS Grp,
gaia.phot_rp_mean_flux_over_error AS Grpfluxfracerr,
gaia.phot_g_mean_mag AS Gg,
gaia.phot_g_mean_flux_over_error AS Ggfluxfracerr,
gaia.bp_rp AS Gbp_rp, gaia.bp_g AS Gbp_g, gaia.g_rp AS Gg_rp,
--Adding Pan-STARRS1 Columns:
panstarrs1.g_mean_psf_mag AS g, panstarrs1.g_mean_psf_mag_error AS g_err,
panstarrs1.r_mean_psf_mag AS r, panstarrs1.r_mean_psf_mag_error AS r_err,
panstarrs1.i_mean_psf_mag AS i, panstarrs1.i_mean_psf_mag_error AS i_err,
panstarrs1.z_mean_psf_mag AS z, panstarrs1.z_mean_psf_mag_error AS z_err,
--Custom Selection & Assignement:
gaia.phi1, gaia.phi2,
gaia.pmphi1, gaia.pmphi2
--SOURCE:
FROM (
--Data Columns:
SELECT
--GaiaDR2 Columns:
gaia.source_id,
gaia.parallax, gaia.parallax_error,
gaia.ra, gaia.ra_error,
gaia.dec, gaia.dec_error,
gaia.pmra, gaia.pmra_error,
gaia.pmdec, gaia.pmdec_error,
--GaiaDR2 Magnitudes and Colors:
gaia.phot_bp_mean_mag,
gaia.phot_bp_mean_flux_over_error,
gaia.phot_rp_mean_mag,
gaia.phot_rp_mean_flux_over_error,
gaia.phot_g_mean_mag,
gaia.phot_g_mean_flux_over_error,
gaia.bp_rp, gaia.bp_g, gaia.g_rp,
--Custom Selection & Assignement:
gaia.sinphi1cosphi2, gaia.cosphi1cosphi2, gaia.sinphi2,
gaia.phi1, gaia.phi2,
gaia.c1, gaia.c2,
( c1*pmra+c2*pmdec)/cos(phi2) AS pmphi1,
(-c2*pmra+c1*pmdec)/cos(phi2) AS pmphi2
--SOURCE:
FROM (
--Data Columns:
SELECT
--GaiaDR2 Columns:
gaia.source_id,
gaia.parallax, gaia.parallax_error,
gaia.ra, gaia.ra_error,
gaia.dec, gaia.dec_error,
gaia.pmra, gaia.pmra_error,
gaia.pmdec, gaia.pmdec_error,
--GaiaDR2 Magnitudes and Colors:
gaia.phot_bp_mean_mag,
gaia.phot_bp_mean_flux_over_error,
gaia.phot_rp_mean_mag,
gaia.phot_rp_mean_flux_over_error,
gaia.phot_g_mean_mag,
gaia.phot_g_mean_flux_over_error,
gaia.bp_rp, gaia.bp_g, gaia.g_rp,
--Custom Selection & Assignement:
gaia.cosphi1cosphi2, gaia.sinphi1cosphi2, gaia.sinphi2,
gaia.c1, gaia.c2,
atan2(sinphi1cosphi2, cosphi1cosphi2) AS phi1,
atan2(sinphi2, sinphi1cosphi2 / sin(atan2(sinphi1cosphi2, cosphi1cosphi2))) AS phi2
--SOURCE:
FROM (
--Data Columns:
SELECT
--GaiaDR2 Columns:
gaia.source_id,
gaia.parallax, gaia.parallax_error,
gaia.ra, gaia.ra_error,
gaia.dec, gaia.dec_error,
gaia.pmra, gaia.pmra_error,
gaia.pmdec, gaia.pmdec_error,
--GaiaDR2 Magnitudes and Colors:
gaia.phot_bp_mean_mag,
gaia.phot_bp_mean_flux_over_error,
gaia.phot_rp_mean_mag,
gaia.phot_rp_mean_flux_over_error,
gaia.phot_g_mean_mag,
gaia.phot_g_mean_flux_over_error,
gaia.bp_rp, gaia.bp_g, gaia.g_rp,
--Custom Selection & Assignement:
--Rotation Matrix
0.656*cos(radians(dec))*cos(radians(ra))+
0.755*cos(radians(dec))*sin(radians(ra))+
0.002*sin(radians(dec)) AS cosphi1cosphi2,
0.701*cos(radians(dec))*cos(radians(ra))+
0.469*cos(radians(dec))*sin(radians(ra))+
0.537*sin(radians(dec)) AS sinphi1cosphi2,
0.53*cos(radians(dec))*cos(radians(ra))+
0.458*cos(radians(dec))*sin(radians(ra))+
0.713*sin(radians(dec)) AS sinphi2,
--c1, c2
-0.925*cos(radians(dec))-0.382*sin(radians(dec))*cos(radians(ra+0)) as c1,
0.382*sin(radians(ra+0)) as c2
--SOURCE:
FROM gaiadr2.gaia_source AS gaia
--Selections:
WHERE
random_index <= 10000
) AS gaia
) AS gaia
) AS gaia
--Comparing to Pan-STARRS1
INNER JOIN gaiadr2.panstarrs1_best_neighbour AS panstarrs1_match ON panstarrs1_match.source_id = gaia.source_id
INNER JOIN gaiadr2.panstarrs1_original_valid AS panstarrs1 ON panstarrs1.obj_id = panstarrs1_match.original_ext_source_id
--Selections:
WHERE
phi1 > -0.175
AND phi1 < +0.175
AND phi2 > -0.175
AND phi2 < +0.175
--Ordering:
ORDER BY
gaia.source_id
starting query @ m04d02h18m25s02
Query finished.
query finished @ m04d02h18m25s04
Out[7]:
QTable masked=True length=71
id | prlx | prlx_err | ra | ra_err | dec | dec_err | pmra | pmra_err | pmdec | pmdec_err | gbp | gbpfluxfracerr | grp | grpfluxfracerr | gg | ggfluxfracerr | gbp_rp | gbp_g | gg_rp | g | g_err | r | r_err | i | i_err | z | z_err | phi1 | phi2 | pmphi1 | pmphi2 |
| mas | mas | deg | deg | deg | deg | mas / yr | mas / yr | mas / yr | mas / yr | mag | | mag | | mag | | mag | mag | mag | mag | mag | mag | mag | mag | mag | mag | mag | rad | rad | mas / yr | mas / yr |
int64 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | float64 |
2889564322129077376 | 0.3213177028021399 | 0.14088071404071692 | 89.852456363208 | 0.11092118907771961 | -33.48788512061472 | 0.11905868588217561 | -1.2001158428613647 | 0.2315703839344539 | 1.2068512160421232 | 0.2607473500694008 | 19.02077865600586 | 45.648506 | 17.74642562866211 | 108.068665 | 18.4609375 | 579.4508 | 1.27435302734375 | 0.5598411560058594 | 0.7145118713378906 | nan | nan | nan | nan | 18.1292991638184 | 0.00695599988102913 | nan | nan | 0.15177566486787875 | -0.01615296804383597 | 1.3863772679241089 | -0.4719919761842213 |
2889585036754358016 | 0.04112782798721501 | 0.3536404789521579 | 89.64273223729039 | 0.27550035439516946 | -33.289729121056816 | 0.28568865747042466 | 3.6201024391883885 | 0.5441884680409558 | 8.104449717308881 | 0.5891796623791259 | 20.448328018188477 | 11.592497 | 18.59687614440918 | 50.61768 | 19.61026382446289 | 280.3479 | 1.8514518737792969 | 0.8380641937255859 | 1.013387680053711 | nan | nan | nan | nan | 18.9641990661621 | 0.00823699962347746 | nan | nan | 0.15803067899348286 | -0.008958985863537603 | 0.30147490786345243 | -7.639027705679244 |
2893531497522278528 | 0.2790765324906976 | 0.08843655423377134 | 95.69721841841746 | 0.06532838745037702 | -30.50242870308282 | 0.0870745768550069 | 1.7096027371956273 | 0.14042939660904843 | 2.665564779495171 | 0.16040499468271435 | 17.70775032043457 | 156.32576 | 16.725849151611328 | 162.56195 | 17.290735244750977 | 1074.5438 | 0.9819011688232422 | 0.41701507568359375 | 0.5648860931396484 | 17.7226009368896 | 0.0102749997749925 | 17.2467002868652 | 0.00498000020161271 | 17.0774002075195 | 0.00384699995629489 | 17.0198993682861 | 0.00342700001783669 | 0.11734124245859556 | -0.024506749257727892 | -0.3823366779230443 | -2.8264187687608446 |
2894277580582639616 | -0.03565140127821627 | 0.38379135803464853 | 100.83588017948506 | 0.2746167229986943 | -30.39519893204269 | 0.354504804621474 | 0.4595450174632992 | 0.5981503040659448 | 1.8037089064425966 | 0.6497080038713873 | 20.135364532470703 | 12.897309 | 19.291885375976562 | 18.578547 | 19.889904022216797 | 231.50648 | 0.8434791564941406 | 0.24546051025390625 | 0.5980186462402344 | 20.1900005340576 | 0.0153510002419353 | 19.7777004241943 | 0.0170040000230074 | 19.6713008880615 | 0.010308999568224 | 19.6107006072998 | 0.057473998516798 | 0.022452761935390815 | -0.10979523300038331 | 0.29515634154001114 | -1.687229325064532 |
2894301117005191936 | -0.31822723307621215 | 0.596439798077345 | 100.55360000898901 | 0.37529189714934463 | -30.06129384733782 | 0.5133368686502483 | 1.2125908967513244 | 0.7750190783329641 | 3.328302233757119 | 0.88877917171463 | nan | -- | nan | -- | 20.133920669555664 | 161.91643 | nan | nan | nan | 20.9354000091553 | 0.0813969969749451 | 19.886100769043 | 0.00134299998171628 | 19.3973999023438 | 0.0328940004110336 | 19.2562999725342 | 0.0201140008866787 | 0.0352089498571001 | -0.095456026639865 | 0.23771429243865633 | -3.251390885692647 |
2918472063373495936 | 0.07540631742850838 | 0.018291002548211636 | 101.29860970041581 | 0.012077191412722404 | -28.707030693978805 | 0.016833066274518332 | -0.7198628622013465 | 0.024939448508541573 | 1.3504572377243913 | 0.031049207460582387 | 14.951737403869629 | 588.6317 | 13.43400764465332 | 949.3284 | 14.241029739379883 | 4129.2656 | 1.5177297592163086 | 0.7107076644897461 | 0.8070220947265625 | 15.145299911499 | 0.00218899990431964 | 14.2363004684448 | 0.00301899993792176 | 13.8430995941162 | 0.00734200002625585 | 13.6037998199463 | 0.00123199995141476 | 0.0466047869519749 | -0.07376865860472206 | 1.1188268142430042 | -0.8769080774380797 |
2918550644092742272 | 0.6273189056681521 | 0.782697310231922 | 101.576417046875 | 0.4883607934153599 | -28.75376229315029 | 0.6028598697415664 | 2.6738991917543244 | 1.0275467338132094 | 6.671298858722015 | 0.965939827384999 | 21.0629825592041 | 5.76543 | 19.29847526550293 | 22.061457 | 20.290245056152344 | 153.97742 | 1.7645072937011719 | 0.7727375030517578 | 0.9917697906494141 | 21.4979991912842 | 0.0714500024914742 | 20.3416004180908 | 0.024184999987483 | 19.6637001037598 | 0.0140500003471971 | 19.3367004394531 | 0.00980699993669987 | 0.03974239084528264 | -0.0803368883690285 | 0.230356235609403 | -6.678244300414476 |
2921155417204886656 | 0.5746644074889986 | 0.08445267418651484 | 105.41909619530594 | 0.05031977808843377 | -25.682389169566108 | 0.06735360382631876 | -4.226561826565594 | 0.11833640014430594 | 5.09270444640058 | 0.14763444560101693 | 17.961925506591797 | 140.4744 | 16.735219955444336 | 299.11694 | 17.42011833190918 | 1250.0464 | 1.226705551147461 | 0.5418071746826172 | 0.6848983764648438 | 18.0634994506836 | 0.00478299986571074 | 17.3682994842529 | 0.00644299993291497 | 17.0844993591309 | 0.00258899992331862 | 16.9799995422363 | 0.00467999977990985 | 0.013578261560780708 | -0.07636497260950607 | 5.601098258390017 | -2.9216216680014737 |
2921254824222946560 | nan | nan | 105.45364770475886 | 1.5353938308434325 | -25.156187892381006 | 3.0021763612415984 | nan | nan | nan | nan | nan | -- | nan | -- | 21.188934326171875 | 39.210197 | nan | nan | nan | 21.6951999664307 | 0.0274010002613068 | 21.1583003997803 | 0.0783889964222908 | 20.7777004241943 | 0.0526469983160496 | 20.3808994293213 | 0.0821679979562759 | 0.02366494168491069 | -0.06263618141108063 | nan | nan |
... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |
5617824614809288448 | nan | nan | 110.32374750844698 | 6.951827359874592 | -23.753915962728144 | 24.62950700482992 | nan | nan | nan | nan | nan | -- | nan | -- | 21.25697898864746 | 35.90056 | nan | nan | nan | nan | nan | nan | nan | nan | nan | 19.9337005615234 | 0.0422349981963634 | -0.08326974542837035 | -0.14123429085914144 | nan | nan |
5716319343168601984 | 0.00891932562417943 | 0.32249764384296475 | 113.8449285398122 | 0.17527935331251243 | -19.831153317243455 | 0.2097809204129951 | -1.8414838357550458 | 0.3654637676096973 | 3.059905229311206 | 0.4182655166461923 | 19.982688903808594 | 16.042042 | 18.183589935302734 | 73.96526 | 19.202526092529297 | 305.97357 | 1.7990989685058594 | 0.7801628112792969 | 1.0189361572265625 | 20.4745998382568 | 0.00448699994012713 | 19.30419921875 | 0.00819799955934286 | 18.6509990692139 | 0.00695599988102913 | 18.2353000640869 | 0.00467400019988418 | -0.11275120160619438 | -0.12220620260575656 | 2.7887407808022315 | -2.195840085641799 |
5716331884473420288 | 0.22620316092151485 | 0.17322687090898847 | 113.80574814975832 | 0.09887099797690528 | -19.614712766649596 | 0.11875267379782026 | -0.5070317383471483 | 0.20344190762645756 | 2.0554804581298383 | 0.22704514474823018 | 19.048534393310547 | 57.282116 | 17.542325973510742 | 112.94717 | 18.379186630249023 | 718.77655 | 1.5062084197998047 | 0.6693477630615234 | 0.8368606567382812 | 19.2621994018555 | 0.0116950003430247 | 18.3866996765137 | 0.00251700007356703 | 17.9447994232178 | 0.00509800016880035 | 17.7085990905762 | 0.0058079999871552 | -0.10594716750434026 | -0.11405298419542298 | 1.1941799874420582 | -1.7314226039780316 |
5716342505930123008 | 1.6799963583547786 | 1.684368158294499 | 114.59670230371695 | 1.481509623828627 | -19.85817329294617 | 2.3862343665475154 | -2.698591026092354 | 2.759489881104196 | -3.970661671302836 | 4.1108367465889275 | 21.677921295166016 | 5.2099133 | 20.196521759033203 | 11.926287 | 20.944549560546875 | 83.01538 | 1.4813995361328125 | 0.7333717346191406 | 0.7480278015136719 | 22.0245990753174 | 0.155401006340981 | 20.9733009338379 | 0.0510450005531311 | 20.4349002838135 | 0.0269709993153811 | 20.0666999816895 | 0.0426100008189678 | -0.1426585744466888 | -0.14684869591413577 | 1.1264823454948139 | 4.656356865114376 |
5716482418781721856 | 0.845175425917354 | 0.5176463449771443 | 113.20017086929828 | 0.27402870154885844 | -19.874805635006815 | 0.3319031507958928 | -0.5567428483626339 | 0.5636337966097791 | 0.23986932033781638 | 0.6650358739574248 | 20.6514949798584 | 14.917553 | 18.967361450195312 | 33.87558 | 19.978424072265625 | 239.35614 | 1.684133529663086 | 0.6730709075927734 | 1.0110626220703125 | 21.1802997589111 | 0.0294589996337891 | 20.0715007781982 | 0.018885999917984 | 19.4207992553711 | 0.0117110004648566 | 19.0484008789063 | 0.0121560003608465 | -0.0899268303865569 | -0.10401917431198268 | 0.6002613412553746 | -0.025596093812586308 |
5716500457648588544 | -0.29611086187686 | 0.19294344402742866 | 113.06363498027248 | 0.11150535997642579 | -19.697455798017586 | 0.13209044076450405 | -1.989419980575689 | 0.22763735810184282 | 2.2584943079790594 | 0.26361414955694784 | 19.382585525512695 | 40.338978 | 17.835725784301758 | 104.02747 | 18.657146453857422 | 710.47925 | 1.5468597412109375 | 0.7254390716552734 | 0.8214206695556641 | 19.5487003326416 | 0.00901299994438887 | 18.6933002471924 | 0.00752699980512261 | 18.2212009429932 | 0.0055669997818768 | 17.9498996734619 | 0.011489000171423 | -0.08073320654888885 | -0.09436902590357464 | 2.6384059729209275 | -1.3877420505238705 |
5716888512235383680 | 0.042398836427607396 | 0.15774273760573246 | 115.10385880956501 | 0.08903850741628377 | -18.399861758028973 | 0.1031557863667918 | -2.2488119900640493 | 0.18803298064610866 | 3.6556960038818516 | 0.2145673801214416 | 18.772159576416016 | 60.385723 | 17.601272583007812 | 125.58181 | 18.271421432495117 | 825.023 | 1.1708869934082031 | 0.5007381439208984 | 0.6701488494873047 | 18.8610992431641 | 0.0079330001026392 | 18.2682991027832 | 0.00847600027918816 | 17.9792003631592 | 0.0113979997113347 | 17.8162002563477 | 0.00308699999004602 | -0.12619149543922498 | -0.11543648688541368 | 3.3758803428502135 | -2.635293748147235 |
5717179264342566400 | 0.04494940409405784 | 0.15232524871360134 | 115.28270232626647 | 0.0813598890748721 | -18.17982231998236 | 0.09326843839600313 | -4.826272549307452 | 0.17394969453799566 | 3.152817779925323 | 0.19533820917480793 | 18.476722717285156 | 73.94697 | 17.296300888061523 | 164.27692 | 17.982465744018555 | 905.2205 | 1.1804218292236328 | 0.49425697326660156 | 0.6861648559570312 | 18.5611000061035 | 0.00507800001651049 | 17.9696998596191 | 0.00861299969255924 | 17.6774005889893 | 0.00585500011220574 | 17.5377998352051 | 0.0065080001950264 | -0.12784860222106753 | -0.1139531917901135 | 5.612530588623685 | -1.2724774548585431 |
5718834171083071232 | 0.18630911416992119 | 0.08648532177028069 | 115.97190882725991 | 0.04666679406125647 | -16.86914550398814 | 0.050611027236631245 | -0.7766657497484148 | 0.10022556163760633 | 1.7603127769712652 | 0.1057769010471151 | 17.399930953979492 | 241.16924 | 16.71757698059082 | 307.42203 | 17.128801345825195 | 1853.4366 | 0.6823539733886719 | 0.2711296081542969 | 0.411224365234375 | 17.3780994415283 | 0.00627399981021881 | 17.1306991577148 | 0.00304000009782612 | 17.0604000091553 | 0.00302299996837974 | 17.046199798584 | 0.00451500015333295 | -0.12267559450842516 | -0.0925776910425794 | 1.3354535796158344 | -1.3828769528247251 |
5718837985007723776 | -0.6034268287460997 | 0.8471914500478623 | 115.95701529843298 | 0.4622587854689712 | -16.79195477816015 | 0.39642150464315634 | -3.1439204612600626 | 0.8914436170074439 | 3.8717785771551236 | 0.8037499815722136 | 21.333545684814453 | 12.137748 | 19.420438766479492 | 34.30069 | 20.42335319519043 | 258.17365 | 1.913106918334961 | 0.9101924896240234 | 1.0029144287109375 | 21.7075004577637 | 0.0498320013284683 | 20.5072994232178 | 0.0799449980258942 | 19.8341999053955 | 0.017195999622345 | 19.4696006774902 | 0.0202399995177984 | -0.12006369203477486 | -0.08946744391469698 | 4.282936742578678 | -2.5460628073711047 |