<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Times New Roman;color: #000000;font-size: 12pt;">
Hi Abhi,<br>
<br>
Use python boolean values, i.e. pass value=True to setval.<br>
<br>
Nadia<br>
<br>
<div>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px"><br>
</div>
</div>
</div>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF268665"><font color="#000000" face="Tahoma" size="2"><b>From:</b> astropy-bounces@scipy.org [astropy-bounces@scipy.org] on behalf of Abhijith Rajan [abhijithrajan@asu.edu]<br>
<b>Sent:</b> Tuesday, April 14, 2015 4:26 PM<br>
<b>To:</b> astropy<br>
<b>Subject:</b> [AstroPy] boolean header keyword<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">Hello,
<div><br>
</div>
<div>This is most likely a question for Eric, but I thought I'd see if someone knew the answer. I'm using the setval command in astropy.io.fits to update a header keyword in an HST image (SUBARRAY). The keyword originally contains either a T or F if the image
 is a subarray or not. </div>
<div><br>
</div>
<div>How do I use setval to change the keyword from T to F or vice versa. Right now its updating the header with a string and essentially crashing the code checking to make sure that the image is not a subarray. </div>
<div><br>
</div>
<div>Thanks</div>
<div>Abhi</div>
<div><br clear="all">
<div>
<div class="gmail_signature">
<div dir="ltr">
<div>-------------------------------------------------------------------------------------------</div>
Abhijith Rajan
<div>PhD Candidate</div>
<div>Arizona State University<br>
</div>
<div>School of Earth & Space Exploration</div>
<div>Interdisciplinary Sci & Tech Bldg 4 Rm 542</div>
<div>Tempe, AZ 85287</div>
<div>Tel: (480) 727-2559</div>
<div>
<div>Fax: (480) 965-8102</div>
<div><a href="http://www.abhijithrajan.com" target="_blank">www.abhijithrajan.com</a></div>
<div>-------------------------------------------------------------------------------------------</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>