remap_time

screens.remap.remap_time(ds, t_map, new_t)[source] [edit on github]

Remap DS(t, f) to new(t_map[t], f).

Parameters:
dsarray

Dynamic spectrum that is to be remapped in time.

t_maparray

Holding the new times each old time (or each pixel) should map to.

new_tarray or int

Time array for the output. The frequency array is assumed to be unchanged. Should be monotonously increasing. Input that covers the range in tmap can be created with lincover(t_map, n).

Returns:
out, weightarray

Summed fractional values and fractions

See also

lincover

to create a linspace that exactly covers the range of an array