Skip to main content

VPHOT and AIP4WIN

11 posts / 0 new
Last post
Ed Wiley_WEY
Ed Wiley_WEY's picture
VPHOT and AIP4WIN

I had an email exchange with Richar Berry about calibration. (Good exchange, he was helpful.) When I use AIP4WIN to do my calibration and then port the images to VPHOT, VPHOT does not see the images as calibrated. In short: it does not pick up the HISTORY keyword. Richard suggests that VPHOT recognizes another keyword. I have not had this problem with other reduction packages, and I simply march forward knowing that my images are calibrated inspite of the fact that VPHOT does not recongize this fact. Anyone have a insight into the problem? On the VPHOT end? (If so, is it a simple fix?) On the AIP4WIN side? (If so, what is the modification needed?) Inquiring minds want to know.

Ed

MZK
MZK's picture
Calibration Keyword

Ed:

VPhot looks for CALSTAT='BDF'. History doesn't work.

Maxim adds that Keyword.

Can you optionally add extra Keywords to the Fits Header with AIP4WIN?

Ken

PS: As you noted, you know your images have been calibrated but I understand you would like to see a green calibration box rather than red in VPhot!

spp
spp's picture
CALSTAT Keyword

Hi Ed,

As Ken stated, VPhot wants to see CALSTAT = 'BDF' in the header, for calibration status = bias, dark, flat (I believe).  There may be other header modifications that are recognized by VPhot for this purpose, but that one certainly works. 

The problem for AIP users is that the AIP option for editing the header (Edit>FITS Header) doesn't work, at least it doesn't work in any version of AIP that I have tried (up to 2.4.0).   When you try to edit the header the new text appears, but it doesn't get saved.  This is a known bug, but as far as I know it has not been fixed, so you just have to use another program to do that.

On my Mac I use a program called  "fv" to modify the header.  This requires X11.  Some Mac's have X11 as part of the OS; some don't, so if you're using a Mac you may need to download some version of X11.  I use "XQuartz".

Phil 

 

 

uis01
FITSIO Library

Don't forget about the FITSIO library that has subrountines and functions useful for editing fits headers:

http://heasarc.gsfc.nasa.gov/fitsio/fitsio.html

One of the example programs, modhead, basically does what you want:

http://heasarc.gsfc.nasa.gov/docs/software/fitsio/cexamples.html#modhead

David Benn
David Benn's picture
Python script

Hi Ed, all

I wrote a Python script awhile ago that I use as part of my DSLR photometry process. One thing it allows you to do is set CALSTAT.

https://github.com/dbenn/photometry_tools/blob/master/modify-fits-header.py

So you can say something like this:

python modify-fits-header.py --calstat=BDF *.fit

to set the CALSTAT value in the FITS headers of multiple FITS files.

David

Lew Cook
Lew Cook's picture
AIP and VPhot

I most recently ran a folder of image files thru CCDSoft that had a routine in the 'Research' tab that allowed me to set "CALSTAT = BDF       ".
 

Lew

Ed Wiley_WEY
Ed Wiley_WEY's picture
VPHOT and AIP4WIN

Question: Does CALSTAT recognize any combination of BDF: for example "DF" (dark integration equal to light integration) or even just "D" (dark only)? Or does it recognize only BDF?

Ed

MZK
MZK's picture
VPhot Calstat

Ed:

It understands any combination of BDF.

Shows red, yellow or green in VPhot calibration box based on none or partial or all.

Ken

 

Lew Cook
Lew Cook's picture
BDF

If the integration times are the same, is there ANY difference between BDF and DF?

MZK
MZK's picture
BDF

Lew:

No difference if same integration time for dark and light. I often run different times so need B too.

Ken

Ed Wiley_WEY
Ed Wiley_WEY's picture
Thanks Ken and all

OK, that answers my question, any combination will do. From what you said, I assume BF would turn up yellow. I think that is fine so long as you know light and dark integration times are the same.

To Lew and others: I had to understand what CALSTAT recognizes, not because of my calibration steps but to encourage Richard Berry to incorporate CALSTAT into the AIP4WIN fits header.

Ed

Log in to post comments
AAVSO 49 Bay State Rd. Cambridge, MA 02138 aavso@aavso.org 617-354-0484