Menu

"Save new header" loses CALSTAT info

2022-08-01
2022-08-03
  • Bill Tschumy

    Bill Tschumy - 2022-08-01

    Han,

    I noticed that "Save new header" after doing a plate solve loses the CALSTAT info. Before the plate solve it was

    CALSTAT = 'DFBS'

    It was still this after plate solving, but after Save new header it became

    CALSTAT = ''

    Is it supposed to do that? The AAVSO submission interface needs the CALSTAT info to be there.

     
  • han.k

    han.k - 2022-08-01

    Looks like you found a bug. I will fix it.

     
  • han.k

    han.k - 2022-08-01

    Hello Bill,

    I tried to reproduce it but I can't at the moment. Can you describe more in detail the steps you did to get this effect?

    Han

     
  • Bill Tschumy

    Bill Tschumy - 2022-08-01

    Hmm….

    First off, I’m using ASTAP 2022.07.08

    I had 15 subs but 2 were thrown out by analysis. I had darks, flats and bias masters. I had Classify by “Dark exposure time", "Dark temp & gain" and "Flat filter checked”. Stacked them using Average.

    11:44:20 Grayscale stack (classify by light filter unchecked)
    11:44:20 Stack method Average
    11:44:20 Oversize 0 pixels
    11:44:20 Analysing images.
    11:44:20 Analysing group V_20 for outliers. Average image quality (nr stars/hfd)=468, σ=36.7
    11:44:20 /Users/bill/Desktop/IndigoSky/IndigoSky4/SA41_Light_V
    -10_100_20s_003.fits unchecked due to low quality = nr stars detected / hfd.
    11:44:20 /Users/bill/Desktop/IndigoSky/IndigoSky4/SA41_Light_V_-10_100_20s_008.fits unchecked due to low quality = nr stars detected / hfd.
    11:44:20 Stacking (Average), HOLD ESC key to abort.
    11:44:20 Analysing darks.
    11:44:20 Master darks(s) ready.
    11:44:20 Analysing flats.
    11:44:20 Master flat(s) ready.
    11:44:20 Reference image selected based on quality (star_detections/hfd) is: /Users/bill/Desktop/IndigoSky/IndigoSky4/SA41_Light_V_-10_100_20s_001.fits
    11:44:20 Loading master dark file /Users/bill/Desktop/IndigoSky/Calibration/master_dark_15x20s_at_-10C_2022-07-27.fit
    11:44:21 Loading master flat file /Users/bill/Desktop/IndigoSky/Calibration/master_flat_corrected_with_flat_darks_V_20xF_20xFD_2022-07-31.fit
    11:44:21 Adding file: 1-13 "/Users/bill/Desktop/IndigoSky/IndigoSky4/SA41_Light_V_-10_100_20s_002.fits" to average. Using 15 darks, 20 flats, 20 flat-darks
    11:44:22 Adding file: 2-13 "/Users/bill/Desktop/IndigoSky/IndigoSky4/SA41_Light_V_-10_100_20s_001.fits" to average. Using 15 darks, 20 flats, 20 flat-darks
    11:44:22 247 of 250 quads selected matching within 0.007 tolerance. Solution x:=0.999991x+ 0.000014y+ -0.181008, y:=-0.000020x+ 1.000003y+ 0.271179
    11:44:23 Adding file: 4-13 "/Users/bill/Desktop/IndigoSky/IndigoSky4/SA41_Light_V_-10_100_20s_004.fits" to average. Using 15 darks, 20 flats, 20 flat-darks
    11:44:23 236 of 237 quads selected matching within 0.007 tolerance. Solution x:=0.999992x+ 0.000026y+ 0.302696, y:=-0.000012x+ 0.999944y+ 3.841789
    11:44:24 Adding file: 5-13 "/Users/bill/Desktop/IndigoSky/IndigoSky4/SA41_Light_V_-10_100_20s_005.fits" to average. Using 15 darks, 20 flats, 20 flat-darks
    11:44:24 227 of 227 quads selected matching within 0.007 tolerance. Solution x:=0.999996x+ -0.000021y+ 0.558814, y:=-0.000012x+ 0.999959y+ 3.143145
    11:44:25 Adding file: 6-13 "/Users/bill/Desktop/IndigoSky/IndigoSky4/SA41_Light_V_-10_100_20s_006.fits" to average. Using 15 darks, 20 flats, 20 flat-darks
    11:44:25 209 of 209 quads selected matching within 0.007 tolerance. Solution x:=1.000014x+ -0.000025y+ 0.696274, y:=-0.000020x+ 0.999987y+ 3.729801
    11:44:26 Adding file: 7-13 "/Users/bill/Desktop/IndigoSky/IndigoSky4/SA41_Light_V_-10_100_20s_007.fits" to average. Using 15 darks, 20 flats, 20 flat-darks
    11:44:26 251 of 251 quads selected matching within 0.007 tolerance. Solution x:=1.000009x+ -0.000008y+ 0.824089, y:=0.000003x+ 1.000011y+ 5.372582
    11:44:26 Adding file: 9-13 "/Users/bill/Desktop/IndigoSky/IndigoSky4/SA41_Light_V_-10_100_20s_009.fits" to average. Using 15 darks, 20 flats, 20 flat-darks
    11:44:27 219 of 219 quads selected matching within 0.007 tolerance. Solution x:=0.999959x+ -0.000044y+ 1.374313, y:=0.000017x+ 1.000021y+ 4.675167
    11:44:27 Adding file: 10-13 "/Users/bill/Desktop/IndigoSky/IndigoSky4/SA41_Light_V_-10_100_20s_010.fits" to average. Using 15 darks, 20 flats, 20 flat-darks
    11:44:28 209 of 211 quads selected matching within 0.007 tolerance. Solution x:=0.999973x+ -0.000009y+ 1.448250, y:=0.000041x+ 0.999945y+ 6.655882
    11:44:28 Adding file: 11-13 "/Users/bill/Desktop/IndigoSky/IndigoSky4/SA41_Light_V_-10_100_20s_011.fits" to average. Using 15 darks, 20 flats, 20 flat-darks
    11:44:29 249 of 249 quads selected matching within 0.007 tolerance. Solution x:=1.000011x+ -0.000048y+ 1.694664, y:=0.000030x+ 0.999983y+ 6.922060
    11:44:29 Adding file: 12-13 "/Users/bill/Desktop/IndigoSky/IndigoSky4/SA41_Light_V_-10_100_20s_012.fits" to average. Using 15 darks, 20 flats, 20 flat-darks
    11:44:30 238 of 238 quads selected matching within 0.007 tolerance. Solution x:=0.999967x+ -0.000045y+ 1.952011, y:=0.000070x+ 0.999951y+ 7.014339
    11:44:30 Adding file: 13-13 "/Users/bill/Desktop/IndigoSky/IndigoSky4/SA41_Light_V_-10_100_20s_013.fits" to average. Using 15 darks, 20 flats, 20 flat-darks
    11:44:31 236 of 236 quads selected matching within 0.007 tolerance. Solution x:=1.000022x+ -0.000033y+ 1.936835, y:=0.000069x+ 0.999987y+ 7.948753
    11:44:31 Adding file: 14-13 "/Users/bill/Desktop/IndigoSky/IndigoSky4/SA41_Light_V_-10_100_20s_014.fits" to average. Using 15 darks, 20 flats, 20 flat-darks
    11:44:32 207 of 208 quads selected matching within 0.007 tolerance. Solution x:=0.999983x+ -0.000045y+ 2.210639, y:=0.000040x+ 0.999965y+ 10.240884
    11:44:32 Adding file: 15-13 "/Users/bill/Desktop/IndigoSky/IndigoSky4/SA41_Light_V_-10_100_20s_015.fits" to average. Using 15 darks, 20 flats, 20 flat-darks
    11:44:33 223 of 224 quads selected matching within 0.007 tolerance. Solution x:=0.999955x+ -0.000078y+ 2.557314, y:=0.000046x+ 0.999907y+ 10.324202
    11:44:33 █ █ █ Saving result 13 as /Users/bill/Desktop/IndigoSky/IndigoSky4/no_object, 2022-07-30, 13x20L, (V), ZWO ASI2600MM Pro #0_average_stacked.fits
    Finished in 14 sec. The FITS header contains a detailed history.

    The headed shown in the image window has DFBS for CALSTAT

    I then clicked the solve button:

    11:45:33 Using star database V17
    11:45:33 534 stars, 409 quads selected in the image. 357 database stars, 273 database quads required for the square search field of 1.2°. Search window at 100% based on the number of quads. Step size at 100% of image height
    11:45:33 107 of 107 quads selected matching within 0.007 tolerance. Solution["] x:=0.006248x+ 2.101759y+ -2138.643297, y:=2.101439x+ -0.006168y+ -3285.306061
    11:45:33 Solution found: 21: 53 39.9 +45° 25 45 Solved in 0.4 sec. Δ was 53.3°. Mount Δα=0.0°, Δδ=0.0°. Used stars down to magnitude: 12.6

    CALSTAT is still correct.

    Clicked Save Header and now the CALSTAT is blank.

    Hope that helps.

    Bill

     
  • Bill Tschumy

    Bill Tschumy - 2022-08-01

    And here is the header after the save:

    SIMPLE = T / file conforms to FITS standard
    BITPIX = -32 / number of bits per data pixel
    NAXIS = 2 / number of data axes
    NAXIS1 = 3124 / length of data axis 1 [pixels]
    NAXIS2 = 2088 / length of data axis 2 [pixels]
    EXTEND = T / FITS dataset may contain extensions
    BZERO = 0 / offset data range to that of unsigned short
    BSCALE = 1 / default scaling factor
    XBINNING= 2 / horizontal binning [pixels]
    YBINNING= 2 / vertical binning [pixels]
    XPIXSZ = 7.52 / pixel width [microns]
    YPIXSZ = 7.52 / pixel height [microns]
    IMAGETYP= 'Light' / frame type
    GAIN = 100.00 / Gain
    OFFSET = 10.00 / Offset
    DATE-OBS= '2022-07-30T04:21:58'
    INSTRUME= 'ZWO ASI2600MM Pro #0' / instrument name
    ROWORDER= 'TOP-DOWN' / Image row order
    SITELAT = '40 08 25'
    SITELONG= '-105 09 29'
    OBJCTRA = '21 53 46'
    OBJCTDEC= '45 25 55'
    FILTER = 'V'
    COMMENT 1 Written by ASTAP. www.hnsky.org
    CALSTAT = ''
    JD-AVG = 2.459790680291E+006 / Julian Day of the observation mid-point.
    DATE-AVG= '2022-07-30T04:19:37'
    COMMENT D=master_dark_15x20s_at_-10C_2022-07-27.fit
    COMMENT F=master_flat_corrected_with_flat_darks_V_20xF_20xFD_2022-07-31.fit
    HISTORY 1 Stacking method AVERAGE
    HISTORY 2 Processed as gray scale images.
    EXPTIME = 260 / Total luminance exposure time in seconds.
    SET-TEMP= -10 / Set temperature used for luminance.
    LUM_EXP = 20 / Average luminance exposure time.
    LUM_CNT = 13 / Luminance images combined.
    LUM_DARK= 15 / Darks used for luminance.
    LUM_FLAT= 20 / Flats used for luminance.
    LUM_BIAS= 20 / Flat-darks used for luminance.
    DATAMIN = 0 / Minimum data value
    DATAMAX = 38531 / Maximum data value
    CBLACK = 488 / Black point used for displaying image.
    CWHITE = 1108 / White point used for displaying the image.
    CTYPE1 = 'RA---TAN' / first parameter RA , projection TANgential
    CTYPE2 = 'DEC--TAN' / second parameter DEC, projection TANgential
    CUNIT1 = 'deg ' / Unit of coordinates
    EQUINOX = 2000.0 / Equinox of coordinates
    CRPIX1 = 1.562500000000E+003 / X of reference pixel
    CRPIX2 = 1.044500000000E+003 / Y of reference pixel
    CRVAL1 = 3.284162166584E+002 / RA of reference pixel (deg)
    CRVAL2 = 4.542906803097E+001 / DEC of reference pixel (deg)
    CDELT1 = 5.837357078785E-004 / X pixel size (deg)
    CDELT2 = 5.838243501058E-004 / Y pixel size (deg)
    CROTA1 = -9.018657411600E+001 / Image twist of X axis (deg)
    CROTA2 = -9.018848177763E+001 / Image twist of Y axis (deg)
    CD1_1 = -1.920269632144E-006 / CD matrix to convert (x,y) to (Ra, Dec)
    CD1_2 = -5.838212547587E-004 / CD matrix to convert (x,y) to (Ra, Dec)
    CD2_1 = 5.837325493896E-004 / CD matrix to convert (x,y) to (Ra, Dec)
    CD2_2 = -1.901122917610E-006 / CD matrix to convert (x,y) to (Ra, Dec)
    PLTSOLVD= T / ASTAP internal solver
    COMMENT 7 ' Solved in 0.4 sec. Offset 53.3°. Mount offset RA=0.0°, DEC=0.0°'
    END

     
  • han.k

    han.k - 2022-08-01

    Okay, I found it. Fixed in version 2022-08-01a (Windows) just uploaded.

    Thanks for the feedback.

    Han

     
  • Bill Tschumy

    Bill Tschumy - 2022-08-01

    Great!

    I need the macOS version (Intel processor). If you can build that at some point it would be much appreciated.

    Bill

     
  • han.k

    han.k - 2022-08-02

    Hi Bill,

    I will do some code optimisation the next hours and release a Mac version today

    Cheers, Han

     
  • Bill Tschumy

    Bill Tschumy - 2022-08-02

    I see that you released a new v2022.08.02 Mac version. Thanks.

    I installed it but it seems to still have an issue which I don't seem to be able to reproduce. After stacking and plate solving (but not saving) I looked at the header and saw:

    CALSTAT = 'DFDFDFDFDFBS'

    Not 100% sure it was the DF that was repeated but I think that was it. I also think it was repeated 5 times which was the number of Lights I stacked.

    As I said, I haven't been able to reproduce it but it was real. Maybe something will spring to your mind about how that could happen.

    The good news is that the CALSTAT field is not cleared when saving the header. Yay!

     
  • Bill Tschumy

    Bill Tschumy - 2022-08-02

    OK, one more change in the new version that may be a bug.

    I think that after a Solve, ASTAP would automatically display the RA/Dec grid. It no longer does that. However, if you Save the header and then reload the file, then the grid is automatically displayed. Was this intentional?

     
  • han.k

    han.k - 2022-08-03

    This is a bug in the last version. I localized many variables but resulted in one more bug. I will update the Mac version.

     
  • han.k

    han.k - 2022-08-03

    I have released version 2022-08-03 for the Mac. Hopefully no more bugs left. Tell me if you find something else. :)

    Cheers, Han

     
  • Bill Tschumy

    Bill Tschumy - 2022-08-03

    Han,

    Thanks for the quick support. The problems I mentioned appear to have been fixed I will bang on it some today and let you know if I see anything else.

    Bill

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.