Menu

#269 strsplit function in 0.9rc4_1?

closed
nobody
None
5
2010-03-25
2010-03-25
No

I was trying out GDL (the Macports install, version 0.9rc4_1) using a program la_cosmic.pro (linked from http://www.astro.yale.edu/dokkum/lacosmic/download.html\)

It has two problems in GDL. The first is the function filefind. This is easily replaced with the flle_search function. The second is the function strsplit. It is called in the line:

troot = strsplit(imlist[i],".fits",/extract,/regex)

where imlist[i] is a list of file names.

but GDL fails with the message:

Function not found: STRSPLIT

Is this a bug in GDL or should I file it as a feature request?

(GDL seems to have come quite a long way in the past 6 months)

DN

Discussion

  • David Nicholls

    David Nicholls - 2010-03-25
    • summary: strsplit function in 0.9rd4_1? --> strsplit function in 0.9rc4_1?
     
  • Sylwester Arabas

    Hello David,

    STRSPLIT and FINDFILE are both implemented.

    The needed files (strsplit.pro and findfile.pro) are both installed by default in
    ${prefix}/share/gnudatalanguage/lib (also by Macports).

    GDL searches these paths by default unless any of the GDL_PATH or IDL_PATH env. vars are set.
    Please check if your GDL_PATH env. var does not point to some other directory?

    Hope that helps,
    Sylwester

     
  • David Nicholls

    David Nicholls - 2010-03-25

    I notice that strsplit.pro is present in the (Macports) folder:

    /opt/local/var/macports/software/gnudatalanguage/0.9rc4_1/opt/local/share/gnudatalanguage/lib/

    and also in

    /opt/local/share/gnudatalanguage/lib/

    and in the Macport build folders.

    so it appears GDL is not finding it. A Macports bug perhaps? Or a PATH problem?

     
  • David Nicholls

    David Nicholls - 2010-03-25

    OK, thanks Sylwester. The problem was indeed the GDL_PATH. Now it works perfectly!

    DN

     
  • Sylwester Arabas

    • status: open --> closed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.