Skip to content

Instantly share code, notes, and snippets.

@demitri
Created January 26, 2016 21:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save demitri/fde9b1ee52047833c7af to your computer and use it in GitHub Desktop.
Save demitri/fde9b1ee52047833c7af to your computer and use it in GitHub Desktop.
Creating a histogram of pixel values of an image from a FITS file in R.
library(FITSio)
hdu1 = readFITS(file="myfile.fits", hdu=1)
image = hdu1$imDat
hist(image)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment