taskGNU Astronomy Utilities - Tasks: task #16377, Log-scale and custom radial...

 
 

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

task #16377: Log-scale and custom radial profiles

Submitter:  Mohammad Akhlaghi <makhlaghi>
Submitted:  Thu 08 Jun 2023 03:22:30 PM UTC
   
 
Should Start On:  Wed 07 Jun 2023 11:00:00 PM UTC Should be Finished on:  Wed 07 Jun 2023 11:00:00 PM UTC
Category:  Installed scripts Priority:  5 - Normal
Item Group:  Enhancement Status:  None
Privacy:  Public Assigned to:  None
Percent Complete:  0% Open/Closed:  Open
Effort:  0.00

Thu 08 Jun 2023 03:23:17 PM UTC, comment #1: 

Here is the output of the last command below (comparing the log and linear scale aperture images):


Mohammad Akhlaghi <makhlaghi>
Group administrator
Thu 08 Jun 2023 03:22:30 PM UTC, original submission:  

As of version 0.20, 'astscript-radial-profile' will only produce a linear profile (where the distances between radial bins are constant). But we can implement custom-scale radial profiles also (where the spacing is different). For example a log-scale radial profile!

As a demonstration, with the commands below, we'll generate a Sersic profile, and generate its radial profile (while keeping the temporary directory). With the following 'astarithmetic' command, we will generate an image where the radial annuli have a log-scale distance between them:


echo "1 500 500 1 100 2.5 0 1 5 10" \
     | astmkprof --mergedsize=999,999 --oversample=1 \
                 --output=sersic.fits

astscript-radial-profile sersic.fits --keeptmp \
         --tmpdir=tmp-radial --output=profile.fits

astarithmetic tmp-radial/apertures.fits log10 10 x uint8 \
              --output=apertures-log.fits

astscript-fits-view --ds9scale=minmax \
                    tmp-radial/apertures.fits apertures-log.fits


The extra 'astarithmetic' command can be added when the user give the option '--scale=log' to the radial profile script. The 'apertures-log.fits' file can then be given to MakeCatalog to generate the log-scaled radial profile. Afterwards (on the output table), we can do the inverse of the operation above (divide by 10, and put to the power of 10) to recover the original radius of each annulus.

Further more, because MakeProfiles accepts custom profiles (see the description of '--customtable' in MakeProfiles profile settings, users can optionally give '--scale=custom.fits' to define any custom method of binning they desire (not just log-scale!).

Mohammad Akhlaghi <makhlaghi>
Group administrator

 

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

Attached Files

 

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

    Date Changed by Updated Field Previous Value => Replaced by
    2023-06-08 makhlaghi Attached File- Added radial-profile-linear-log.png, #54824
        Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code