gnuastro-devel
[Top][All Lists]
Advanced

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

[task #16115] ds9.c: polygon expects ')' at end


From: Pedram Ashofteh Ardakani
Subject: [task #16115] ds9.c: polygon expects ')' at end
Date: Tue, 1 Feb 2022 09:37:32 -0500 (EST)

URL:
  <https://savannah.gnu.org/task/?16115>

                 Summary: ds9.c: polygon expects ')' at end
                 Project: GNU Astronomy Utilities
            Submitted by: pedram
            Submitted on: Tue 01 Feb 2022 02:19:38 PM UTC
         Should Start On: Tue 01 Feb 2022 12:00:00 AM UTC
   Should be Finished on: Tue 01 Feb 2022 12:00:00 AM UTC
                Category: Libraries
                Priority: 5 - Normal
              Item Group: Crash
                  Status: None
                 Privacy: Public
        Percent Complete: 0%
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                  Effort: 0.00

    _______________________________________________________

Details:

The library complains that 'polygon' in ds9.reg file does not end with a ')'
where it is followed by a '#'.

This happens when the ds9 user has fiddled with the region color, width, text,
etc. and the '# color=...' meta data is added after the actual 'polygon'
command.

== steps to reproduce ==
1. Create a polygon region in ds9
2. Update polygon color
3. Save region as 'ds9.reg'
4. Try cropping by that polygon:


$ astcrop FILE.fits -h1 --polygon ds9.reg
astcrop:ds9.reg:4: line with polygon vertices doesn't end with ')'. It is
expected for the line to have this format: 'polygon(AAA,BBB,...)'. Where 'AAA'
and 'BBB' are numbers and '...' signifies that any number of points are
possible


== workaround ==
1. Open the 'ds9.reg' file with a text editor.
2. Remove the '#' and its following content after the 'polygon' coordinates
3. Try cropping again




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/task/?16115>

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




reply via email to

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