Changeset 980
- Timestamp:
- Feb 12, 2016 2:41:12 PM (7 years ago)
- Location:
- sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/Nexus_VSANS_Write.ipf
r979 r980 209 209 // file header. nothing more is needed (possibly) 210 210 // 211 // TODO -- I want to re-visit the prop ogation of errors in the DIV file. No errors are ever calculated/saved211 // TODO -- I want to re-visit the propagation of errors in the DIV file. No errors are ever calculated/saved 212 212 // during the generation of the file, but there's no reason it couldn't. the idea is that the plex 213 213 // is counted so long that the errors are insignificant compared to the data errors, but that may not … … 216 216 // 217 217 // TODO -- make the number of pixels GLOBAL 218 // TODO -- there will be lots of work to do to develop the procedures necessary to actually generate the 219 // 9 data sets to become the DIV file contents. More complexity here than for the simple SANS case. 218 220 // 219 221 Proc H_Setup_VSANS_DIV_Structure() … … 226 228 NewDataFolder/O/S root:VSANS_DIV_file:entry:instrument 227 229 Make/O/T/N=1 name = "NG3_VSANS" 228 NewDataFolder/O/S root:VSANS_DIV_file:entry: data_B230 NewDataFolder/O/S root:VSANS_DIV_file:entry:instrument:detector_B 229 231 Make/O/D/N=(320,320) data = abs(gnoise(p+q)) 230 Make/O/D/N=(320,320) error = 0.01*abs(gnoise(p+q))231 NewDataFolder/O/S root:VSANS_DIV_file:entry: data_MR232 Make/O/D/N=(48, 256) data = abs(gnoise(p+q))233 Make/O/D/N=(48, 256)error = 0.01*abs(gnoise(p+q))234 NewDataFolder/O/S root:VSANS_DIV_file:entry: data_ML235 Make/O/D/N=(48, 256) data = abs(gnoise(p+q))236 Make/O/D/N=(48, 256)error = 0.01*abs(gnoise(p+q))237 NewDataFolder/O/S root:VSANS_DIV_file:entry: data_MT238 Make/O/D/N=(128,48) data = abs(gnoise(p+q)) 239 Make/O/D/N=(128,48) error = 0.01*abs(gnoise(p+q))240 NewDataFolder/O/S root:VSANS_DIV_file:entry: data_MB241 Make/O/D/N=(128,48) data = abs(gnoise(p+q)) 242 Make/O/D/N=(128,48) error = 0.01*abs(gnoise(p+q))243 NewDataFolder/O/S root:VSANS_DIV_file:entry: data_FR244 Make/O/D/N=(48, 256) data = abs(gnoise(p+q))245 Make/O/D/N=(48, 256)error = 0.01*abs(gnoise(p+q))246 NewDataFolder/O/S root:VSANS_DIV_file:entry: data_FL247 Make/O/D/N=(48, 256) data = abs(gnoise(p+q))248 Make/O/D/N=(48, 256)error = 0.01*abs(gnoise(p+q))249 NewDataFolder/O/S root:VSANS_DIV_file:entry: data_FT250 Make/O/D/N=(128,48) data = abs(gnoise(p+q)) 251 Make/O/D/N=(128,48) error = 0.01*abs(gnoise(p+q))252 NewDataFolder/O/S root:VSANS_DIV_file:entry: data_FB253 Make/O/D/N=(128,48) data = abs(gnoise(p+q)) 254 Make/O/D/N=(128,48) error = 0.01*abs(gnoise(p+q))232 Make/O/D/N=(320,320) linear_data_error = 0.01*abs(gnoise(p+q)) 233 NewDataFolder/O/S root:VSANS_DIV_file:entry:instrument:detector_MR 234 Make/O/D/N=(48,128) data = abs(gnoise(p+q)) 235 Make/O/D/N=(48,128) linear_data_error = 0.01*abs(gnoise(p+q)) 236 NewDataFolder/O/S root:VSANS_DIV_file:entry:instrument:detector_ML 237 Make/O/D/N=(48,128) data = abs(gnoise(p+q)) 238 Make/O/D/N=(48,128) linear_data_error = 0.01*abs(gnoise(p+q)) 239 NewDataFolder/O/S root:VSANS_DIV_file:entry:instrument:detector_MT 240 Make/O/D/N=(128,48) data = abs(gnoise(p+q)) 241 Make/O/D/N=(128,48) linear_data_error = 0.01*abs(gnoise(p+q)) 242 NewDataFolder/O/S root:VSANS_DIV_file:entry:instrument:detector_MB 243 Make/O/D/N=(128,48) data = abs(gnoise(p+q)) 244 Make/O/D/N=(128,48) linear_data_error = 0.01*abs(gnoise(p+q)) 245 NewDataFolder/O/S root:VSANS_DIV_file:entry:instrument:detector_FR 246 Make/O/D/N=(48,128) data = abs(gnoise(p+q)) 247 Make/O/D/N=(48,128) linear_data_error = 0.01*abs(gnoise(p+q)) 248 NewDataFolder/O/S root:VSANS_DIV_file:entry:instrument:detector_FL 249 Make/O/D/N=(48,128) data = abs(gnoise(p+q)) 250 Make/O/D/N=(48,128) linear_data_error = 0.01*abs(gnoise(p+q)) 251 NewDataFolder/O/S root:VSANS_DIV_file:entry:instrument:detector_FT 252 Make/O/D/N=(128,48) data = abs(gnoise(p+q)) 253 Make/O/D/N=(128,48) linear_data_error = 0.01*abs(gnoise(p+q)) 254 NewDataFolder/O/S root:VSANS_DIV_file:entry:instrument:detector_FB 255 Make/O/D/N=(128,48) data = abs(gnoise(p+q)) 256 Make/O/D/N=(128,48) linear_data_error = 0.01*abs(gnoise(p+q)) 255 257 256 258 SetDataFolder root: -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_HDF5_RW_Utils.ipf
r979 r980 22 22 23 23 24 // passing null file string presents a dialog 25 Proc LoadFakeDIVData() 26 V_LoadHDF5Data("","DIV") 27 End 24 28 25 29 // passing null file string presents a dialog … … 30 34 31 35 // TODO: 32 // x- move the initializ tion of the raw data folder to be in the as-yet unwritten initialization routine for36 // x- move the initialization of the raw data folder to be in the as-yet unwritten initialization routine for 33 37 // reduction. be sure that it's duplicated in the VCALC initialization too. 34 38 // -- as needed, get rid of the FAKE redimension of the data from 3D->2D and from 128x128 to something else for VSANS 35 39 // This is a fake since I don't have anything close to correct fake data yet. (1/29/16) 40 // 41 // TODO: -- is there an extra "entry" heading? Am I adding this by mistake by setting base_name="entry" for RAW data? 36 42 // 37 43 Function V_LoadHDF5Data(file,folder) … … 44 50 base_name="entry" 45 51 else 46 base_name=" "52 base_name="entry" //TODO -- remove this / change behavior in V_LoadHDF5_NoAtt() 47 53 endif 48 54 … … 84 90 SetDataFolder root:Packages:NIST:VSANS:RAW:entry:entry:instrument:detector_B 85 91 Wave det_B=data 86 Redimension/N=(3 00,300)/E=1 det_B87 88 Variable ctr=20,npix=1 0092 Redimension/N=(320,320)/E=1 det_B 93 94 Variable ctr=20,npix=128 89 95 SetDataFolder root:Packages:NIST:VSANS:RAW:entry:entry:instrument:detector_MT 90 96 Wave det_MT=data -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_Initialize.ipf
r971 r980 109 109 NewDataFolder/O root:Packages:NIST:VSANS:SUB 110 110 NewDataFolder/O root:Packages:NIST:VSANS:DRK 111 NewDataFolder/O root:Packages:NIST:VSANS:ADJ 111 112 112 113 -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_WorkFolderUtils.ipf
r979 r980 294 294 295 295 296 297 //298 //Entry procedure from main panel299 //300 Proc AddFolder(oldType,newType)301 String oldType,newType302 Prompt oldType,"Source WORK data type",popup,"SAM;EMP;BGD;DIV;COR;CAL;RAW;ABS;STO;SUB;DRK;"303 Prompt newType,"Destination WORK data type",popup,"SAM;EMP;BGD;DIV;COR;CAL;RAW;ABS;STO;SUB;DRK;"304 305 // data folder "RAW" will be copied to "new" (either kills/copies or will overwrite)306 Variable err = Raw_to_work(newType)307 // CopyHDFToWorkFolder(oldtype,newtype)308 End309 310 311 312 296 //testing procedure 297 // TODO -- can't duplicate this with another proceudre, but if I change the name of the variable 298 // "newType" to "type", then when Raw_to_work() gets to CopyHDFToWorkFolder(), the KillDataFolder/Z 299 // line fails (but reports no error), then DuplicateDataFolder fails, and reports an error. Trying 300 // to simplify this condition, I can't duplicate the error for WM... 313 301 Proc Add_to_Workfile(newtype, doadd) 314 302 String newtype,doadd
Note: See TracChangeset
for help on using the changeset viewer.