bugGNU Astronomy Utilities - Bugs: bug #64138, Arithmetic's mknoise-poisson only...

 
 

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

bug #64138: Arithmetic's mknoise-poisson only using first pixel value

Submitter:  Mohammad Akhlaghi <makhlaghi>
Submitted:  Wed 03 May 2023 01:49:42 PM UTC
   
 
Category:  Arithmetic Severity:  3 - Normal
Item Group:  Output not reasonable Status:  Fixed
Privacy:  Public Assigned to:  makhlaghi
Open/Closed:  Closed

Wed 03 May 2023 02:01:38 PM UTC, comment #1: 

This bug has been fixed in Commit 682eb3bf1.

The latest tarball with this fix is available in http://akhlaghi.org/gnuastro-latest.tar.lz

Mohammad Akhlaghi <makhlaghi>
Group administrator
Wed 03 May 2023 01:49:42 PM UTC, original submission:  

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


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
    2023-05-03 makhlaghi StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2023-05-03 makhlaghi Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code