bugGNU Astronomy Utilities - Bugs: bug #65106, Out put of the custom-profile in...

 
 

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

bug #65106: Out put of the custom-profile in MakeProfile has distortion

Submitter:  Sepideh Eskandarlou <sepideh>
Submitted:  Tue 02 Jan 2024 02:56:03 PM UTC
   
 
Category:  MakeProfiles Severity:  3 - Normal
Item Group:  Output not reasonable Status:  Fixed
Privacy:  Public Assigned to:  makhlaghi
Open/Closed:  Closed

Tue 02 Jan 2024 04:20:10 PM UTC, comment #2: 

Thanks for reporting this Sepideh!

The problem is not in MakeProfile, but in the underlying custom table that was given to it: the resolution (interval covered in each row) of the custom table was 1 pixel! Therefore, MakeProfiles had to round each pixel's distance to the nearest pixel, which would cause these artifacts.

To fix this problem, if you used 'astscript-radial-profile', you should add an '--oversample=5' (for an oversampling of 5). In this way, the interval covered in each row of the radial profile script will be 1/5th of a pixel.

To make this more clear in the book, in commit df7cd772b, I added a full script that can help demonstrate the problem. Have a look at it and let me know if anything is unclear ;-).

Here is a screenshot of the output of that script (notice the edges of the 2D profiles with different oversampling):


Mohammad Akhlaghi <makhlaghi>
Group administrator
Tue 02 Jan 2024 02:57:25 PM UTC, comment #1: 

The output of the below command is not reasonable. Because when I am running the following command I was expecting the out put be a smooth profile. But in some parts it have distortion.


echo "1 1000 1000 8 2000 0 0 1 0 1" \
      | astmkprof --customtable=custom-tab.fits  \
                  --output=out.fits --mergedsize=2001,2001 \
                  --oversample=1 --clearcanvas --mcolnocustprof


The output of this command are shown in below image and you can see in angle 0,90,180 and 270, have distortion.


Sepideh Eskandarlou <sepideh>
Group Member
Tue 02 Jan 2024 02:56:03 PM UTC, original submission:  


Sepideh Eskandarlou <sepideh>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #55507:  savannah.png added by sepideh (386KiB - image/png)
file #55508:  custom-tab.fits added by sepideh (20KiB - application/fits)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by makhlaghi (Updated the item)
  • -email is unavailable- added by sepideh (Submitted the item)
  •  

    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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-01-02 makhlaghi Attached File- Added oversampling-effect.png, #55509
        StatusNone Fixed
        Assigned toNone makhlaghi
        Open/ClosedOpen Closed
    2024-01-02 sepideh Attached File- Added savannah.png, #55507
        Attached File- Added custom-tab.fits, #55508

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code