gnuastro-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #63485] Oversampling in radial profile has incorrect center


From: Mohammad Akhlaghi
Subject: [bug #63485] Oversampling in radial profile has incorrect center
Date: Wed, 7 Dec 2022 20:43:20 -0500 (EST)

URL:
  <https://savannah.gnu.org/bugs/?63485>

                 Summary: Oversampling in radial profile has incorrect center
                 Project: GNU Astronomy Utilities
               Submitter: makhlaghi
               Submitted: Thu 08 Dec 2022 01:43:18 AM UTC
                Category: Installed scripts
                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: Thu 08 Dec 2022 01:43:18 AM UTC By: Mohammad Akhlaghi <makhlaghi>
When the radial profile script is run with '--oversample' that is larger than
1, the central radial annulus will be incorrectly placed on the edge of the
original resolution central pixel. But the central over-sampled pixel should
be in the center of the original resolution image.

To reproduce the problem, you can run the following commands. When DS9 opens
from the last command, zoom-in to the central pixel of the values image and
note how the pixel with the smallest value in the apertures image is on the
edge of the values image, not its center!


$ echo "1 50 50 1 20 4 0 1 1 1" \
       | astmkprof --mergedsize=99,99 --oversample=1 -oraw.fits

$ astscript-radial-profile raw.fits --oversample=3 --keeptmp \
           --tmpdir=rad-tmp-dir --ds9scale=minmax

$ astscript-fits-view rad-tmp-dir/values.fits rad-tmp-dir/apertures.fits


This bug was found during a discussion with Nafiseh Sedighi.







    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63485>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]