set_forward_resolution#

set_forward_resolution(tivs, resolutions)#

Set the forward resolution of STARE temporal index values

Parameters:
tivs: 1D array-like

tivs to set the resolution for

resolutions: 1D array-like

resolutions to be set. Either single value or same resolution as tivs

Examples

>>> tivs = numpy.array([2275448179115690537, 2234915782217697833])
>>> pystare.set_forward_resolution(tivs, numpy.array([9, 9]))
array([2275448179115690281, 2234915782217697577])
>>> pystare.set_forward_resolution(tivs, [9, 9])
array([2275448179115690281, 2234915782217697577])
>>> pystare.set_forward_resolution(tivs, 9)
array([2275448179115690281, 2234915782217697577])
>>> tiv = pystare.set_forward_resolution(numpy.array([2275448179115690533]), 8)
>>> pystare.forward_resolution(tiv)
array([8])