WCSTools programs

getpix
Examples

1. Get single pixel value

$ getpix test.fit 1 1
16498 

2. Get single pixel value in verbose mode

$ getpix -v test.fit 1 1
GETPIX WCSTools 3.9.0, 10 January 2014, Jessica Mink SAO
Print rows 1, columns 1 in FITS image file test.fit
test.fit[1,1] = 16498

3. Get patch from image and label pixels

$ getpix %3d -l test.fit 21-25 21-25
       21  22  23  24  25
  25: 628 663 664 661 699 
  24: 690 620 620 622 660 
  23: 617 642 670 667 671 
  22: 641 653 663 633 653 
  21: 627 673 662 683 667 

4. Get pixels from image with values less than a limit

Find out how many pixels there are in image test.fit with values less than -1000. 0 0 indicates that the entire image should be checked.
$  getpix -l -1000 test.fit 0 0 | wc -l
    2570
Find out how many pixels there are in image test.fit with values less than -10000.
$ getpix -l -10000 test.fit 0 0 | wc -l
    1442

Last updated 19 May 2014 by Jessica Mink

SAO TDC [getpix commands]