Ignore:
Timestamp:
Jul 12, 2017 2:44:26 PM (5 years ago)
Author:
srkline
Message:

a lot of little changes:

changed the name of the Raw Data display procedure file (removed test)

lots of bug fixes, moving items from the macros menu to proper locations, getting the file status to display properly, some error checking, and cleaning up a few TODO items.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_Testing_Data_Procs.ipf

    r1044 r1051  
    1212// -- decide if it's better to write wholesale, or as individual waves 
    1313// 
    14 Macro Copy_VCALC_to_VSANSFile(labelStr,intent,group_id) 
     14Proc Copy_VCALC_to_VSANSFile(labelStr,intent,group_id) 
    1515        String labelStr = "sample label" 
    1616        String intent = "SAMPLE" 
     
    137137 
    138138 
    139  
    140139// writes out "perfect" detector calibration constants for all 8 tube banks + back detector 
    141140Function V_WritePerfectSpatialCalib(filename) 
     
    251250        return(0) 
    252251End 
     252 
     253// 
     254// a few utilities to patch up the data files so that they are useable 
     255// even without the Back detector containing real data 
     256// 
     257// TODO 
     258// 
     259// Hopefully, the data files as generated from NICE will have a dummy for the back detector 
     260// if not, there's going to be a big mess 
     261// 
     262//              V_writeDetectorData(fileName,detStr,tmpData) 
     263// 
     264Function V_Write_BackDet_to_VSANSFile() 
     265         
     266        String fileName = V_DoSaveFileDialog("pick the file to write to") 
     267        print fileName 
     268//       
     269        String detStr = "B" 
     270         
     271        if(strlen(fileName) > 0) 
     272                Wave detW = V_getDetectorDataW(filename,detStr) 
     273                detW = 1 
     274                V_writeDetectorData(fileName,detStr,detW) 
     275        endif 
     276End 
     277 
Note: See TracChangeset for help on using the changeset viewer.