fixed variable names. rn to readnoise and sc to sigmaclip