gnuastro-devel
[Top][All Lists]
Advanced

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

[task #16289] Oversampling in radial profile has incorrect center


From: Mohammad Akhlaghi
Subject: [task #16289] Oversampling in radial profile has incorrect center
Date: Wed, 7 Dec 2022 20:38:18 -0500 (EST)

URL:
  <https://savannah.gnu.org/task/?16289>

                 Summary: Oversampling in radial profile has incorrect center
                 Project: GNU Astronomy Utilities
               Submitter: makhlaghi
               Submitted: Thu 08 Dec 2022 01:38:16 AM UTC
         Should Start On: Thu 08 Dec 2022 12:00:00 AM UTC
   Should be Finished on: Thu 08 Dec 2022 12:00:00 AM UTC
                Category: Installed scripts
                Priority: 5 - Normal
              Item Group: Output not reasonable
                  Status: In Progress
                 Privacy: Public
        Percent Complete: 0%
             Assigned to: makhlaghi
             Open/Closed: Open
         Discussion Lock: Any
                  Effort: 0.00


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Thu 08 Dec 2022 01:38:16 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/task/?16289>

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




reply via email to

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