This documentation is for astroML version 0.2

This page


astroML Mailing List

GitHub Issue Tracker


Scipy 2012 (15 minute talk)

Scipy 2013 (20 minute talk)


If you use the software, please consider citing astroML.

11.4.6. astroML.datasets.fetch_moving_objects

astroML.datasets.fetch_moving_objects(data_home=None, download_if_missing=True, Parker2008_cuts=False)

Loader for SDSS moving objects datasets

Parameters :

data_home : optional, default=None

Specify another download and cache folder for the datasets. By default all scikit learn data is stored in ‘~/astroML_data’ subfolders.

download_if_missing : optional, default=True

If False, raise a IOError if the data is not locally available instead of trying to download the data from the source site.

Parker2008_cuts : bool (optional)

If true, apply cuts on magnitudes and orbital parameters used in Parker et al. 2008

Returns :

data : recarray, shape = (??,)

record array containing 60 values for each item


See Columns 0, 35, 45, and 56 are left out of the fetch: they are string parameters. Only columns with known orbital parameters are saved.


>>> data = fetch_moving_objects()
>>> print len(data)  # number of objects
>>> u_g = data['mag_u'] - data['mag_g']
>>> print u_g[:5]  # first five u-g colors of the dataset
[ 1.48999977  1.80000114  1.78000069  1.65000153  2.01000023]