- sunpy.image.resample.resample(orig, dimensions, method='linear', center=False, minusone=False)¶
Returns a new
numpy.ndarraythat has been resampled up or down.
Arbitrary resampling of source array to new dimension sizes. Currently only supports maintaining the same number of dimensions. To use 1-D arrays, first promote them to shape (x,1).
Uses the same parameters and creates the same coordinate lookup points as IDL’s
congridroutine (which apparently originally came from a VAX/VMS routine of the same name.)
numpy.ndarray) – Original input array.
"spline"}, optional) –
bool, optional) – For
orig.shape = (i,j)& new dimensions
= (x,y), if set to
origis resampled by factors of
(i/x) * (j/y), otherwise
origis resampled by
(i-1)/(x-1) * (j-1)/(y-1). This prevents extrapolation one element beyond bounds of input array.