Ignore:
Timestamp:
Feb 1, 2019 2:25:12 PM (4 years ago)
Author:
srkline
Message:

added procedures to output QxQy_ASCII data. Each panel is output into its own file. Output format is the same as for 2D SANS data, including the 2D resolution function. However, reading the data back in with the SANS analysis macros currently does not redimension the data back to the matrix correctly as it assumes a square detector.

I will need to add the X and Y dimensions of each panel into the header, and then make use of these values when they are read in. Also, writing the QxQy? data is quick for the M and F panels ( 0.8 s) but is extremely slow for the back, High-res panel (120 s) since there are 1.1.E6 points there vs. 6144 pts. I'll need to find a way to speed this operation up.

File:
1 edited

Legend:

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

    r1117 r1119  
    13401340 
    13411341//      Prompt av_typ, "Type of Average",popup,"Circular;Sector;Rectangular;Annular;2D_ASCII;QxQy_ASCII;PNG_Graphic;Sector_PlusMinus;" 
    1342         Prompt av_typ, "Type of Average",popup,"Circular;Narrow_Slit;Annular;" 
     1342        Prompt av_typ, "Type of Average",popup,"Circular;Narrow_Slit;Annular;QxQy_ASCII;" 
    13431343 
    13441344// comment out above line in DEMO_MODIFIED version, and uncomment the line below (to disable PNG save) 
     
    24042404        endif 
    24052405         
     2406        gAbsStr = RemoveFromList("ask",gAbsStr)         //now that values are added, remove "ask" 
    24062407 
    24072408        SetDataFolder root: 
     
    33593360                                break 
    33603361                        case "QxQy_ASCII": 
    3361 //                              QxQy_Export(activeType,fullPath,dialog) 
     3362                                fullPath = S_Path + newFileName+".DAT" 
     3363                                V_QxQy_Export(activeType,fullPath,newFileName,dialog) 
    33623364                                break 
    33633365                        case "PNG_Graphic": 
Note: See TracChangeset for help on using the changeset viewer.