-
craftutils.observation.epoch.Time.insert(obj, values, axis=
0) Insert values before the given indices in the column and return a new ~astropy.time.Time or ~astropy.time.TimeDelta object.
The values to be inserted must conform to the rules for in-place setting of
Timeobjects (seeGet and set valuesin theTimedocumentation).The API signature matches the
np.insertAPI, but is more limited. The specification of insert indexobjmust be a single integer, and theaxismust be0for simple row 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.time.Time subclass
New time object with inserted value(s)