Changeset 307


Ignore:
Timestamp:
Apr 14, 2008 12:16:02 PM (14 years ago)
Author:
srkline
Message:

Filters out the "fpx*" files from the USANS_CatNotebook, since they are of a different file structure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/USANSReduction/trunk/Put in User Procedures Folder/USANS Procedures v2.21/USANSCatNotebook.ipf

    r265 r307  
    5454        list = IndexedFile(bt5PathName,-1,"????")       //get all files in folder 
    5555        Variable numitems,ii,ok 
     56                 
     57        //Igor 5 only - trim the list to the selected matching prefix (a one-liner) 
     58        list = ListMatch(list, matchStr , ";" ) 
    5659         
    57         //Igor 5 only - trim the list to the selected matching prefix (a one-liner) 
    58         //list = ListMatch(list, matchStr , ";" ) 
    59         //Igor 4 - need a loop, work backwards to preserve the index 
    60         ii=itemsinlist(list,";") 
    61         do 
    62                 partialName = StringFromList(ii, list, ";") 
    63                 if(stringmatch(partialName, matchStr )!=1) 
    64                         list = RemoveFromList(partialName, list  ,";") 
    65                 endif 
    66                 ii -= 1 
    67         while(ii>=0) 
     60//      Igor 4 - need a loop, work backwards to preserve the index 
     61//      ii=itemsinlist(list,";") 
     62//      do 
     63//              partialName = StringFromList(ii, list, ";") 
     64//              if(stringmatch(partialName, matchStr )!=1) 
     65//                      list = RemoveFromList(partialName, list  ,";") 
     66//              endif 
     67//              ii -= 1 
     68//      while(ii>=0) 
     69 
     70        // remove the "fpx*" files, they are not real data 
     71        String tmp = ListMatch(list,"fpx*",";")          
     72        list = RemoveFromList(tmp, list  ,";") 
     73        print tmp 
    6874         
    6975        //loop through all of the files in the list, reading header information  
Note: See TracChangeset for help on using the changeset viewer.