11.4.6. astroML.datasets.fetch_moving_objects

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

Loader for SDSS moving objects datasets

Parameters
data_homeoptional, default=None

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

download_if_missingoptional, 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_cutsbool (optional)

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

Returns
datarecarray, shape = (??,)

record array containing 60 values for each item

Notes

See http://www.astro.washington.edu/users/ivezic/sdssmoc/sdssmoc3.html Columns 0, 35, 45, and 56 are left out of the fetch: they are string parameters. Only columns with known orbital parameters are saved.

Examples

>>> from astroML.datasets import fetch_moving_objects
>>> data = fetch_moving_objects()  
>>> # number of objects
>>> print(len(data))  
43424
>>> # first five u-g colors of the dataset
>>> u_g = data['mag_u'] - data['mag_g']  
>>> print(u_g[:5])  
[1.4899998 1.7800007 1.6500015 2.0100002 1.8199997]