[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[task #15803] Match program builds k-d tree and later read from it
From: |
Mohammad Akhlaghi |
Subject: |
[task #15803] Match program builds k-d tree and later read from it |
Date: |
Sat, 12 Dec 2020 21:53:08 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0 |
Update of task #15803 (project gnuastro):
Percent Complete: 20% => 70%
Summary: Match program should build k-d tree and later read
from it => Match program builds k-d tree and later read from it
_______________________________________________________
Follow-up Comment #5:
I made some further improvements in Commit 6b5e8ef1c7
<https://gitlab.com/makhlaghi/gnuastro-dev/-/commit/6b5e8ef1c7>, please look
into them carefully.
The logic of the program is clear (all the UI, like reading input columns, or
setting the kdtree mode) is done in 'ui.c'. We shouldn't do UI-related things
in the processing functions.
The main work is now done in that commit: the raw table that is filled in the
multi-threaded function (p->c2match) contains the index in 'coords1' ('i1')
that matches the respective index in 'coords2' ('i2'). Something like this:
'c2match[i2]=i1'.
You can use this to easily create an output (after the threading has finished)
in the same format as 'gal_match_coordinates'.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/task/?15803>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/