Welcome to iraf.net Friday, April 26 2024 @ 08:15 PM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 FITS kernel
   
shaw
 12/21/2015 10:52PM (Read 822 times)  
+----
Newbie

Status: offline


Registered: 08/25/2008
Posts: 2
I'm trying to select FITS MEF files based upon information that is split between the PHDU and the HDUs. For whatever reason, the file from the (Gemini) archive has INHERIT=F. I thought clever use of FITS kernel features would allow me to use hselect to create a list of images. As you can see, the keywords OBJECT and OBSTYPE reside in the PHDU, and CCDSUM in the extensions:

cl\$this->_split2($m[0]) hselect S20060715S0059.fits[0] "$I object obstype ccdsum" yes
S20060715S0059.fits[0] Bias BIAS

cl\$this->_split2($m[0]) hselect S20060715S0059.fits[1] "$I object obstype ccdsum" yes
S20060715S0059.fits[1] "2 2"

Switching on inheritance gives me OBSTYPE and CCDSUM, but not OBJECT:

cl\$this->_split2($m[0]) hselect S20060715S0059.fits[1,inherit=yes] "$I object obstype ccdsum" "obstype=='BIAS'"
S20060715S0059.fits[1,inherit=yes] BIAS "2 2"

Searching explicitly on OBJECT generates an error:
cl\$this->_split2($m[0]) hselect S20060715S0059.fits[1,inherit=yes] "$I object obstype ccdsum" "object=='Bias'"
ERROR: Image header parameter not found (object)

Is OBJECT somehow special in the IRAF FITS kernel? Is there a way to search simultaneously on values of all these keywords?

 
Profile Email
 Quote
fitz
 12/22/2015 03:10AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
The OBJECT keyword isn't special in the FITS sense, i.e. it isn't reserved. However, it is considered to be the image title string and so is handled specially by the various kernels. Try using 'i_title' instead of 'OBJECT' in your HSELECT command and you should come up with the string.

Note, you might also try using the '?=' string match operator in your selection expression instead of the boolean '==' if you have problems.

 
Profile Email
 Quote
   
Content generated in: 0.09 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