Ignore:
Timestamp:
Feb 17, 2017 1:55:05 PM (6 years ago)
Author:
srkline
Message:

many additions.

Moved unused igor/nexus testing files to Vx_ prefix since they're garbage. Pulled out the useful bits for mask and div R/W and moved those to theire appropriate procedures.

Testing the simple correction of data, only tested basic subtraction. All of it still needs to be verified since I don't have any real header numbers and units yet.

Adjusted the columns on the file catalog to be more appropriate, and added a hook to allow loading of raw data files directly from the table and a popup contextual menu. May add more functionality to it later.

Corrected how the 1D data is plotted so that it correctly uses the binning type. I(q) save now also uses the binning as specified.

File:
1 edited

Legend:

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

    r1018 r1023  
    879879 
    880880 
     881 
     882 
     883 
     884 
     885////////// 
     886// 
     887// These procedures are needed to write out MASK and DIV files 
     888// 
     889//////// 
     890 
     891 
     892// 
     893// saves a specified folder, with a given filename. 
     894// saves to the home path 
     895// 
     896Proc Save_VSANS_file(dfPath, filename) 
     897        String dfPath   ="root:VSANS_file"              // e.g., "root:FolderA" or ":" 
     898        String filename = "Test_VSANS_file.h5" 
     899         
     900        H_NXSANS_SaveGroupAsHDF5(dfPath, filename) 
     901End 
     902 
     903 
     904//       
     905// this is my procedure to save the folders to HDF5, once I've filled the folder tree 
     906// 
     907// this does NOT save attributes, but gets the folder structure correct 
     908// 
     909Function H_NXSANS_SaveGroupAsHDF5(dfPath, filename) 
     910        String dfPath   // e.g., "root:FolderA" or ":" 
     911        String filename 
     912 
     913        Variable result = 0     // 0 means no error 
     914         
     915        Variable fileID 
     916        HDF5CreateFile/P=home /O /Z fileID as filename 
     917        if (V_flag != 0) 
     918                Print "HDF5CreateFile failed" 
     919                return -1 
     920        endif 
     921 
     922        HDF5SaveGroup /IGOR=0 /O /R /Z $dfPath, fileID, "." 
     923//      HDF5SaveGroup /O /R /Z $dfPath, fileID, "." 
     924        if (V_flag != 0) 
     925                Print "HDF5SaveGroup failed" 
     926                result = -1 
     927        endif 
     928         
     929        HDF5CloseFile fileID 
     930 
     931        return result 
     932End 
     933 
Note: See TracChangeset for help on using the changeset viewer.