group images
Guest wrote on Jun 15, 2006
Hello!
I am Kushal Mehta, a summer student at NRAO and am working on some HST
data. I am using iraf to reduce the data and I have a couple of questions:
1. Is there a task or command that I can use to make a single image
consisting of 4 groups from 4 different images?
I have 4 seperate images of the 4 chips of the WFPC2 instruments and I
would like to have one single image with 4 groups. (I am working with the
GEIS format for this)
2. What is the syntax to access different groups os a fits image?
I would highly appreciate if you could reply back as soon as possible
Thanking you in advance,
Sincerely,
Kushal Mehta
kmehta@gb.nrao.edu
Post generated using Mail2Forum (http://www.mail2forum.com)
I am Kushal Mehta, a summer student at NRAO and am working on some HST
data. I am using iraf to reduce the data and I have a couple of questions:
1. Is there a task or command that I can use to make a single image
consisting of 4 groups from 4 different images?
I have 4 seperate images of the 4 chips of the WFPC2 instruments and I
would like to have one single image with 4 groups. (I am working with the
GEIS format for this)
2. What is the syntax to access different groups os a fits image?
I would highly appreciate if you could reply back as soon as possible
Thanking you in advance,
Sincerely,
Kushal Mehta
kmehta@gb.nrao.edu
Post generated using Mail2Forum (http://www.mail2forum.com)
Ed Anderson wrote on Jun 15, 2006
At it's simplest, all you need to do is create the one larger image, and then
IMCOPY your four separtate images into it.
For example ... to create a 1024x1024 image from 4 512x512 images.
You should be able to script out what you need from this example.
NOTE: You could also use MKIMAGE to make the template image, but you
need to load noao.imred.ccdred.ccdtest
-- Ed
[MOD NOTE: The CCDTEST package still exists as a hidden package in the system but is deprecated, use ARTDATA.MKPATTERN instead
IMCOPY your four separtate images into it.
For example ... to create a 1024x1024 image from 4 512x512 images.
cl> magnify image1 bigimage 2 2 # Create the larger image
cl> imreplace bigimage 0. # Set the pixels to zero.
cl> imcopy image1 bigimage[1:512,1:512]
cl> imcopy image2 bigimage[513:1024,1:512]
cl> imcopy image3 bigimage[1:512,513:1024]
cl> imcopy image4 bigimage[513:1024,513:1024]
You should be able to script out what you need from this example.
NOTE: You could also use MKIMAGE to make the template image, but you
need to load noao.imred.ccdred.ccdtest
-- Ed
[MOD NOTE: The CCDTEST package still exists as a hidden package in the system but is deprecated, use ARTDATA.MKPATTERN instead
Last post on Jun 15, 2006