Welcome to iraf.net Saturday, May 11 2024 @ 03:41 AM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 hedit doesn
   
phil_hodge
 03/05/2014 09:43PM (Read 1161 times)  
+----
Newbie

Status: offline


Registered: 03/29/2010
Posts: 5
Using "NOAO/IRAF PC-IRAF Revision 2.16 EXPORT Thu May 24 15:41:17 MST 2012" (according to the login banner), hedit does not consistently separate fields where there are commas in the 'fields' parameter. Here is an example. The file test_prism.fits is just an arbitrary FITS file.

ecl\$this->_split2($m[0]) hedit test_prism.fits[0] abc,def,ghi junk add+
add test_prism.fits[0],abc,def,ghi = junk
test_prism.fits[0] updated

ecl\$this->_split2($m[0]) catfits test_prism.fits[0] long+

*** File: test_prism.fits
SIMPLE = T / Fits standard
...
PEDIGREE= 'inflight'
ABC,DEF,= 'junk '

ecl\$this->_split2($m[0]) lpar hedit
images = "test_prism.fits[0]" images to be edited
fields = "abc,def,ghi" fields to be edited
value = "junk" value expression
(add = no) add rather than edit fields
(addonly = no) add only if field does not exist
(delete = no) delete rather than edit fields
(verify = no) verify each edit operation
(show = yes) print record of each edit operation
(update = yes) enable updating of the image header
(mode = "ql")

Phil

 
Profile Email
 Quote
fitz
 03/05/2014 09:57PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
See the help page description of the 'add' parameter, which says in part:


If this option is selected the field list may name only a single field.


Multi-value 'fields' apply only when editing/deleting parameters.

 
Profile Email
 Quote
phil_hodge
 03/06/2014 01:44PM  
+----
Newbie

Status: offline


Registered: 03/29/2010
Posts: 5
Thanks, Mike. Sorry, I had just forgotten about the difference when add=yes.

We encountered this because a cl script called hedit without specifying all the parameters, in particular add and addonly were omitted. The call to hedit did not update the keywords as intended because the user had add=yes in his uparm copy of the hedit par file. The user has been notified, and I'll fix our cl script.

Phil

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