boxpix

Write pixel values (to standard out) for a box in a FITS images.


% boxpix.sh n3379.fits 871 873 476 478   
     199.195
     218.284
     215.384
     231.240
     206.822
     229.479
     202.931
     233.999
     226.428

boxpix.sh a.fits 120 130 210 290  
arg1 - image name
arg2 - i1
arg3 - i2
arg4 - j1
arg5 - j2

This is not generally such useful code, but it provided a nice way to create test data files while learning how to use the Python numpy package.


Back to SCO CODES page