Skip to content

Instantly share code, notes, and snippets.

@astrolitterbox
astrolitterbox / bin_cube.perl
Created December 5, 2012 17:51
bin cube: Perl snippet
if ($#ARGV<2) {
print "USE: bin_cube.pl INPUT.CUBE.fits BIN_BOX OUTPUT.CUBE.fits \n";
exit;
}
$infile=$ARGV[0];
#scale factor
$N=$ARGV[1];
$outfile=$ARGV[2];
#Perl data language: read FITS file