Ignore:
Timestamp:
Jun 5, 2015 1:26:01 PM (7 years ago)
Author:
srkline
Message:

more changes to the procedures and panel to allow fitting of each panel to determine the beam center.

File:
1 edited

Legend:

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

    r955 r958  
    126126 
    127127End 
     128 
     129 
     130// TODO 
     131// currently, there are no dummy fill values or attributes for the fake DIV file 
     132// 
     133Macro Setup_VSANS_DIV_Struct() 
     134 
     135        // lays out the tree and fills with dummy values 
     136        H_Setup_VSANS_DIV_Structure() 
     137         
     138        // writes in the attributes 
     139//      H_Fill_VSANS_Attributes() 
     140         
     141        // fill in with VCALC simulation bits 
     142//      H_Fill_VSANS_wSim() 
     143         
     144End 
     145 
     146Macro Save_VSANS_DIV_Nexus(fileName) 
     147        String fileName="Test_VSANS_DIV_file" 
     148 
     149        // save as HDF5 (no attributes saved yet) 
     150        Save_VSANS_file("root:VSANS_DIV_file", fileName+".h5") 
     151         
     152        // read in a data file using the gateway-- reads from the home path 
     153        H_HDF5Gate_Read_Raw(fileName+".h5") 
     154         
     155        // after reading in a "partial" file using the gateway (to generate the xref) 
     156        // Save the xref to disk (for later use) 
     157        Save_HDF5___xref("root:"+fileName,"HDF5___xref") 
     158         
     159        // after you've generated the HDF5___xref, load it in and copy it 
     160        // to the necessary folder location. 
     161        Copy_HDF5___xref("root:VSANS_DIV_file", "HDF5___xref") 
     162         
     163        // writes out the contents of a data folder using the gateway 
     164        H_HDF5Gate_Write_Raw("root:VSANS_DIV_file", fileName+".h5") 
     165 
     166        // re-load the data file using the gateway-- reads from the home path 
     167        // now with attributes 
     168        H_HDF5Gate_Read_Raw(fileName+".h5") 
     169         
     170End 
     171 
     172 
     173 
     174 
     175 
     176 
     177 
     178 
    128179 
    129180 
Note: See TracChangeset for help on using the changeset viewer.