19 Clip an Image

Script clipim.csh ‘clips’ an image. That is, the image is displayed, you choose a sub-image with the cursor and this selected region is saved as a separate file. The script uses the KAPPA applications display, cursor and ndfcopy.

Example

To clip the file ngc2336_r_2.sdf type:

  % clipim.csh ngc2336_r_2.sdf ngc2336_small.sdf}

The clipped image will be saved in file ngc2336_small.sdf. Note that to avoid ambiguity the ‘.sdf’ file type must be included in the file name here. Also note that you must follow the instructions carefully if the script is to work correctly.