taskGNU Astronomy Utilities - Tasks: task #15570, Operator to group rows with...

 
 

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

task #15570: Operator to group rows with special scaling

Submitted by:  Mohammad Akhlaghi <makhlaghi>
Submitted on:  Fri 06 Mar 2020 12:00:08 AM UTC  
 
Should Start On:  Thu 05 Mar 2020 12:00:00 AM UTC Should be Finished on:  Thu 05 Mar 2020 12:00:00 AM UTC
Category:  Table Priority:  5 - Normal
Item Group:  Enhancement Status:  None
Privacy:  Public Percent Complete:  0%
Assigned to:  None Open/Closed:  Open
Effort:  0.00

Fri 06 Mar 2020 12:00:08 AM UTC, original submission:  

One useful operation with tables is to group rows based on some criteria/scale in each column.

For example, assume that we have an input table like this:

# Column 1: Radius.
# Column 2: Sum of pixels.
1    100
2    50
3    20
4    10
5    5
6    4
7    3.2
8    3
9    2.8
10   2.5

Now, assume that in some scaling, we want the rows in each column to be grouped. For example in a hypothetical log-scale (the groupings are just arbitrary here, for demonstration)

# Column 1: Radius.
# Column 2: Sum of pixels.
0     100
0.39  70    # Second column, addition of rows 2&3: 50+20
0.60  19    # Second column, addition of rows 4&5&6: 10+5+4
0.92   11.5  # Second column, addition of rows 7&8&9&10: 3.2+3+2.8+2.5

The user just has to specify the reference column, and particular scaling (maybe also a 1D Voronoi, or other scaling) and their desired columns, for example:

asttable table.fits --rescale=1,log --column=1,2

Mohammad Akhlaghi <makhlaghi>
Project Administrator

 

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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.5