Changeset 307
- Timestamp:
- Apr 14, 2008 12:16:02 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/USANSReduction/trunk/Put in User Procedures Folder/USANS Procedures v2.21/USANSCatNotebook.ipf
r265 r307 54 54 list = IndexedFile(bt5PathName,-1,"????") //get all files in folder 55 55 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 , ";" ) 56 59 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 68 74 69 75 //loop through all of the files in the list, reading header information
Note: See TracChangeset
for help on using the changeset viewer.