http://dev.starlink.ac.uk/bugzilla/show_bug.cgi?id=47
Summary: FITSVAL mangles BSCALE/BZERO
Product: KAPPA
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: KAPPA
AssignedTo: [log in to unmask]
ReportedBy: [log in to unmask]
QAContact: [log in to unmask]
Hi, as part of our pipeline we have a script which renames CCD frames that have
just come off tape. To do this we have a loop over all FITS files (having first
setup KAPPA and CONVERT) which does the following:
set CCD = `fitsval $i CCD`
set run = `fitsval $i RUN`
set imtype = `fitsval $i IMGTYPE`
and these variables are used to make the new file name. Before the first call to
fitsval the BSCALE and BZERO look like this:
BZERO = 32768 / Real = Pixel*BSCALE + BZERO
BSCALE = 1 / Pixel scale factor
After the first call to fitsval we get:
BSCALE = 9.893945E-01 / True_value = BSCALE * FITS_value + BZERO
BZERO = 3.311650E+04 / True_value = BSCALE * FITS_value + BZERO
All these extra decimal places cause things to break later on as the processed
files end up as _DOUBLE rather than _REAL. Is there way to persuade
KAPPA/CONVERT not to do this ?
Thanks,
Tim
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
|