bugGNU Astronomy Utilities - Bugs: bug #62679, MakeProfiles kernel only...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #62679: MakeProfiles kernel only normalized when zeropoint is 0

Submitter:  Mohammad Akhlaghi <makhlaghi>
Submitted:  Tue 28 Jun 2022 03:31:49 PM UTC
   
 
Category:  MakeProfiles Severity:  3 - Normal
Item Group:  Output not reasonable Status:  Fixed
Privacy:  Public Assigned to:  makhlaghi
Open/Closed:  Closed

Tue 28 Jun 2022 03:52:33 PM UTC, comment #1: 

This bug has been fixed in Commit 092fdd68123.

Mohammad Akhlaghi <makhlaghi>
Group administrator
Tue 28 Jun 2022 03:31:49 PM UTC, original submission:  

When MakeProfiles builds a kernel (through the '--kernel' option), the output image is only normalized (the sum of its values become 1) when the zeropoint is 0. Changing the zeropoint will change the sum of the pixels which is not expected! See the commands below:


$ astmkprof --kernel=gaussian,2,5 --zeropoint=0  -oz0.fits

$ astmkprof --kernel=gaussian,2,5 --zeropoint=22 -oz22.fits

$ aststatistics z0.fits  --sum       # Sum ==1 (as expected)
0.9999999988

$ aststatistics z22.fits --sum       # Sum !=1 (not expected!)
630957631.4


This bug was found with the help of Raul Infante-Sainz.

Mohammad Akhlaghi <makhlaghi>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by makhlaghi (Submitted the item)
  • -email is unavailable- added by makhlaghi
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-06-28 makhlaghi StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2022-06-28 makhlaghi Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code