Welcome to iraf.net Sunday, May 12 2024 @ 10:28 AM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 quick syntax question: scopy and FITS extensions
   
paulartcoelho
 01/15/2007 11:00AM (Read 5125 times)  
++---
Junior

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

 
Profile Email
 Quote
fitz
 01/15/2007 11:00AM  
AAAAA
Admin

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

 
Profile Email
 Quote
paulartcoelho
 01/15/2007 11:00AM  
++---
Junior

Status: offline


Registered: 03/09/2006
Posts: 18
It helped a lot Mike. Thanks a lot !

 
Profile Email
 Quote
   
Content generated in: 0.10 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login