[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #62679] MakeProfiles kernel only normalized when zeropoint is 0
From: |
Mohammad Akhlaghi |
Subject: |
[bug #62679] MakeProfiles kernel only normalized when zeropoint is 0 |
Date: |
Tue, 28 Jun 2022 11:31:51 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?62679>
Summary: MakeProfiles kernel only normalized when zeropoint
is 0
Project: GNU Astronomy Utilities
Submitter: makhlaghi
Submitted: Tue 28 Jun 2022 04:31:49 PM BST
Category: MakeProfiles
Severity: 3 - Normal
Item Group: Output not reasonable
Status: In Progress
Privacy: Public
Assigned to: makhlaghi
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Tue 28 Jun 2022 04:31:49 PM BST By: Mohammad Akhlaghi <makhlaghi>
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.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62679>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug #62679] MakeProfiles kernel only normalized when zeropoint is 0,
Mohammad Akhlaghi <=