avocado.Dataset.get_object

Dataset.get_object(index=None, object_class=None, object_id=None)

Parse keywords to pull a specific object out of the dataset

Parameters:
  • index (int (optional)) – The index of the object in the dataset in the range [0, num_objects-1]. If a specific object_class is specified, then the index only counts objects of that class.
  • object_class (int or str (optional)) – Filter for objects of a specific class. If this is specified, then index must also be specified.
  • object_id (str (optional)) – Retrieve an object with this specific object_id. If index or object_class is specified, then object_id cannot also be specified.
Returns:

astronomical_object – The object that was retrieved.

Return type:

AstronomicalObject