taskGNU Astronomy Utilities - Tasks: task #15913, Python wrappers for Gnuastro's...


You are not allowed to post comments on this tracker with your current authentication level.

task #15913: Python wrappers for Gnuastro's programs

Submitted by:  Mohammad Akhlaghi <makhlaghi>
Submitted on:  Mon 08 Mar 2021 01:38:29 PM UTC  
Should Start On:  Mon 08 Mar 2021 12:00:00 AM UTC Should be Finished on:  Mon 08 Mar 2021 12:00:00 AM UTC
Category:  All Gnuastro Priority:  5 - Normal
Item Group:  Enhancement Status:  None
Privacy:  Public Percent Complete:  0%
Assigned to:  None Open/Closed:  Open
Effort:  0.00

Mon 08 Mar 2021 01:38:29 PM UTC, original submission:  

Many processing pipelines use Python as their high-level language (for example Euclid, where some components use Python). In the future, we do plan to add direct Python access to Gnuastro's libraries (for example in task #13786). However, that will take time (since it is a pretty low-level feature).

In the meantime, to allow easy access within Python, we can write wrappers to call Gnuastro's programs. For example, someone may want to run NoiseChisel on an image (as a Numpy array in Python). We can write that image to a file, run NoiseChisel over that file, then read the output FITS file as a Numpy array and delete the file. The same can be done for other programs. Or useful complex scenarios (for example using Arithmetic to stack images in a unique way, or calling NoiseChisel+Segment+MakeCatalog, or etc).

I have started a (currently empty) repository on Codeberg for this [1]. As of this moment (Commit 911803edbb), it just has a 'README.md' file, but please feel free to add useful python functions for now in separate files. As it grows, we'll add a Python module structure around it.

[1] https://codeberg.org/gnuastro/python-wrappers-programs

Mohammad Akhlaghi <makhlaghi>
Project Administrator


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by makhlaghi (Submitted the item)
  • -email is unavailable- added by makhlaghi
  • -email is unavailable- added by makhlaghi

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-03-08 makhlaghi Carbon-Copy- => Added asborlaff@gmail.com
        Carbon-Copy- => Added infantesainz@gmail.com

    Back to the top

    Powered by Savane 3.7