Scandolous
2012-01-26 05:18:22 UTC
centre = replicate(10, n_elements(distance))
a0=1
b0=2
a and b are both values in an array
distance = (((a - replicate(a0,n_elements(d)))^2 * (cos(b0)^2)) + (b - replicate(b0,n_elements(dec)))^2)^(1/2)
f = where(distance GT r2)
plot, a(f), b(f)
error: array dimensions greater than 0
I think this is because I can't compare an array with both a variable and an array in the same where statement. If this is the case, what is the alternative?
PLEASE HELP!!