set_reverse_resolution#
- set_reverse_resolution(tivs, resolutions)#
Set the reverse 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_reverse_resolution(tivs, numpy.array([9, 9])) array([2275448179115690533, 2234915782217697829]) >>> pystare.set_reverse_resolution(tivs, [9, 9]) array([2275448179115690533, 2234915782217697829]) >>> pystare.set_reverse_resolution(tivs, 9) array([2275448179115690533, 2234915782217697829]) >>> tiv = pystare.set_reverse_resolution(numpy.array([2275448179115690533]), 9) >>> pystare.reverse_resolution(tiv) array([9])