Welcome to iraf.net Sunday, May 12 2024 @ 10:28 AM GMT
paulartcoelho |
01/15/2007 11:00AM (Read 5125 times)
|
|
|
Status: offline
Registered: 03/09/2006
Posts: 18
|
hello,i have some FITS files that contain many image extensions, each of them a multispec spectrum. i want to extract, say, aperture 4 from all extensions into onedspec format. i tried things like: scopy chab.all.coelho.ised.fits[*] test aperture=4 format=onedspecin an attempt to say "extract for all image extensions you find" but it doesn't work ("Warning: FXF: must specify which FITS extension"). what would be the proper syntax?thx a lot
paula
|
|
|
|
fitz |
01/15/2007 11:00AM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
Hi Paula,SCOPY doesn't know about MEF files, so what you need to do is somehow just pass it the name of a single multispec image. You can do this by specifying the extension number explicitly within a loop, or if you have the FITSUTIL package installed the FXSPLIT task can break an MEF into the component single FITS files.
In the first case, something like[code:1:dc2e9dc134]
for (i=1; i < 10; i=i+1) {
scopy ("chab.all.coelho.ised.fits[" // i // "]", "test"//i, aper=4, format="onedspec")
}
[/code:1:dc2e9dc134]should loop over extensions 1-9 in the image. Note the use of the // operator in constructing the filenames. For FXSPLIT you would end up with a bunch of new images and could pass these in with a wildcard template or as an @-file. Hope this helps.Cheers,
-Mike
|
|
|
|
paulartcoelho |
01/15/2007 11:00AM
|
|
|
Status: offline
Registered: 03/09/2006
Posts: 18
|
It helped a lot Mike. Thanks a lot !
|
|
|
|
| |
|
Content generated in: 0.10 seconds |
|