- Timestamp:
- Oct 18, 2018 12:09:16 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_Initialize.ipf
r1114 r1117 30 30 // for the change in July 2017 where the beam center is now defined in cm, rather than pixels. 31 31 // this need not ever change from 1 32 // the back detector is always treated as a beam center in pixels, since it is the natural definition 32 33 Constant kBCTR_CM = 1 //set to 1 to use beam center in cm. O to use pixels 33 34 … … 84 85 // 85 86 // 200 appears to be a better value - (empirical, based on teflon/converging pinhole data) 86 Constant kReadNoiseLevel = 200 87 //Constant kReadNoiseLevel = 208 88 Constant kReadNoiseLevel_Err = 14 87 Constant kReadNoiseLevel_bin4 = 200 88 //Constant kReadNoiseLevel_bin4 = 208 89 Constant kReadNoiseLevel_Err_bin4 = 14 90 91 92 // TODOHIGHRES: these values are complete fiction 93 Constant kReadNoiseLevel_bin1 = 20 94 Constant kReadNoiseLevel_Err_bin1 = 1 89 95 90 96 … … 96 102 // middle CCD is not moved 97 103 // See V_ShiftBackDetImage() for implementation 98 Constant kShift_TopX = 7 99 Constant kShift_TopY = 105 100 Constant kShift_BottomX = 5 101 Constant kShift_BottomY = 35 102 103 104 Constant kShift_TopX_bin4 = 7 105 Constant kShift_TopY_bin4 = 105 106 Constant kShift_BottomX_bin4 = 5 107 Constant kShift_BottomY_bin4 = 35 108 109 // TODOHIGHRES -- these values need to be verified. they are currently simply 4x the bin4 values 110 Constant kShift_TopX_bin1 = 28 111 Constant kShift_TopY_bin1 = 420 112 Constant kShift_BottomX_bin1 = 20 113 Constant kShift_BottomY_bin1 = 130 104 114 105 115 … … 110 120 End 111 121 112 //this is the main init ualization procedure that must be the first thing122 //this is the main initialization procedure that must be the first thing 113 123 //done when opening a new Data reduction experiment 114 124 // … … 131 141 V_InitFolders() 132 142 133 VC_Initialize_Space() //initialize folders for VCALC134 143 135 144 V_InitFakeProtocols() … … 142 151 Endif 143 152 // V_ResizeCmdWindow() 153 154 VC_Initialize_Space() //initialize folders for VCALC 144 155 145 156 // TODO - be sure that NCNR is defined correctly … … 246 257 //set flag if Demo Version is detected 247 258 Variable/G root:Packages:NIST:VSANS:Globals:isDemoVersion = V_isDemo() 259 248 260 249 261 //set XML globals … … 452 464 Printf "Hook cleaned out RawVSANS, experiment saved\r" 453 465 454 466 NVAR gHighResBinning = root:Packages:NIST:VSANS:Globals:gHighResBinning 467 if(gHighResBinning == 1) 455 468 // these KillDF are a bad idea - it wipes out all of the current work 456 469 // whenever a save is done - which is the opposite of what you want 457 470 // to happen when you save! 458 459 // KillDataFolder/Z root:Packages:NIST:VSANS:RAW 460 // KillDataFolder/Z root:Packages:NIST:VSANS:SAM 461 // KillDataFolder/Z root:Packages:NIST:VSANS:EMP 462 // KillDataFolder/Z root:Packages:NIST:VSANS:BGD 463 // KillDataFolder/Z root:Packages:NIST:VSANS:COR 464 // KillDataFolder/Z root:Packages:NIST:VSANS:DIV 465 // KillDataFolder/Z root:Packages:NIST:VSANS:MSK 466 // KillDataFolder/Z root:Packages:NIST:VSANS:ABS 467 // KillDataFolder/Z root:Packages:NIST:VSANS:CAL 468 // KillDataFolder/Z root:Packages:NIST:VSANS:STO 469 // KillDataFolder/Z root:Packages:NIST:VSANS:SUB 470 // KillDataFolder/Z root:Packages:NIST:VSANS:DRK 471 // KillDataFolder/Z root:Packages:NIST:VSANS:ADJ 472 471 472 Printf "Hook cleaned out WORK folders, experiment saved\r" 473 474 KillDataFolder/Z root:Packages:NIST:VSANS:RAW 475 KillDataFolder/Z root:Packages:NIST:VSANS:SAM 476 KillDataFolder/Z root:Packages:NIST:VSANS:EMP 477 KillDataFolder/Z root:Packages:NIST:VSANS:BGD 478 KillDataFolder/Z root:Packages:NIST:VSANS:COR 479 KillDataFolder/Z root:Packages:NIST:VSANS:DIV 480 KillDataFolder/Z root:Packages:NIST:VSANS:MSK 481 KillDataFolder/Z root:Packages:NIST:VSANS:ABS 482 KillDataFolder/Z root:Packages:NIST:VSANS:CAL 483 KillDataFolder/Z root:Packages:NIST:VSANS:STO 484 KillDataFolder/Z root:Packages:NIST:VSANS:SUB 485 KillDataFolder/Z root:Packages:NIST:VSANS:DRK 486 KillDataFolder/Z root:Packages:NIST:VSANS:ADJ 487 KillDataFolder/Z root:Packages:NIST:VSANS:VCALC 488 489 endif 473 490 // re-create anthing that was killed 474 491 V_initFolders()
Note: See TracChangeset
for help on using the changeset viewer.