|
From: | Boud Roukema |
Subject: | [gnuastro-devel] [task #14691] cosmiccal: handle stdin and act as a filter to stdout |
Date: | Tue, 3 Oct 2017 11:15:46 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
URL: <http://savannah.gnu.org/task/?14691> Summary: cosmiccal: handle stdin and act as a filter to stdout Project: GNU Astronomy Utilities Submitted by: boud Submitted on: Tue 03 Oct 2017 03:15:44 PM UTC Should Start On: Tue 03 Oct 2017 12:00:00 AM UTC Should be Finished on: Tue 03 Oct 2017 12:00:00 AM UTC Category: CosmicCalculator Priority: 5 - Normal Item Group: New feature Status: None Privacy: Public Percent Complete: 0% Assigned to: boud Open/Closed: Open Discussion Lock: Any Effort: 0.00 _______________________________________________________ Details: It would be good if cosmiccal can read a list of redshifts or times from standard input _stdin_ and output the (single) chosen parameter (or possibly: multiple space-separated parameters) to standard output _stdout_. A simple way to do this is to read from stdin until EOF as in cosmdist: https://bitbucket.org/broukema/cosmdist/src/deeeef1a681257a5ef42412eaec0928e61425b68/cosmdist.c?at=master&fileviewer=file-view-default Ways to modify cosmiccal include: * if neither redshift or time are entered, then read and filter stdin * add a single minus "-" option as a parameter to override default input redshift or time More ambitious methods include communicating directly between the processes before and after the pipe. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/task/?14691> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |