bugGNU Astronomy Utilities - Bugs: bug #62127, Gnuastro interpolation library...

 
 

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

bug #62127: Gnuastro interpolation library does not recognize the Steffen method

Submitter:  Pedram Ashofteh-Ardakani <pedram>
Submitted:  Mon 28 Feb 2022 09:53:41 PM UTC
   
 
Category:  Libraries Severity:  3 - Normal
Item Group:  Crash Status:  Fixed
Privacy:  Public Assigned to:  pedram
Open/Closed:  Closed

Thu 03 Mar 2022 11:14:47 PM UTC, comment #1: 

Thanks a lot Pedram! It has been merged into the 'master' branch as Commit 441d684a33.

Mohammad Akhlaghi <makhlaghi>
Group administrator
Mon 28 Feb 2022 09:53:41 PM UTC, original submission:  

description


Simply put, executing the interpolation example in the Gnuastro manual would throw the following error:

> gal_interpolate_1d_make_gsl_spline: Steffen interpolation isn't available in the system's GNU Scientific Library (GSL). Please install a more recent GSL (version >= 2.0, released in October 2015) and rebuild Gnuastro


After a thorough investigation with Mohammad Akhlaghi, we found out that the 'interpolate.c' library could not recognize if the Steffen interpolation was available correctly. The problem stemmed from lack of flags corresponding to the Steffen function of the GSL library in the configuration and Makefiles.

So, we fixed this issue and updated the Gnuastro manual with the new GAL_CONFIG_HAVE_GSL_INTERP_STEFFEN macro.

Additionally, we added further details on the interpolation example in the Gnuastro manual.

You can find these changes in this branch before it is merged into the master.

Commit message


Installation: fix GSL Steffen interpolation bug

Until now, Gnuastro compiled the interpolation library based on the GSL Steffen interpolation without a proper check flag in the configuration files. This resulted in the following error message when one tried to use the 'gal_interpolate_1d_make_gsl_spline' function with the 'GAL_INTERPOLATE_1D_STEFFEN' option:

gal_interpolate_1d_make_gsl_spline: Steffen interpolation isn't
available in the system's GNU Scientific Library (GSL). Please install a more recent GSL (version >= 2.0, released in October 2015) and rebuild Gnuastro

With this commit, we have defined the 'GAL_CONFIG_HAVE_GSL_INTERP_STEFFEN' and 'HAVE_GSL_STEFFEN' flags in the configuration and library Makefiles, to check if the host machine can handle the Steffen interpolation from GSL.

Also, the interpolation example in the Gnuastro manual has been updated to reflect changes on the 'gal_interpolate_1d_make_gsl_spline' arguments. Additionally, a sample 'table.txt' file was added to the example, and the build step using the 'astbuildprog' program was demonstrated too.

Pedram Ashofteh-Ardakani <pedram>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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 (Posted a comment)
  • -email is unavailable- added by pedram (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-03-03 makhlaghi StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code