gnuastro-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sr #110802] When using the wrong command, the entry vanishes!


From: Faezeh Bidjarchian
Subject: [sr #110802] When using the wrong command, the entry vanishes!
Date: Thu, 15 Dec 2022 11:07:48 -0500 (EST)

URL:
  <https://savannah.gnu.org/support/?110802>

                 Summary: When using the wrong command, the entry vanishes!
                 Project: GNU Astronomy Utilities
               Submitter: fbidjarchian
               Submitted: Thu 15 Dec 2022 04:07:46 PM UTC
                Category: None
                Priority: 5 - Normal
                Severity: 3 - Normal
              Item Group: Input/Output
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
        Operating System: GNU/Linux


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Thu 15 Dec 2022 04:07:46 PM UTC By: Faezeh Bidjarchian <fbidjarchian>
If we have an image (image.fits) that contains NaN pixels, then after doing
some calculations on it (in my case using astarithmetic for filtering) maybe
we will lose the nan pixels. So if we need to replace all NaN pixels in our
output (image_arith.fits) to indicate that those pixels should not be used (or
for other reasons), we use this command:

astarithmetic image_arith.fits image.fits -h1 isblank nan where

In this command, the order of the FITS files is important: the first image
must be our output (after doing some calculations) and the second image is our
raw image that includes NaN pixels. 

If these two FITS files are wrongly swapped in the command (the following
command), we expect no output to be produced. But not only is there no output,
but one of the input (image_arith) also disappears:

astarithmetic image.fits image_arith.fits -h1 isblank nan where

Maybe the name of the output is the same as the name of our input
(image_arith), and because it should not produce the output with this name, it
deletes the input with the identical name! As we know if we do not determine
an output name in our command, the output is called image_arith (the name of
input with "_arith") as a default.







    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/support/?110802>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]