bugGNU Astronomy Utilities - Bugs: bug #56671, Bad sorting with asttable if nan...

 
 

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

bug #56671: Bad sorting with asttable if nan is present (GNU version 0.9.57-0e349)

Submitter:  Roberto Baena GallĂ© <rbaena>
Submitted:  Thu 25 Jul 2019 01:34:58 PM UTC
   
 
Category:  Table Severity:  3 - Normal
Item Group:  Output not reasonable Status:  Fixed
Privacy:  Public Assigned to:  makhlaghi
Open/Closed:  Closed

Thu 25 Jul 2019 05:47:28 PM UTC, comment #1: 

Thanks a lot for the great bug report Roberto.

This was a fundamental problem and has been fixed. See the commit for more.

You can install the bug-fixed version from this address:
http://akhlaghi.org/gnuastro-latest.tar.lz

Mohammad Akhlaghi <makhlaghi>
Group administrator
Thu 25 Jul 2019 01:34:58 PM UTC, original submission:  

When using asttable with the following txt file...
$ asttable sect3-cam2-ccd1-pixel-coord-with-GNU_c.txt --sort=MAGNITUDE

the output seems correct (5th column is MAGNITUDE)

565    1      251.04        255.531       -2.998       
565    2      250.664       246.994       -1.293       
568    1      53.368        278.122       -0.825       
570    1      187.437       385.514       -0.667       
569    1      423.262       190.972       -0.59        
571    1      355.011       92.329        -0.437       
572    1      493.845       206.195       0.024        
575    1      332.334       4.522         0.142        
574    1      304.064       125.519       0.181        
575    2      332.433       14.036        0.201        
573    1      330.8         53.411        0.23         
576    1      390.143       479.363       0.58         
579    1      73.412        303.046       0.82         
577    1      203.813       444.179       0.859        
571    2      327.932       79.264        0.882        
578    1      54.708        201.683       0.896        
580    1      107.814       280.312       1.014
[...]
BUT the last lines are not coherent. Could be related with the presence of NANs in such column
[...]
658    11     472.629       127.676       9.602        
1568   1      482.5         151.342       9.602        
1421   2      187.961       445.13        9.608        
1565   1      170.654       377.099       9.698        
1567   1      389.854       424.525       9.718        
568    11     49.426        289.522       9.739        
1566   1      342.373       246.705       9.839        
565    66     205.996       235.795       9.869        
1476   1      273.643       235.646       9.882        
716    23     206.315       224.796       9.883        
1319   1      242.232       213.502       9.912        
807    5      352.817       489.323       9.963        
157    1      7.077         6.354         10.063       
565    3      251.498       266.997       nan          
565    4      250.917       262.561       nan          
565    5      250.988       240.5         -0.112       
565    6      251.304       234.652       nan          
565    7      251.366       228.498       nan          
565    8      295.069       264.146       -0.099       
565    9      263.113       249.405       0.529        
565    11     284.436       254.615       1.983        
565    10     242.036       310.224       1.995        
565    12     256.537       209.006       2.49         
565    13     259.636       232.61        3.329        
565    15     269.414       227.117       4.277        
565    14     236.637       269.096       4.422        
565    19     175.874       243.933       4.499        
565    16     265.255       280.357       4.527        
565    17     236.699       314.997       4.886        
565    20     294.113       242.507       4.89         
565    21     279.984       224.877       4.927        
565    18     216.915       244.458       4.977        
566    1      251.496       272           nan          
566    2      251.302       277.87        nan          
567    1      51.984        97.723        -2.209       
567    2      43.709        116.617       2.789        
567    3      75.392        86.463        4.265        
567    4      68.301        110.431       4.432        
566    3      260.864       289.108       5.01         
566    4      265.216       294.722       5.408        
566    5      259.653       283.896       6.109        
1582   1      152.58        499.034       10.24        
623    13     102.203       37.755        10.475

Roberto Baena Gallé <rbaena>

 

(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 (Posted a comment)
  • -email is unavailable- added by rbaena (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-07-25 makhlaghi StatusNone Fixed
        Assigned toNone makhlaghi
        Open/ClosedOpen Closed
    2019-07-25 rbaena Attached File- Added sect3-cam2-ccd1-pixel-coord-with-GNU_c.txt, #47258

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code