Ignore:
Timestamp:
Jan 22, 2013 4:34:14 PM (10 years ago)
Author:
srkline
Message:

Changes to utility functions to properly list the raw data from the 10m SANS (SA4)

Added a utility function to patch BS xPos in 10m data files so that they will be recognized as transmission files. ICE is currently not writing out the BS xPos to the file. This is done in batch mode, similar to what was done for the 8m SANS.

Some changes to the simulation code to permit easier scripting.

Additions to SASCALC for the 10m SANS. Dimensions from John. Still need attenuator table and flux.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Common/Packages/LinearizedFits/LinearizedFits_v40.ipf

    r861 r888  
    763763        String ctrlName 
    764764 
    765         String list="",newList="",item="" 
    766         Variable num,ii 
    767          
    768         //check for the path 
    769         PathInfo catPathName 
    770         if(V_Flag==0) 
    771                 DoAlert 0, "Data path does not exist - pick the data path from the button on the FIT panel" 
    772                 Return("") 
    773         Endif 
    774          
    775         list = IndexedFile(catpathName,-1,"????") 
    776         num=ItemsInList(list,";") 
    777         //print "num = ",num 
    778         for(ii=(num-1);ii>=0;ii-=1) 
    779                 item = StringFromList(ii, list  ,";") 
    780                 //simply remove all that are not raw data files (SA1 SA2 SA3) 
    781                 if( !stringmatch(item,"*.SA1*") && !stringmatch(item,"*.SA2*") && !stringmatch(item,"*.SA3*") ) 
    782                         if( !stringmatch(item,".*") && !stringmatch(item,"*.pxp") && !stringmatch(item,"*.DIV"))                //eliminate mac "hidden" files, pxp, and div files 
    783                                 newlist += item + ";" 
    784                         endif 
    785                 endif 
    786         endfor 
    787         //remove VAX version numbers 
    788         newList = RemoveVersNumsFromList(newList) 
    789         //sort 
    790         newList = SortList(newList,";",0) 
    791  
     765        String newList="" 
     766//      String list="",newList="",item="" 
     767//      Variable num,ii 
     768//       
     769//      //check for the path 
     770//      PathInfo catPathName 
     771//      if(V_Flag==0) 
     772//              DoAlert 0, "Data path does not exist - pick the data path from the button on the FIT panel" 
     773//              Return("") 
     774//      Endif 
     775//       
     776//      list = IndexedFile(catpathName,-1,"????") 
     777//      num=ItemsInList(list,";") 
     778//      //print "num = ",num 
     779//      for(ii=(num-1);ii>=0;ii-=1) 
     780//              item = StringFromList(ii, list  ,";") 
     781//              //simply remove all that are not raw data files (SA1 SA2 SA3) 
     782//              if( !stringmatch(item,"*.SA1*") && !stringmatch(item,"*.SA2*") && !stringmatch(item,"*.SA3*") ) 
     783//                      if( !stringmatch(item,".*") && !stringmatch(item,"*.pxp") && !stringmatch(item,"*.DIV"))                //eliminate mac "hidden" files, pxp, and div files 
     784//                              newlist += item + ";" 
     785//                      endif 
     786//              endif 
     787//      endfor 
     788//      //remove VAX version numbers 
     789//      newList = RemoveVersNumsFromList(newList) 
     790//      //sort 
     791//      newList = SortList(newList,";",0) 
     792 
     793// Jan 2013 -- replaced with a utility function that filters out raw, div, mask, etc. 
     794        newList = A_ReducedDataFileList("") 
     795         
    792796        return newlist 
    793797End 
Note: See TracChangeset for help on using the changeset viewer.