[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #64138] Arithmetic's mknoise-poisson only using first pixel value
From: |
Mohammad Akhlaghi |
Subject: |
[bug #64138] Arithmetic's mknoise-poisson only using first pixel value |
Date: |
Wed, 3 May 2023 09:49:45 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?64138>
Summary: Arithmetic's mknoise-poisson only using first pixel
value
Group: GNU Astronomy Utilities
Submitter: makhlaghi
Submitted: Wed 03 May 2023 02:49:42 PM BST
Category: Arithmetic
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: Wed 03 May 2023 02:49:42 PM BST By: Mohammad Akhlaghi <makhlaghi>
As of version 0.20, when Arithmetic is called with the 'mknoise-poisson'
operator, it will only use the first pixel to define the noisy scatter (while
it should use each pixel's value separately).
This bug was reported by Irene Pintos-Castro when using it on an image with a
NaN value on its first pixel (where the resulting image would be fully NaN).
The problem can be reproduced with this command:
$ cat img.txt
nan 1 2
1 2 3
1 2 3
$ astconvertt img.txt -o img.fits
$ astarithmetic img.fits 5 mknoise-poisson -onoisy.fits
$ aststatistics noisy.fits --number
aststatistics: noisy.fits (hdu: 1): all elements are blank
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64138>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug #64138] Arithmetic's mknoise-poisson only using first pixel value,
Mohammad Akhlaghi <=