ntheta is the length of the theta dimension (the number of thetas). It depends on the length of the rolling window. Larger rolling windows need a larger ntheta in order to have the same angular resolution.