gnuastro-devel
[Top][All Lists]
Advanced

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

[sr #110541] astcrop -width not matching output


From: Alejandro S Borlaff
Subject: [sr #110541] astcrop -width not matching output
Date: Thu, 16 Sep 2021 16:05:51 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:92.0) Gecko/20100101 Firefox/92.0

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

                 Summary: astcrop -width not matching output
                 Project: GNU Astronomy Utilities
            Submitted by: borlaff
            Submitted on: Thu 16 Sep 2021 08:05:49 PM UTC
                Category: Crop
                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

    _______________________________________________________

Details:

Hi all, 

I am having a problem with astcrop. Sometimes, depending on the image to be
cropped, and the crop settings, astcrop returns an image as output with
slightly different dimensions than the desired ones. Example: 

$ astfits soft_thresh.fits

> Fits (GNU Astronomy Utilities) 0.15
Run on Thu Sep 16 12:53:18 2021
-----
HDU (extension) information: 'soft_thresh.fits'.
 Column 1: Index (counting from 0, usable with '--hdu').
 Column 2: Name ('EXTNAME' in FITS standard, usable with '--hdu').
           ('n/a' means that no name is specified for this HDU)
 Column 3: Image data type or 'table' format (ASCII or binary).
 Column 4: Size of data in HDU.
-----
0      n/a             int32           4108x3602 


$ astcrop -h0 soft_thresh.fits --mode=img --center=1854.5,1430.5 --width=512

$ astfits soft_thresh_cropped.fits 
> Fits (GNU Astronomy Utilities) 0.15
Run on Thu Sep 16 12:54:02 2021
-----
HDU (extension) information: 'soft_thresh_cropped.fits'.
 Column 1: Index (counting from 0, usable with '--hdu').
 Column 2: Name ('EXTNAME' in FITS standard, usable with '--hdu').
           ('n/a' means that no name is specified for this HDU)
 Column 3: Image data type or 'table' format (ASCII or binary).
 Column 4: Size of data in HDU.
-----
0      n/a             no-data         0       
1      n/a             int32           513x513


The output is 513x513 instead of 512x512. The same error occurs if the center
coordinates are set to int instead of float decimals. Thank you so much! 

I cant upload the soft_thresh.fits file at it is 50Mb large. It can be
downloaded here.
https://wetransfer.com/downloads/e603ba92c64b20f03d21660edcde5a3120210916200237/5c48e14ef1c52ebc7ef4f46e70b21eca20210916200257/09784d

Alex



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 16 Sep 2021 08:05:49 PM UTC  Name: soft_thresh_cropped.fits  Size:
1MiB   By: borlaff

<http://savannah.gnu.org/support/download.php?file_id=51927>

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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