<html><body><div id="zimbraEditorContainer" style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000" class="22"><div>Hi, <br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div> I am using astroquery to query Gaia data as follows:<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><span style="font-family: lucida console, sans-serif;" data-mce-style="font-family: lucida console, sans-serif;">from astroquery.vizier import Vizier</span><br><span style="font-family: lucida console, sans-serif;" data-mce-style="font-family: lucida console, sans-serif;">import astropy.coordinates as coord</span><br><span style="font-family: lucida console, sans-serif;" data-mce-style="font-family: lucida console, sans-serif;">import astropy.units as u</span><br><br data-mce-bogus="1"></div><div><span style="font-family: lucida console, sans-serif;" data-mce-style="font-family: lucida console, sans-serif;">v1 = Vizier(columns=['phot_g_mean_mag', 'parallax', 'a_g_val', 'phot_bp_mean_mag', 'phot_rp_mean_mag'])</span><br><span style="font-family: lucida console, sans-serif;" data-mce-style="font-family: lucida console, sans-serif;">v1.ROW_LIMIT = -1</span><br><br><span style="font-family: lucida console, sans-serif;" data-mce-style="font-family: lucida console, sans-serif;">c_l, c_b = 298.1, -0.1</span><br><span style="font-family: lucida console, sans-serif;" data-mce-style="font-family: lucida console, sans-serif;">query_angle = 0.25</span><br><span style="font-family: lucida console, sans-serif;" data-mce-style="font-family: lucida console, sans-serif;">raw_los2 = v1.query_region(coord.SkyCoord(l=c_l, b=c_b, unit=(u.deg, u.deg), frame="galactic"), radius=query_angle*u.deg, catalog="I/345/gaia2")</span><br><span style="font-family: lucida console, sans-serif;" data-mce-style="font-family: lucida console, sans-serif;">print(raw_los2)</span><br><br data-mce-bogus="1"></div><div>With this code, I get:</div><div><span style="font-family: lucida console, sans-serif;" data-mce-style="font-family: lucida console, sans-serif;">> TableList with 1 tables:</span><br><span style="font-family: lucida console, sans-serif;" data-mce-style="font-family: lucida console, sans-serif;">> '0:I/345/gaia2' with 5 column(s) and 69866 row(s)</span> <br><br data-mce-bogus="1"></div><div>But if I invert the bp and rp bands in the "v1 = ..." line, I get this: </div><div><span style="font-family: lucida console, sans-serif;" data-mce-style="font-family: lucida console, sans-serif;">> Empty TableList</span><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Of course I could just use the order that works, but it depends on the line of sight, so in a loop, sometimes it works, sometimes it does not, and I did not figure out the underlying logic.<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Am I doing something wrong or is there something weird here?<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Thanks !<br data-mce-bogus="1"></div><div>Julien<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div></div></body></html>