def getval(filename, keyword, *args, **kwargs):
 if ('do_not_scale_image_data' not in kwargs):
  kwargs['do_not_scale_image_data'] = True
 hdr = getheader(filename, *args, **kwargs)
 return hdr[keyword]

def getval ( filename , keyword , * args , ** kwargs ) : if ( 'do_not_scale_image_data' not in kwargs ) : kwargs [ 'do_not_scale_image_data' ] = True hdr = getheader ( filename , * args , ** kwargs ) return hdr [ keyword ]
get a keywords value from a header in a fits file .