-
craftutils.observation.epoch.SkyCoord.insert(obj, values, axis=
0) Insert coordinate values before the given indices in the object and return a new Frame object.
The values to be inserted must conform to the rules for in-place setting of |SkyCoord| objects.
The API signature matches the
np.insertAPI, but is more limited. The specification of insert indexobjmust be a single integer, and theaxismust be0for simple insertion before the index.Parameters¶
- objint
Integer index before which
valuesis inserted.- valuesarray-like
Value(s) to insert. If the type of
valuesis different from that of quantity,valuesis converted to the matching type.- axisint, optional
Axis along which to insert
values. Default is 0, which is the only allowed value and will insert a row.
Returns¶
- out~astropy.coordinates.SkyCoord instance
New coordinate object with inserted value(s)