[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #62597] Arithmetic does not save the result in a file
From: |
Raul Infante-Sainz |
Subject: |
[bug #62597] Arithmetic does not save the result in a file |
Date: |
Wed, 8 Jun 2022 10:39:06 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?62597>
Summary: Arithmetic does not save the result in a file
Project: GNU Astronomy Utilities
Submitter: infantesainz
Submitted: Wed 08 Jun 2022 02:39:04 PM UTC
Category: Arithmetic
Severity: 3 - Normal
Item Group: Output not reasonable
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Wed 08 Jun 2022 02:39:04 PM UTC By: Raul Infante-Sainz <infantesainz>
I think this is a bug in 'Arithmetic'. Detected using the 'unique' operator,
but it may happen with other operators also.
I am trying to obtain the unique value of an image and the result is offered
to the user in a different way depending on the image. Let me explain
different situations.
- 'image.fits' contains 4 pixels, all pixels are different. The result of
astarithmetic image.fits unique
is 'image_arith.fits', a table containing the unique pixel values. If I use
'--output' to specify an output, it works fine. But there is no way of
obtaining these pixel values on the command line.
- 'image.fits' contains 4 pixels, all pixels are the same value. The result
of
astarithmetic image.fits unique
is the unique pixel value printed on the command line. This is fine. But there
is no way of obtaining the value in an output file. If I use '--output' to
specify an output, it doesn't work.
The desired behaviour should be independent of the output (one single value or
multiple values). I.e.,:
- Print on the command line by default.
- Save the output in a file if '--output' is used.
Sounds reasonable?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62597>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug #62597] Arithmetic does not save the result in a file,
Raul Infante-Sainz <=