sdss fits file spectrum export and spectrum downsize tools with example implementation