Learn practical skills, build real-world projects, and advance your career
from vaex.quick import *
%matplotlib inline
vx.set_log_level_warning()
/Users/users/breddels/.local/lib/python2.7/site-packages/IPython/kernel/__init__.py:13: ShimWarning: The `IPython.kernel` package has been deprecated. You should import from ipykernel or jupyter_client instead. "You should import from ipykernel or jupyter_client instead.", ShimWarning)
#table = vx.open("/Users/maartenbreddels/vaex/data/tgas/Simu-AGISLab-nominal-shuffled.hdf5")
table = vx.open('/data2/users/breddels/gaia/tgas/1/Simu-AGISLab-nominal-shuffled.hdf5')
table.add_virtual_columns_equatorial_to_galactic_cartesian("Alpha", "Delta", "Distance", "x", "y", "z", radians=False)
table.add_virtual_column("rho", "sqrt(x**2+y**2)") # cylindrical radius
table.select("rho > 50.")
subspace = table("x", "y").selected()
xlim, ylim, zlim = table("x", "y", "z").limits_sigma(0.5, square=True)
table("x", "y").selected().bounded_by([xlim, ylim]).gridded()
Notebook Image