[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-devel] [task #14761] Selecting output columns from both matche
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-devel] [task #14761] Selecting output columns from both matched inputs |
Date: |
Sun, 3 Dec 2017 18:13:44 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0 |
URL:
<http://savannah.gnu.org/task/?14761>
Summary: Selecting output columns from both matched inputs
Project: GNU Astronomy Utilities
Submitted by: makhlaghi
Submitted on: Mon 04 Dec 2017 12:13:43 AM CET
Should Start On: Mon 04 Dec 2017 12:00:00 AM CET
Should be Finished on: Mon 04 Dec 2017 12:00:00 AM CET
Category: Match
Priority: 5 - Normal
Item Group: Enhancement
Status: Postponed
Privacy: Public
Percent Complete: 0%
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Effort: 0.00
_______________________________________________________
Details:
With an option like `--outcols', we can add a feaature to let the user specify
which of the columns from the two inputs they want in the output. When this
option is used, instead of two output tables that have their rows matched, we
can output one table with the requested columns from both inputs.
Here is one example of what I have in mind now (please share your suggestions
and improvements):
$ astmatch in1.fits in2.fits
--outcols=a1,aRA,aDEC,aMAG,bMAG,aMAG_ERR,bMAG_ERR
The first character in each output column is either an `a' or `b'. `a' means a
column in the first input and `b' means a column in the second input. After
that first character, the general Gnuastro column selection rules
<https://www.gnu.org/software/gnuastro/manual/html_node/Selecting-table-columns.html>
can be used to specify the column.
So in the example above, the output will be a single table with 7 columns (no
matter how many columns the two inputs had). The first four columns and its
column 6 will come from the respective columns in the first input and the 5th
and 7th column will come from the second input table.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/task/?14761>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [gnuastro-devel] [task #14761] Selecting output columns from both matched inputs,
Mohammad Akhlaghi <=