X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 24 Sep 2014 03:45 AM by  anon
Layer_Stacking
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
24 Sep 2014 03:45 AM
    Hi, I'm using later_stacking_doit_multi_files routine in batch mode. It works only if the stacking layers are in the same directory. I would like to change the code like it takes layers from different locations and do stacking. I did like that but it not works, it takes only the file from other_mydir location cd, 'mydir' files = file_search('*_000000_g.tif', count=count, /fold_case) cd, 'other_mydir' files = file_search('*_000001_g.tif', count=count, /fold_case) Any help could be nice. Greetz

    Deleted User



    New Member


    Posts:
    New Member


    --
    14 Nov 2014 04:30 PM
    When you call "files = file_search('*_000001_g.tif', count=count, /fold_case)" you are overwriting results you got from the first call. Instead, you can generate a list and then add the files returned from file_search to it: files = list() cd, 'mydir' files.add, file_search('*_000000_g.tif', count=count, /fold_case) cd, 'other_mydir' files.add, file_search('*_000000_g.tif', count=count, /fold_case) files_array = files.ToArray(DIMENSION=1)
    You are not authorized to post a reply.