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
tmapcan be created withlincover(t_map, n).
- Returns:
- out, weightarray
Summed fractional values and fractions
See also
lincoverto create a linspace that exactly covers the range of an array