DATA REDUCTION AND ERROR ANALYISIS FOR THE PHYSICAL SCIENCES