Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

GDL and the IDL ASTRONOMY USER'S LIBRARY

Charlyms
2012-11-14
2014-12-12
  • Charlyms
    Charlyms
    2012-11-14

    Does it makes sense to "add" the routines of the IDL ASTRONOMY USER'S LIBRARY to GDL?
    And if can anyone explain how?
    Regards
    Charlyms

     
  • Hi, the answer depends on what you mean by "add". As far as I know, a significant part of the library works well with GDL. To use the routines it's enough to add the library location to the GDL's seach path list (e.g. by setting the GDL_PATH env. var).

    HTH,
    Sylwester

     
  • Alain C.
    Alain C.
    2012-11-15

    $ export GDL_PATH='+/my/path/to/GDL/src/pro/:+/my/path/to/AstronLibV4.0/pro/'
    $/my/path/to/GDL/src/gdl
    then, in GDL, print, !path to check whether the path to AstronLib was really set.

    I have a successful daily usage of a limited subset of AstronLib programs in GDL (e.g.: FORPRINT and READCOL; MRDFITS, READFITS and WRITEFITS) on various OS, including 32/64bits CPU. (Some procedures in the HEALPix lib. is using codes from AstronLib, and we have a large test suite for HEALpix … )

    Report of troubles and crashes will be greatly appreciated (bug report), **with details** (e.g. links to data). Due to significant changes in each revision of the AstronLib, we mandatory need to have information about the version you are using.

    Up to now, no regression test suite for AstronLib is available into GDL testsuite. Suggestion or draft welcome !

    Alain

     
  • Charlyms
    Charlyms
    2012-11-22

    Thank you all, I failed at last.
    I think GDL is no propper lib to manage routines like ".r viewimage.pro", viewimage  or ".r radmc3d_gui", radmc3d_gui.
    Right?
    Charlyms

     
  • Alain C.
    Alain C.
    2012-11-23

    The codes you are speaking about are part of Radmc3D code, not part of AstroLib you were speaking about before.

    In the version 0.33 of Radmc3D I tested, they used Graphic Objects we don't have now in GDL.

    Alain

     
  • Charlyms
    Charlyms
    2012-11-25

    Hi Alain,
    thank you for this adjustment (but why it doesn´t work with GDL at all)?
    Regards
    Charlyms

     
  • accrama
    accrama
    2014-12-11

    Hi. I've been reading this thread as I came out with a problem. I have added the ASTRON library in the startup path and GDL is reading SOME routines. For example, FITS_READ works but MRDFITS, which is also a *.pro routine from the same library displays the following error when called:

    GDL> MRDFITS
    % Compiled module: MRDFITS.
    % Procedure not found: MRDFITS
    % Execution halted at: $MAIN$

    Help is greatly appreciated.

     
    Last edit: accrama 2014-12-11
  • giloo
    giloo
    2014-12-12

    GDL does the same as IDL:
    IDL> mrdfits
    % Compiled module: MRDFITS.
    % Attempt to call undefined procedure/function: 'MRDFITS'.
    % Execution halted at: $MAIN$
    IDL>

    You have to call MRDFITS as a function, data=mrdfits("myfits",1,header) to get some result...

    My experience with the ASTRON lib is that the procedures there are not simple and one needs to read their documentation carefully before use. I'm sure GDL will have trouble handling some of them, but it is customary before reporting a possible bug to test that IDL, in the same condition, would give a different result.