function delta
Creates a delta function. This is defined by: All values in the array 0 except for (x, y) which is set to value. If value is not set, 1 will be used. Optional keywords are naxis1, naxis2 which determine the size of the array. If not set, the size of the array is determined from global variables.
Syntax
result = delta(X, Y [, VALUE] [, naxis1=value] [, naxis2 = value])
Arguments
X: | The x-position of the nonzero pixel |
Y: | The y-position of the nonzero pixel |
VALUE: | Optional, the value of the nonzero pixel |
naxis1=value: | Optional, the size of the resulting array in the first dimension |
naxis2=value: | Optional, the size of the resulting array in the second dimension |