[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #64153] ds9-region: --namecol give a constant zero in image-mode
From: |
Mohammad Akhlaghi |
Subject: |
[bug #64153] ds9-region: --namecol give a constant zero in image-mode |
Date: |
Fri, 5 May 2023 10:55:49 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?64153>
Summary: ds9-region: --namecol give a constant zero in
image-mode
Group: GNU Astronomy Utilities
Submitter: makhlaghi
Submitted: Fri 05 May 2023 03:55:47 PM BST
Category: Installed scripts
Severity: 3 - Normal
Item Group: Output not reasonable
Status: In Progress
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Fri 05 May 2023 03:55:47 PM BST By: Mohammad Akhlaghi <makhlaghi>
When the DS9 script is requested to build regions with coordinates in the
image-mode, it ignores the column values and gives a name of 0 to all
regions.
The problem can be reproduced with the following series of commands:
$ wget https://akhlaghi.org/data/xdf-f160w-crop.fit
$ astnoisechisel xdf-f160w-crop.fits -onc.fit
$ astsegment nc.fits -oseg.fit
$ astmkcatalog seg.fits --ids --x --y --ra --dec -ocat.fits
# In WCS-mode the regions have their IDs correctly
$ astscript-ds9-region seg.fits -cra,dec --namecol=obj_id \
--mode=wcs --command="ds9 seg.fits"
# But in this one (image-mode), all regions have a label of 0!
$ astscript-ds9-region cat.fits -cx,y --namecol=obj_id \
--mode=img --command="ds9 seg.fits"
This bug was reported by Zahra Sharbaf.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64153>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug #64153] ds9-region: --namecol give a constant zero in image-mode,
Mohammad Akhlaghi <=