Changeset 13
- Timestamp:
- Mar 31, 2013 8:48:08 PM (9 years ago)
- Location:
- User Procedures
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
User Procedures/CanSAS/cansasXML_GUI.ipf
r6 r13 129 129 130 130 CheckBox UseFileNameAsFolder,pos={10,380},size={16,14},proc=CS_XMLGUICheckProc,title="Use File Nms As Fldr Nms?",variable= root:Packages:CS_XMLreader_GUI:UseFileNameAsFolder, help={"Use names of imported files as folder names for the data?"} 131 CheckBox UseIndra2Names,pos={10,395},size={16,14},proc=CS_XMLGUICheckProc,title="Use Indra 2 datanames?",variable= root:Packages:CS_XMLreader_GUI:UseIndra2Names, help={"Use wave names using Indra 2 name structure? (DSM_Int, DSM_Qvec, DSM_Error)"}131 CheckBox UseIndra2Names,pos={10,395},size={16,14},proc=CS_XMLGUICheckProc,title="Use USAXS names?",variable= root:Packages:CS_XMLreader_GUI:UseIndra2Names, help={"Use wave names using Indra 2 name structure? (DSM_Int, DSM_Qvec, DSM_Error)"} 132 132 CheckBox UseQRSNames,pos={10,410},size={16,14},proc=CS_XMLGUICheckProc,title="Use QRS data names?",variable= root:Packages:CS_XMLreader_GUI:UseQRSNames, help={"Use QRS name structure? (Q_filename, R_filename, S_filename)"} 133 133 CheckBox UseQISNames,pos={230,395},size={16,14},proc=CS_XMLGUICheckProc,title="Use QIS data names?",variable= root:Packages:CS_XMLreader_GUI:UseQISNames, help={"Use NIST QIS naming structure? (filename_Q, filename_I, filename_S etc..)"} -
User Procedures/Indra 2/IN3_Calculations.ipf
r12 r13 1 1 #pragma rtGlobals=1 // Use modern global access method. 2 #pragma version=1.05 3 2 #pragma version=1.06 3 4 //1.06 modified for weight calibration 4 5 //1.05 FIxed bump to Compiler when no data selected in Data selection popup. 5 6 //1.04 2/2013, JIL: modified to enable calibration per weight … … 489 490 NVAR CalibrateToWeight=root:Packages:Indra3:CalibrateToWeight 490 491 NVAR CalibrateToVolume=root:Packages:Indra3:CalibrateToVolume 492 NVAR CalibrateArbitrary=root:Packages:Indra3:CalibrateArbitrary 491 493 492 494 … … 499 501 500 502 endif 503 NVAR CalculateWeight=root:Packages:Indra3:CalculateWeight 504 NVAR CalculateThickness=root:Packages:Indra3:CalculateThickness 501 505 if (cmpstr("CalculateThickness",ctrlName)==0) 502 NVAR CalculateThickness=root:Packages:Indra3:CalculateThickness503 506 SetVariable SampleThickness, win=USAXSDataReduction, noedit=CalculateThickness, frame=!CalculateThickness 504 507 SetVariable SampleLinAbsorption, win=USAXSDataReduction, noedit=!CalculateThickness, frame=CalculateThickness … … 507 510 endif 508 511 if (cmpstr("CalculateWeight",ctrlName)==0) 509 NVAR CalculateWeight=root:Packages:Indra3:CalculateWeight510 512 SetVariable SampleWeightInBeam, win=USAXSDataReduction, noedit=CalculateWeight, frame=!CalculateWeight 511 SetVariable SampleWeightAbsorption, win=USAXSDataReduction, noedit=!CalculateWeight, frame=CalculateWeight 513 SetVariable SampleDensity, win=USAXSDataReduction, frame=CalculateWeight 514 SetVariable SampleThickness, win=USAXSDataReduction, noedit=CalculateThickness, frame=!CalculateThickness 512 515 SetVariable BeamExposureArea, win=USAXSDataReduction, noedit=!CalculateWeight, frame=CalculateWeight 513 516 IN3_CalculateSampleThickness() … … 517 520 if(checked) 518 521 CalibrateToWeight = 0 522 CalibrateArbitrary = 0 519 523 else 520 CalibrateToWeight=1 524 if((CalibrateToWeight+CalibrateArbitrary)!=1) 525 CalibrateArbitrary = 1 526 CalibrateToWeight = 0 527 endif 521 528 endif 522 529 NI3_TabPanelControl("",0) 530 SetVariable BeamExposureArea, win=USAXSDataReduction, noedit=!(CalculateWeight&&CalibrateToWeight), frame=!CalculateWeight 523 531 endif 524 532 … … 526 534 if(checked) 527 535 CalibrateToVolume = 0 536 CalibrateArbitrary = 0 528 537 else 529 CalibrateToVolume=1 538 if((CalibrateToVolume+CalibrateArbitrary)!=1) 539 CalibrateArbitrary = 0 540 CalibrateToVolume = 1 541 endif 530 542 endif 531 543 NI3_TabPanelControl("",0) 544 SetVariable BeamExposureArea, win=USAXSDataReduction, noedit=!(CalculateWeight&&CalibrateToWeight), frame=!CalculateWeight 545 endif 546 547 if(stringmatch("CalibrateArbitrary",ctrlName) ) 548 if(checked) 549 CalibrateToVolume = 0 550 CalibrateToWeight = 0 551 else 552 if((CalibrateToVolume+CalibrateToWeight)!=1) 553 CalibrateToWeight = 0 554 CalibrateToVolume = 1 555 endif 556 endif 557 NI3_TabPanelControl("",0) 558 SetVariable BeamExposureArea, win=USAXSDataReduction, noedit=!(CalculateWeight&&CalibrateToWeight), frame=!CalculateWeight 532 559 endif 533 560 … … 1306 1333 setDataFolder OldDf 1307 1334 End 1308 / *****************************************************************************************************************1335 //***************************************************************************************************************** 1309 1336 //***************************************************************************************************************** 1310 1337 //***************************************************************************************************************** … … 1326 1353 NVAR CalibrateToWeight=root:Packages:Indra3:CalibrateToWeight 1327 1354 NVAR CalibrateToVolume=root:Packages:Indra3:CalibrateToVolume 1355 NVAR CalibrateArbitrary=root:Packages:Indra3:CalibrateArbitrary 1328 1356 1329 1357 Button RecoverDefault,win=USAXSDataReduction, disable=(tab!=0 || IsBlank) 1330 1358 CheckBox CalibrateToVolume,win=USAXSDataReduction, disable=(tab!=0 || IsBlank) 1331 1359 CheckBox CalibrateToWeight,win=USAXSDataReduction, disable=(tab!=0 || IsBlank) 1332 1333 CheckBox CalculateThickness,win=USAXSDataReduction, disable=(tab!=0 || IsBlank || !CalibrateToVolume) 1360 CheckBox CalibrateArbitrary,win=USAXSDataReduction, disable=(tab!=0 || IsBlank) 1361 1362 CheckBox CalculateThickness,win=USAXSDataReduction, disable=(tab!=0 || IsBlank) 1334 1363 CheckBox CalculateWeight,win=USAXSDataReduction, disable=(tab!=0 || IsBlank || !CalibrateToWeight ) 1335 SetVariable SampleThickness,win=USAXSDataReduction, disable=(tab!=0 || IsBlank || !CalibrateToVolume)1336 SetVariable SampleWeightInBeam,win=USAXSDataReduction, disable=(tab!=0 || IsBlank || !CalibrateToWeight )1364 SetVariable SampleThickness,win=USAXSDataReduction, disable=(tab!=0 || IsBlank || CalibrateArbitrary), noedit=!(CalculateThickness||CalculateWeight), frame=CalculateThickness 1365 SetVariable SampleWeightInBeam,win=USAXSDataReduction, disable=(tab!=0 || IsBlank || !CalibrateToWeight || CalibrateArbitrary) 1337 1366 SetVariable SampleTransmission,win=USAXSDataReduction, disable=(tab!=0 || IsBlank) 1338 SetVariable SampleLinAbsorption,win=USAXSDataReduction, disable=(tab!=0 || IsBlank || !CalibrateToVolume), noedit=!CalculateThickness, frame=CalculateThickness1339 SetVariable Sample WeightAbsorption,win=USAXSDataReduction, disable=(tab!=0 || IsBlank || !CalibrateToWeight), noedit=!CalculateWeight, frame=CalculateWeight1340 SetVariable SampleFilledFraction,win=USAXSDataReduction, disable=(tab!=0 || IsBlank || !CalibrateToVolume ),noedit=!CalculateThickness, frame=CalculateThickness1341 SetVariable BeamExposureArea, win=USAXSDataReduction, disable=(tab!=0 || IsBlank), noedit=!CalculateWeight, frame=CalculateWeight1367 SetVariable SampleLinAbsorption,win=USAXSDataReduction, disable=(tab!=0 || IsBlank || CalibrateArbitrary), noedit=!CalculateThickness, frame=CalculateThickness 1368 SetVariable SampleDensity,win=USAXSDataReduction, disable=(tab!=0 || IsBlank || !CalibrateToWeight || CalibrateArbitrary), frame=CalculateWeight 1369 SetVariable SampleFilledFraction,win=USAXSDataReduction, disable=(tab!=0 || IsBlank || !CalibrateToVolume || CalibrateArbitrary),noedit=!CalculateThickness, frame=CalculateThickness 1370 SetVariable BeamExposureArea, win=USAXSDataReduction, disable=(tab!=0 || IsBlank || CalibrateArbitrary), noedit=!(CalculateWeight&&CalibrateToWeight), frame=!CalculateWeight 1342 1371 1343 1372 -
User Procedures/Indra 2/IN3_Main.ipf
r6 r13 1 1 #pragma rtGlobals=1 // Use modern global access method. 2 #pragma version = 1.7 83 4 2 #pragma version = 1.79 3 4 //1.79 improved weight calibration 5 5 //1.78, 2/2013, JIL: Added option to calibrate by weight. Needed for USAXS users. 6 6 … … 60 60 ListOfVariables+="SampleQOffset;DisplayPeakCenter;DisplayAlignSaAndBlank;SampleAngleOffset;" 61 61 62 ListOfVariables+="CalibrateToWeight;CalibrateToVolume; SampleWeightInBeam;CalculateWeight;BeamExposureArea;SampleWeightAbsorption;"62 ListOfVariables+="CalibrateToWeight;CalibrateToVolume;CalibrateArbitrary;SampleWeightInBeam;CalculateWeight;BeamExposureArea;SampleDensity;" 63 63 64 64 ListOfVariables+="BlankWidth;MSAXSCorrection;UseMSAXSCorrection;" … … 193 193 NVAR CalibrateToWeight=root:Packages:Indra3:CalibrateToWeight 194 194 NVAR CalibrateToVolume=root:Packages:Indra3:CalibrateToVolume 195 196 CheckBox CalibrateToVolume,pos={20,230},size={90,14},proc=IN3_MainPanelCheckBox,title="Calibrate [cm2/cm3]" 195 NVAR CalibrateArbitrary=root:Packages:Indra3:CalibrateArbitrary 196 197 CheckBox CalibrateArbitrary,pos={20,225},size={90,14},proc=IN3_MainPanelCheckBox,title="Calibrate Arbitrary" 198 CheckBox CalibrateArbitrary,variable= root:Packages:Indra3:CalibrateArbitrary, help={"Check, if you not want to calibrate data"} 199 CheckBox CalibrateToVolume,pos={20,240},size={90,14},proc=IN3_MainPanelCheckBox,title="Calibrate [cm2/cm3]" 197 200 CheckBox CalibrateToVolume,variable= root:Packages:Indra3:CalibrateToVolume, help={"Check, if you want to calibrate data to sample volume"} 198 CheckBox CalibrateToWeight,pos={2 20,230},size={90,14},proc=IN3_MainPanelCheckBox,title="Calibrate [cm2/g]"201 CheckBox CalibrateToWeight,pos={20,255},size={90,14},proc=IN3_MainPanelCheckBox,title="Calibrate [cm2/g]" 199 202 CheckBox CalibrateToWeight,variable= root:Packages:Indra3:CalibrateToWeight, help={"Check, if you want to calibrate data to sample weight"} 200 203 201 CheckBox CalculateThickness,pos={2 0,252},size={90,14},proc=IN3_MainPanelCheckBox,title="Calculate Thickness", disable=CalibrateToWeight204 CheckBox CalculateThickness,pos={220,230},size={90,14},proc=IN3_MainPanelCheckBox,title="Calculate Thickness" 202 205 CheckBox CalculateThickness,variable= root:Packages:Indra3:CalculateThickness, help={"Check, if you want to calculate sample thickness from transmission"} 203 206 … … 205 208 CheckBox CalculateWeight,variable= root:Packages:Indra3:CalculateWeight, help={"Check, if you want to calculate sample weight from transmission"} 206 209 207 SetVariable SampleThickness,pos={5,2 75},size={280,22},title="Sample Thickness [mm] =", bodyWidth=100210 SetVariable SampleThickness,pos={5,285},size={280,22},title="Sample Thickness [mm] =", bodyWidth=100 208 211 SetVariable SampleThickness,font="Times New Roman",fSize=14,proc=IN3_ParametersChanged 209 SetVariable SampleThickness,limits={0,Inf,0},variable= root:Packages:Indra3:SampleThickness, noedit=CalculateThickness, frame=!CalculateThickness 210 211 Button RecoverDefault,pos={290,273},size={80,20},font="Times New Roman",fSize=10,proc=IN3_InputPanelButtonProc,title="Spec value", help={"Reload original value from spec record"} 212 213 SetVariable SampleWeightInBeam,pos={5,300},size={280,22},title="Sample weight [g] =" 212 SetVariable SampleThickness,limits={0,Inf,0},variable= root:Packages:Indra3:SampleThickness, noedit=(CalculateThickness||CalculateWeight)//, frame=!(CalculateThickness&&CalculateWeight) 213 214 Button RecoverDefault,pos={290,283},size={80,20},font="Times New Roman",fSize=10,proc=IN3_InputPanelButtonProc,title="Spec value", help={"Reload original value from spec record"} 215 216 SetVariable SampleTransmission,pos={5,335},size={280,22},title="Sample Transmission =" 217 SetVariable SampleTransmission,font="Times New Roman",fSize=14, bodyWidth=100 218 SetVariable SampleTransmission,limits={0,Inf,0},variable= root:Packages:Indra3:SampleTransmission, noedit=0, frame=0 219 220 SetVariable SampleLinAbsorption,pos={5,360},size={280,22},title="Sample absorp. coef [1/cm] =" 221 SetVariable SampleLinAbsorption,font="Times New Roman",fSize=14,proc=IN3_ParametersChanged, bodyWidth=100 222 SetVariable SampleLinAbsorption,limits={0,Inf,0},variable= root:Packages:Indra3:SampleLinAbsorption, noedit=!CalculateThickness, frame=CalculateThickness 223 224 SetVariable SampleDensity,pos={5,385},size={280,22},title="Sample density [g/cm3] =" 225 SetVariable SampleDensity,font="Times New Roman",fSize=14,proc=IN3_ParametersChanged, bodyWidth=100 226 SetVariable SampleDensity,limits={0,Inf,0},variable= root:Packages:Indra3:SampleDensity, noedit=!CalculateWeight, frame=CalculateWeight 227 228 SetVariable SampleWeightInBeam,pos={5,410},size={280,22},title="Sample weight [g] =" 214 229 SetVariable SampleWeightInBeam,font="Times New Roman",fSize=14,proc=IN3_ParametersChanged, bodyWidth=100 215 230 SetVariable SampleWeightInBeam,limits={0,Inf,0},variable= root:Packages:Indra3:SampleWeightInBeam, noedit=CalculateWeight, frame=!CalculateWeight 216 231 217 218 SetVariable SampleTransmission,pos={5,325},size={280,22},title="Sample Transmission =" 219 SetVariable SampleTransmission,font="Times New Roman",fSize=14, bodyWidth=100 220 SetVariable SampleTransmission,limits={0,Inf,0},variable= root:Packages:Indra3:SampleTransmission, noedit=0, frame=0 221 222 223 224 SetVariable SampleLinAbsorption,pos={5,350},size={280,22},title="Sample absorp. coef [1/cm] =" 225 SetVariable SampleLinAbsorption,font="Times New Roman",fSize=14,proc=IN3_ParametersChanged, bodyWidth=100 226 SetVariable SampleLinAbsorption,limits={0,Inf,0},variable= root:Packages:Indra3:SampleLinAbsorption, noedit=!CalculateThickness, frame=CalculateThickness 227 228 SetVariable SampleWeightAbsorption,pos={5,375},size={280,22},title="Sample absorp. coef [1/g] =" 229 SetVariable SampleWeightAbsorption,font="Times New Roman",fSize=14,proc=IN3_ParametersChanged, bodyWidth=100 230 SetVariable SampleWeightAbsorption,limits={0,Inf,0},variable= root:Packages:Indra3:SampleWeightAbsorption, noedit=!CalculateWeight, frame=CalculateWeight 231 232 SetVariable SampleFilledFraction,pos={5,400},size={280,22},title="Sample filled fraction =", help={"amount of sample filled by material, 1 - porosity as fraction"} 232 SetVariable SampleFilledFraction,pos={5,410},size={280,22},title="Sample filled fraction =", help={"amount of sample filled by material, 1 - porosity as fraction"} 233 233 SetVariable SampleFilledFraction,font="Times New Roman",fSize=14,proc=IN3_ParametersChanged, bodyWidth=100 234 234 SetVariable SampleFilledFraction,limits={0,Inf,0},variable= root:Packages:Indra3:SampleFilledFraction, noedit=!CalculateThickness, frame=CalculateThickness 235 235 236 SetVariable BeamExposureArea,pos={5,4 25},size={280,22},title="Beam area [mm\\S2\\M] =", help={"Calculated area of the beam from slit positions, do not change unless it is error"}236 SetVariable BeamExposureArea,pos={5,435},size={280,22},title="Beam area [mm2] =", help={"Calculated area of the beam from slit positions, do not change unless it is error"} 237 237 SetVariable BeamExposureArea,font="Times New Roman",fSize=14,proc=IN3_ParametersChanged, bodyWidth=100 238 238 SetVariable BeamExposureArea,limits={0,Inf,0},variable= root:Packages:Indra3:BeamExposureArea, noedit=!CalculateWeight, frame=CalculateWeight -
User Procedures/Indra 2/IN3_SupportFnct.ipf
r6 r13 1 1 #pragma rtGlobals=1 // Use modern global access method. 2 3 2 #pragma version =1.01 3 4 //1.01 modified for weight calibration 4 5 5 6 //*********************************************************************************************************************************** … … 61 62 Wave/Z PD_range=$(DataFolderName+"PD_Range") 62 63 //set PdRanges to 1 to have colored main data in correct colors., 0 to uncolor 63 if(WaveExists(PD_range)) 64 DoWIndow RcurvePlotGraph 65 if(WaveExists(PD_range)&&V_Flag) 64 66 if(PdRanges) 65 67 Duplicate/O PD_range, root:Packages:USAXS:MyColorWave //creates new color wave 66 68 IN3_MakeMyColors(PD_range,root:Packages:USAXS:MyColorWave) //creates colors in it 67 ModifyGraph /W=RcurvePlotGraph mode=4, zColor(R_Int)={root:Packages:USAXS:MyColorWave,0,10,Rainbow}69 ModifyGraph /W=RcurvePlotGraph/Z mode=4, zColor(R_Int)={root:Packages:USAXS:MyColorWave,0,10,Rainbow} 68 70 else 69 ModifyGraph /W=RcurvePlotGraph mode=4, zColor(R_Int)=071 ModifyGraph /W=RcurvePlotGraph/Z mode=4, zColor(R_Int)=0 70 72 endif 71 73 endif … … 205 207 NVAR CalibrateToWeight = root:Packages:Indra3:CalibrateToWeight 206 208 NVAR CalibrateToVolume = root:Packages:Indra3:CalibrateToVolume 209 NVAR CalibrateArbitrary = root:Packages:Indra3:CalibrateArbitrary 207 210 NVAR SampleWeightInBeam = root:Packages:Indra3:SampleWeightInBeam 211 NVAR SampleDensity = root:Packages:Indra3:SampleDensity 212 NVAR SampleWeightInBeam = root:Packages:Indra3:SampleWeightInBeam 213 NVAR BeamExposureArea = root:Packages:Indra3:BeamExposureArea 208 214 NVAR BLPeakWidth = root:Packages:Indra3:BlankFWHM 209 215 NVAR BLPeakMax = root:Packages:Indra3:BlankMaximum … … 285 291 Kfactor = Kfactor*SampleThickness*0.1 286 292 ASBParameters=ReplaceStringByKey("CalibrationUnit",ASBParameters,"cm2/cm3","=") 287 else //use weight. Assume the weight in the beam is already scaled per beam area? 293 elseif(CalibrateArbitrary) //arbitrary, use thickness 1mm, data are on relative scale anyway. 294 Kfactor = Kfactor*1*0.1 295 ASBParameters=ReplaceStringByKey("CalibrationUnit",ASBParameters,"Arbitrary","=") 296 else //use weight. Assume the weight in the beam is already scaled per beam area? 297 //first calculate the amount of sample in the beam... 288 298 Kfactor = Kfactor * SampleWeightInBeam //SampleWeightInBeam should be in g and be real weight of sample [g/in beam area], not unit weight [g/cm2] 289 299 ASBParameters=ReplaceStringByKey("CalibrationUnit",ASBParameters,"cm2/g","=") 290 endif 291 292 293 300 endif 294 301 ASBParameters=ReplaceNumberByKey("Kfactor",ASBParameters,Kfactor,"=") 295 302 ASBParameters=ReplaceNumberByKey("OmegaFactor",ASBParameters,OmegaFactor,"=") 296 297 // IN2G_AppendAnyText("Blank width :\t"+num2str(BLPeakWidthL))298 // IN2G_AppendAnyText("Sample thickness :\t\t"+num2str(SampleThickness))299 // IN2G_AppendAnyText("K factor :\t\t"+num2str(Kfactor))300 // IN2G_AppendAnyText("Omega Factor :\t"+num2str(Omegafactor))301 303 setDataFolder OldDf 302 304 … … 483 485 SVAR ListOfASBParametersL=root:Packages:Indra3:ListOfASBParameters 484 486 487 NVAR CalibrateArbitrary=root:Packages:Indra3:CalibrateArbitrary 485 488 NVAR CalibrateToWeight=root:Packages:Indra3:CalibrateToWeight 486 489 NVAR CalibrateToVolume=root:Packages:Indra3:CalibrateToVolume … … 488 491 NVAR CalculateWeight=root:Packages:Indra3:CalculateWeight 489 492 NVAR BeamExposureArea=root:Packages:Indra3:BeamExposureArea 490 NVAR Sample WeightAbsorption=root:Packages:Indra3:SampleWeightAbsorption493 NVAR SampleDensity=root:Packages:Indra3:SampleDensity 491 494 492 495 /////////// … … 583 586 if(CalculateWeight) 584 587 IN2G_AppendAnyText("Calculated weight :\t\t") 585 IN2G_AppendAnyText("Sample WeightAbsorption :\t\t"+num2str(SampleWeightAbsorption))588 IN2G_AppendAnyText("SampleDensity :\t\t"+num2str(SampleDensity)) 586 589 IN2G_AppendAnyText("SampleTransmission :\t\t"+num2str(SampleTransmission)) 587 590 IN2G_AppendAnyText("SampleTransmissionPeakToPeak :\t\t"+num2str(SampleTransmissionPeakToPeak)) … … 589 592 else 590 593 IN2G_AppendAnyText("Sample weight :\t\t"+num2str(SampleWeightInBeam)) 594 IN2G_AppendAnyText("SampleTransmission :\t\t"+num2str(SampleTransmission)) 595 IN2G_AppendAnyText("SampleTransmissionPeakToPeak :\t\t"+num2str(SampleTransmissionPeakToPeak)) 591 596 endif 592 else //(CalibrateToVolume, default) 597 elseif(CalibrateArbitrary) //calibrate arbitrary... 598 IN2G_AppendAnyText("SampleTransmission :\t\t"+num2str(SampleTransmission)) 599 IN2G_AppendAnyText("SampleTransmissionPeakToPeak :\t\t"+num2str(SampleTransmissionPeakToPeak)) 600 else //(CalibrateToVolume, default) 593 601 if(CalculateThickness) 594 602 IN2G_AppendAnyText("Calculated thickness :\t\t") … … 600 608 else 601 609 IN2G_AppendAnyText("Sample Thickness :\t\t"+num2str(SampleThickness)) 610 IN2G_AppendAnyText("SampleTransmission :\t\t"+num2str(SampleTransmission)) 611 IN2G_AppendAnyText("SampleTransmissionPeakToPeak :\t\t"+num2str(SampleTransmissionPeakToPeak)) 602 612 endif 603 613 endif … … 618 628 if(CalibrateToWeight) 619 629 IN2G_AppendorReplaceWaveNote("M_SMR_Int","Units","cm2/g") 630 elseif(CalibrateArbitrary) 631 IN2G_AppendorReplaceWaveNote("M_SMR_Int","Units","Arbitrary") 620 632 else 621 633 IN2G_AppendorReplaceWaveNote("M_SMR_Int","Units","cm2/cm3") … … 640 652 if(CalibrateToWeight) 641 653 IN2G_AppendorReplaceWaveNote("SMR_Int","Units","cm2/g") 654 elseif(CalibrateArbitrary) 655 IN2G_AppendorReplaceWaveNote("SMR_Int","Units","Arbitrary") 642 656 else 643 657 IN2G_AppendorReplaceWaveNote("SMR_Int","Units","cm2/cm3") … … 665 679 if(CalibrateToWeight) 666 680 IN2G_AppendorReplaceWaveNote("M_DSM_Int","Units","cm2/g") 681 elseif(CalibrateArbitrary) 682 IN2G_AppendorReplaceWaveNote("M_DSM_Int","Units","Arbitrary") 667 683 else 668 684 IN2G_AppendorReplaceWaveNote("M_DSM_Int","Units","cm2/cm3") … … 687 703 if(CalibrateToWeight) 688 704 IN2G_AppendorReplaceWaveNote("DSM_Int","Units","cm2/g") 705 elseif(CalibrateArbitrary) 706 IN2G_AppendorReplaceWaveNote("DSM_Int","Units","Arbitrary") 689 707 else 690 708 IN2G_AppendorReplaceWaveNote("DSM_Int","Units","cm2/cm3") … … 724 742 if(CalculateWeight) 725 743 IN2G_AppendNoteToAllWaves("CalculateWeight",num2str(CalculateWeight)) 726 IN2G_AppendNoteToAllWaves("Sample WeightAbsorption",num2str(SampleWeightAbsorption))744 IN2G_AppendNoteToAllWaves("SampleDensity",num2str(SampleDensity)) 727 745 IN2G_AppendNoteToAllWaves("SampleWeight",num2str(SampleWeightInBeam)) 728 746 else … … 1066 1084 Function IN3_CalculateSampleThickness() 1067 1085 1086 NVAR CalibrateToWeight = root:Packages:Indra3:CalibrateToWeight 1068 1087 NVAR CalculateThickness = root:Packages:Indra3:CalculateThickness 1069 1088 NVAR SampleThickness = root:Packages:Indra3:SampleThickness … … 1071 1090 NVAR SampleLinAbsorption = root:Packages:Indra3:SampleLinAbsorption 1072 1091 NVAR SampleFilledFraction = root:Packages:Indra3:SampleFilledFraction 1073 1092 NVAR CalculateWeight= root:Packages:Indra3:CalculateWeight 1093 NVAR SampleDensity= root:Packages:Indra3:SampleDensity 1094 NVAR SampleWeightInBeam= root:Packages:Indra3:SampleWeightInBeam 1095 NVAR SampleFilledFraction= root:Packages:Indra3:SampleFilledFraction 1096 NVAR BeamExposureArea= root:Packages:Indra3:BeamExposureArea 1074 1097 //transm = exp(-mu * T) 1075 1098 // T = (1/SampleFilledFraction) *(- ln(transm)/mu ) 1076 1099 //mu = (1/SampleFilledFraction) *(- ln(transm)/T ) 1077 if(CalculateThickness) 1078 SampleThickness = -10*(1/SampleFilledFraction) *( ln(SampleTransmission)/SampleLinAbsorption ) 1079 else 1080 SampleLinAbsorption = -10*(1/SampleFilledFraction) *( ln(SampleTransmission)/SampleThickness ) 1081 endif 1082 1083 end 1084 1085 //*********************************************************************************************************************************** 1086 //*********************************************************************************************************************************** 1087 //*********************************************************************************************************************************** 1088 //*********************************************************************************************************************************** 1089 //*********************************************************************************************************************************** 1090 //*********************************************************************************************************************************** 1100 if(CalibrateToWeight) 1101 if(CalculateWeight) 1102 if(CalculateThickness) 1103 SampleThickness = -10 *( ln(SampleTransmission)/SampleLinAbsorption ) 1104 endif 1105 SampleWeightInBeam = BeamExposureArea * SampleThickness * SampleDensity 1106 endif 1107 else 1108 if(CalculateThickness) 1109 SampleThickness = -10*(1/SampleFilledFraction) *( ln(SampleTransmission)/SampleLinAbsorption ) 1110 else 1111 SampleLinAbsorption = -10*(1/SampleFilledFraction) *( ln(SampleTransmission)/SampleThickness ) 1112 endif 1113 endif 1114 end 1115 1116 //*********************************************************************************************************************************** 1117 //*********************************************************************************************************************************** 1118 //*********************************************************************************************************************************** 1119 //*********************************************************************************************************************************** 1120 //*********************************************************************************************************************************** 1121 //*********************************************************************************************************************************** -
User Procedures/Indra 2/Readme.txt
r12 r13 10 10 ______________________________________________________________________________________ 11 11 xxxxx 12 Added calibration to weight, for now cannot calculate weight of sample in the beam,12 Added calibration to weight, can calculate weight of sample in the beam, and can use transmission to calculate also thickness of 100% dense sample. Therefore it can use area of the beam with transmission, line absorption coefficient and density of the material for cm2/g calibration. 13 13 Modified to compile on computers even without xop and abort & produce message when xop is called with instructions. 14 14 -
User Procedures/Irena/IR1_GeneralGraph.ipf
r6 r13 1 1 #pragma rtGlobals=1 // Use modern global access method. 2 #pragma version=2.1 32 #pragma version=2.14 3 3 #include <KBColorizeTraces> 4 4 Constant IR1PversionNumber=2.13 … … 10 10 //*************************************************************************/ 11 11 12 //2.14 Modified to handle different units for Intensity calibration. Addec control in Change Graph details panel. 12 13 //2.13 Added vertical scrolling 13 14 //2.12 fix in Scripting tool call which caused problems when starting with no data type chosen. Defaults properly to qrs now. … … 1197 1198 CheckBox GraphLegendShortNms proc=IR1P_GenPlotCheckBox, help={"Check to have legend use only last folder name."} 1198 1199 1200 CheckBox CheckYAxisUnits pos={170,220},title="Do not check Y data units?", variable=root:Packages:GeneralplottingTool:DoNotCheckYAxisUnits 1201 CheckBox CheckYAxisUnits proc=IR1P_GenPlotCheckBox, help={"Check to skip checking the units for Y wave. Will not warn when different are loaded"} 1202 1203 1199 1204 CheckBox DisplayTimeAndDate pos={170,280},title="Date & time stamp?", variable=root:Packages:GeneralplottingTool:DisplayTimeAndDate 1200 1205 CheckBox DisplayTimeAndDate proc=IR1P_GenPlotCheckBox, help={"Display date and time in the lower right corner"} … … 1621 1626 SVAR GraphXAxisName=root:Packages:GeneralplottingTool:GraphXAxisName 1622 1627 SVAR GraphYAxisName=root:Packages:GeneralplottingTool:GraphYAxisName 1628 SVAR ListOfDataFormating=root:Packages:GeneralplottingTool:ListOfDataFormating 1629 string Units=stringbykey("Units",ListOfDataFormating,"=",";") 1623 1630 string NewLabel 1624 1631 … … 1640 1647 1641 1648 elseif (cmpstr(which,"Y")==0) 1649 if(strlen(Units)<1) 1650 Units="cm\S2\M/cm\S3\M" 1651 else 1652 Units=ReplaceString("cm2/g", Units, "cm\S2\M/g") 1653 Units=ReplaceString("cm2/cm3", Units, "cm\S2\M/cm\S3\M") 1654 endif 1642 1655 1643 1656 if(cmpstr(WhatTypeSelected,"Y")==0) 1644 NewLabel="Intensity [ cm\S-1\M]"1657 NewLabel="Intensity ["+Units+"]" 1645 1658 elseif(cmpstr(WhatTypeSelected,"Y^2")==0) 1646 NewLabel="Intensity\S2\M [ cm\S-2\M]"1659 NewLabel="Intensity\S2\M [("+Units+")\S2\M]" 1647 1660 elseif(cmpstr(WhatTypeSelected,"Y^3")==0) 1648 NewLabel="Intensity\S3\M [ cm\S-3\M]"1661 NewLabel="Intensity\S3\M [("+Units+")\S3\M]" 1649 1662 elseif(cmpstr(WhatTypeSelected,"Y^4")==0) 1650 NewLabel="Intensity\S4\M [ cm\S-4\M]"1663 NewLabel="Intensity\S4\M [("+Units+")\S4\M]" 1651 1664 elseif(cmpstr(WhatTypeSelected,"1/Y")==0) 1652 NewLabel="Intensity\S-1\M [ cm]"1665 NewLabel="Intensity\S-1\M [("+Units+")\S-1\M]" 1653 1666 elseif(cmpstr(WhatTypeSelected,"sqrt(1/Y)")==0) 1654 NewLabel="sqrt(Intensity\S-1\M) [ cm\S-0.5\M]"1667 NewLabel="sqrt(Intensity\S-1\M) [sqrt("+Units+")]" 1655 1668 elseif(cmpstr(WhatTypeSelected,"ln(Y*X^2)")==0) 1656 1669 NewLabel="ln(Intensity * q\S2\M)" … … 1660 1673 NewLabel="ln(Intensity * q)" 1661 1674 elseif(cmpstr(WhatTypeSelected,"Y*X^2")==0) 1662 NewLabel="Intensity * q\S2\M [ cm\S-1\M* A\S-2\M]"1675 NewLabel="Intensity * q\S2\M ["+Units+" * A\S-2\M]" 1663 1676 elseif(cmpstr(WhatTypeSelected,"Y*X^4")==0) 1664 NewLabel="Intensity * q\S4\M [ cm\S-1\M* A\S-4\M]"1677 NewLabel="Intensity * q\S4\M ["+Units+" * A\S-4\M]" 1665 1678 else 1666 1679 NewLabel="" … … 1711 1724 ListOfVariables+="ModifyDataBackground;ModifyDataMultiplier;ModifyDataQshift;ModifyDataErrorMult;" 1712 1725 ListOfVariables+="TrimPointLargeQ;TrimPointSmallQ;FittingParam1;FittingParam2;FittingParam3;FittingParam4;FittingParam5;" 1713 ListOfVariables+="FitUseErrors;Xoffset;Yoffset; "1726 ListOfVariables+="FitUseErrors;Xoffset;Yoffset;DoNotCheckYAxisUnits;" 1714 1727 //3D graphs special controls 1715 1728 ListOfVariables+="Graph3DClrMin;Graph3DClrMax;Graph3DAngle;Graph3DAxLength;Graph3DLogColors;Graph3DColorsReverse;" -
User Procedures/Irena/IR1_GeneralGraph2.ipf
r6 r13 1 1 #pragma rtGlobals=1 // Use modern global access method. 2 #pragma version=2. 082 #pragma version=2.10 3 3 4 4 //*************************************************************************\ … … 10 10 11 11 //to do: need to handle better the symbols and line types, limit for 8 types is just way too little. 12 12 //2.10 modified to handle different Intensity units for calibration 13 //2.09 added units to lookup string so we can propagate them forward. 13 14 //2.08 changed rainbow colorization method to produce prettier color scheme. based on Data manipulation II method (Tishler likely). 14 15 //2.07 modified name of backup waves to use only _B at the end increasing length of names to 30. Should match enforced user length on import now. … … 161 162 SVAR ListOfDataFolderNames=root:Packages:GeneralplottingTool:ListOfDataFolderNames 162 163 SVAR ListOfDataOrgWvNames=root:Packages:GeneralplottingTool:ListOfDataOrgWvNames 163 //SVAR ListOfDataFormating=root:Packages:GeneralplottingTool:ListOfDataFormating164 SVAR ListOfDataFormating=root:Packages:GeneralplottingTool:ListOfDataFormating 164 165 165 166 variable NumberOfDataPresent,i … … 175 176 176 177 ListOfDataFolderNames+=DFloc+DFInt+";" 178 //now add any units in teh last wave added to 179 Wave InputIntWv=$(DFloc+DFInt) 180 string NewInputUnit=StringByKey("Units", note(InputIntWv), "=" , ";") 181 string LastInputUnit = StringByKey("Units", ListOfDataFormating, "=") 182 NVAR DoNotCheckYAxisUnits = root:Packages:GeneralplottingTool:DoNotCheckYAxisUnits 183 if(!DoNotCheckYAxisUnits && NumberOfDataPresent>0 && strlen(LastInputUnit)>0 && !stringmatch(LastInputUnit, newInputUnit)) 184 DoAlert 0, "Units for Y data do not match; prior data: "+LastInputUnit+", new data : "+NewInputUnit+". This message can be disabled in \"Change graph details\"." 185 endif 186 ListOfDataFormating=ReplaceStringByKey("Units", ListOfDataFormating, newInputUnit , "=") 177 187 ListOfDataOrgWvNames=ReplaceStringByKey("IntWave"+num2str(NumberOfDataPresent), ListOfDataOrgWvNames, DFloc+DFInt , "=") 178 188 ListOfDataOrgWvNames=ReplaceStringByKey("QWave"+num2str(NumberOfDataPresent), ListOfDataOrgWvNames, DFloc+DFQ , "=") … … 203 213 //ListOfGraphFormating contains info, which data should be ploted... 204 214 205 variable i, imax= ItemsInList(ListOfDataOrgWvNames)/3 //there should be always 3 items in each list per data set ploted215 variable i, imax=floor(ItemsInList(ListOfDataOrgWvNames)/3) //there should be always 3 items in each list per data set ploted + common units added later 206 216 string DataX=stringByKey("DataX", ListOfGraphFormating,"=") 207 217 string DataY=stringByKey("DataY", ListOfGraphFormating,"=") … … 1318 1328 PopupMenu XAxisDataType, win=IR1P_ControlPanel,mode=1,popvalue=StringByKey("DataX", FormatingStr, "=") //,value= "Q;Q^2;Q^3;Q^4;" 1319 1329 PopupMenu YAxisDataType,win=IR1P_ControlPanel, mode=1,popvalue=StringByKey("DataY", FormatingStr, "=")//,value= "I;I^2;I^3;I^4;I*Q^4;1/I;ln(Q^2*I);" 1320 1330 IR1P_UpdateAxisName("Y",StringByKey("DataY", FormatingStr, "=")) 1331 IR1P_UpdateAxisName("X",StringByKey("DataX", FormatingStr, "=")) 1321 1332 NVAR GraphUseBW = root:Packages:GeneralplottingTool:GraphUseBW 1322 1333 if(GraphUseBW+GraphUseColors+GraphUseRainbow!=1) … … 1330 1341 IR1P_GraphUseRainbow(GraphUseRainbow, GraphUseBW) 1331 1342 endif 1343 variable i 1332 1344 if (GraphUseSymbols) 1333 FormatingStr=ReplaceStringByKey("mode[0]",FormatingStr, "4","=") 1334 FormatingStr=ReplaceStringByKey("mode[1]",FormatingStr, "4","=") 1335 FormatingStr=ReplaceStringByKey("mode[2]",FormatingStr, "4","=") 1336 FormatingStr=ReplaceStringByKey("mode[3]",FormatingStr, "4","=") 1337 FormatingStr=ReplaceStringByKey("mode[4]",FormatingStr, "4","=") 1338 1339 FormatingStr=ReplaceStringByKey("marker[0]",FormatingStr, "8","=") 1340 FormatingStr=ReplaceStringByKey("marker[1]",FormatingStr, "17","=") 1341 FormatingStr=ReplaceStringByKey("marker[2]",FormatingStr, "5","=") 1342 FormatingStr=ReplaceStringByKey("marker[3]",FormatingStr, "12","=") 1343 FormatingStr=ReplaceStringByKey("marker[4]",FormatingStr, "16","=") 1345 For(i=0;i<62;i+=1) 1346 FormatingStr=ReplaceStringByKey("mode["+num2str(i)+"]",FormatingStr, "4","=") 1347 //FormatingStr=ReplaceStringByKey("mode[1]",FormatingStr, "4","=") 1348 //FormatingStr=ReplaceStringByKey("mode[2]",FormatingStr, "4","=") 1349 //FormatingStr=ReplaceStringByKey("mode[3]",FormatingStr, "4","=") 1350 //FormatingStr=ReplaceStringByKey("mode[4]",FormatingStr, "4","=") 1351 1352 FormatingStr=ReplaceStringByKey("marker["+num2str(i)+"]",FormatingStr, num2str(i),"=") 1353 //FormatingStr=ReplaceStringByKey("marker[1]",FormatingStr, "17","=") 1354 //FormatingStr=ReplaceStringByKey("marker[2]",FormatingStr, "5","=") 1355 //FormatingStr=ReplaceStringByKey("marker[3]",FormatingStr, "12","=") 1356 //FormatingStr=ReplaceStringByKey("marker[4]",FormatingStr, "16","=") 1357 endfor 1344 1358 else 1345 FormatingStr=ReplaceStringByKey("mode[0]",FormatingStr, "0","=") 1346 FormatingStr=ReplaceStringByKey("mode[1]",FormatingStr, "0","=") 1347 FormatingStr=ReplaceStringByKey("mode[2]",FormatingStr, "0","=") 1348 FormatingStr=ReplaceStringByKey("mode[3]",FormatingStr, "0","=") 1349 FormatingStr=ReplaceStringByKey("mode[4]",FormatingStr, "0","=") 1359 For(i=0;i<62;i+=1) 1360 FormatingStr=ReplaceStringByKey("mode["+num2str(i)+"]",FormatingStr, "0","=") 1361 //FormatingStr=ReplaceStringByKey("mode[1]",FormatingStr, "0","=") 1362 //FormatingStr=ReplaceStringByKey("mode[2]",FormatingStr, "0","=") 1363 //FormatingStr=ReplaceStringByKey("mode[3]",FormatingStr, "0","=") 1364 //FormatingStr=ReplaceStringByKey("mode[4]",FormatingStr, "0","=") 1365 endfor 1350 1366 endif 1351 1367 end -
User Procedures/Irena/IR1_ImportData.ipf
r11 r13 1 1 #pragma rtGlobals=1 // Use modern global access method. 2 #pragma version=2.1 63 Constant IR1IversionNumber = 2.1 52 #pragma version=2.17 3 Constant IR1IversionNumber = 2.17 4 4 Constant IR1TrimNameLength = 28 5 5 //*************************************************************************\ … … 9 9 //*************************************************************************/ 10 10 11 //2.17 added controls for Units - Arbitrary, cm2/cm3, and cm2/g are known units for now... 11 12 //2.16 added cleanup of weird characters (,),%, {, } of names. Allowed by igor but cause problems to my opther code. 12 13 //2.15 added vertical scrolling for panel. … … 71 72 Proc IR1I_ImportData() 72 73 PauseUpdate; Silent 1 // building window... 73 NewPanel /K=1 /W=(3,40,430,7 00) as "Import data"74 NewPanel /K=1 /W=(3,40,430,720) as "Import data" 74 75 DoWindow/C IR1I_ImportData 75 76 // SetDrawLayer UserBack … … 192 193 CheckBox UseFileNameAsFolder,pos={10,420},size={16,14},proc=IR1I_CheckProc,title="Use File Nms As Fldr Nms?",variable= root:Packages:ImportData:UseFileNameAsFolder, help={"Use names of imported files as folder names for the data?"} 193 194 CheckBox IncludeExtensionInName,pos={240,420},size={16,14},proc=IR1I_CheckProc,title="Include Extension in fldr nm?",variable= root:Packages:ImportData:IncludeExtensionInName, help={"Include file extension in imported data foldername?"}, disable=!(root:Packages:ImportData:UseFileNameAsFolder) 194 CheckBox UseIndra2Names,pos={10,436},size={16,14},proc=IR1I_CheckProc,title="Use Indra 2 wavenames?",variable= root:Packages:ImportData:UseIndra2Names, help={"Use wave names using Indra 2 name structure? (DSM_Int, DSM_Qvec, DSM_Error)"}195 CheckBox UseIndra2Names,pos={10,436},size={16,14},proc=IR1I_CheckProc,title="Use USAXS names?",variable= root:Packages:ImportData:UseIndra2Names, help={"Use wave names using Indra 2 name structure? (DSM_Int, DSM_Qvec, DSM_Error)"} 195 196 CheckBox ImportSMRdata,pos={150,436},size={16,14},proc=IR1I_CheckProc,title="Slit smeared?",variable= root:Packages:ImportData:ImportSMRdata, help={"Check if the data are slit smeared, changes suggested Indra data names to SMR_Qvec, SMR_Int, SMR_error"} 196 197 CheckBox ImportSMRdata, disable= !root:Packages:ImportData:UseIndra2Names … … 222 223 // PopupMenu SelectFolderNewData,mode=1,popvalue="---",value= #"\"---;\"+IR1_GenStringOfFolders(0, 0,0,0)" 223 224 224 SetVariable NewDataFolderName, pos={5,550}, size={410,20},title="New data folder:", proc=IR1I_setvarProc 225 CheckBox DataCalibratedArbitrary,pos={10,547},size={16,14},mode=1,proc=IR1I_CheckProc,title="Calibration Arbitrary",variable= root:Packages:ImportData:DataCalibratedArbitrary, help={"Data not calibrated (on relative scale)"} 226 CheckBox DataCalibratedVolume,pos={150,547},size={16,14},mode=1,proc=IR1I_CheckProc,title="Calibration cm2/cm3",variable= root:Packages:ImportData:DataCalibratedVolume, help={"Data calibrated to volume"} 227 CheckBox DataCalibratedWeight,pos={290,547},size={16,14},mode=1,proc=IR1I_CheckProc,title="Calibration cm2/g",variable= root:Packages:ImportData:DataCalibratedWeight, help={"Data calibrated to weight"} 228 229 SetVariable NewDataFolderName, pos={5,570}, size={410,20},title="New data folder:", proc=IR1I_setvarProc 225 230 SetVariable NewDataFolderName value= root:packages:ImportData:NewDataFolderName,help={"Folder for the new data. Will be created, if does not exist. Use popup above to preselect."} 226 SetVariable NewQwaveName, pos={5,5 70}, size={320,20},title="Q wave names ", proc=IR1I_setvarProc231 SetVariable NewQwaveName, pos={5,590}, size={320,20},title="Q wave names ", proc=IR1I_setvarProc 227 232 SetVariable NewQwaveName, value= root:packages:ImportData:NewQWaveName,help={"Input name for the new Q wave"} 228 SetVariable NewIntensityWaveName, pos={5, 590}, size={320,20},title="Intensity names", proc=IR1I_setvarProc233 SetVariable NewIntensityWaveName, pos={5,610}, size={320,20},title="Intensity names", proc=IR1I_setvarProc 229 234 SetVariable NewIntensityWaveName, value= root:packages:ImportData:NewIntensityWaveName,help={"Input name for the new intensity wave"} 230 SetVariable NewErrorWaveName, pos={5,6 10}, size={320,20},title="Error wv names", proc=IR1I_setvarProc235 SetVariable NewErrorWaveName, pos={5,630}, size={320,20},title="Error wv names", proc=IR1I_setvarProc 231 236 SetVariable NewErrorWaveName, value= root:packages:ImportData:NewErrorWaveName,help={"Input name for the new Error wave"} 232 SetVariable NewQErrorWaveName, pos={5,6 30}, size={320,20},title="Q Error wv names", proc=IR1I_setvarProc237 SetVariable NewQErrorWaveName, pos={5,650}, size={320,20},title="Q Error wv names", proc=IR1I_setvarProc 233 238 SetVariable NewQErrorWaveName, value= root:packages:ImportData:NewQErrorWaveName,help={"Input name for the new Q data Error wave"} 234 239 … … 459 464 NVAR QvectInNM=root:Packages:ImportData:QvectInNM 460 465 466 NVAR DataCalibratedArbitrary=root:Packages:ImportData:DataCalibratedArbitrary 467 NVAR DataCalibratedVolume=root:Packages:ImportData:DataCalibratedVolume 468 NVAR DataCalibratedWeight=root:Packages:ImportData:DataCalibratedWeight 469 461 470 IR1_CreateLoggbook() //this creates the logbook 462 471 SVAR nbl=root:Packages:SAS_Modeling:NotebookName … … 487 496 elseif(QvectInNM) 488 497 IR1L_AppendAnyText("Q was in nm, scaled to A ") 498 endif 499 if(DataCalibratedArbitrary) 500 IR1L_AppendAnyText("Intensity was imported on relative scale") 501 elseif(DataCalibratedVolume) 502 IR1L_AppendAnyText("Intensity was imported with volume calibration [cm2/cm3]") 503 elseif(DataCalibratedWeight) 504 IR1L_AppendAnyText("Intensity was imported with weight calibration [cm2/g]") 489 505 endif 490 506 if(SkipLines) … … 631 647 endif 632 648 endif 649 //lets insert here thre Units intot he wave notes... 650 NVAR DataCalibratedArbitrary=root:Packages:ImportData:DataCalibratedArbitrary 651 NVAR DataCalibratedVolume=root:Packages:ImportData:DataCalibratedVolume 652 NVAR DataCalibratedWeight=root:Packages:ImportData:DataCalibratedWeight 653 if(DataCalibratedWeight) 654 note/NOCR TempIntensity, "Units=cm2/g;" 655 elseif(DataCalibratedVolume) 656 note/NOCR TempIntensity, "Units=cm2/cm3;" 657 elseif(DataCalibratedArbitrary) 658 note/NOCR TempIntensity, "Units=Arbitrary;" 659 endif 660 633 661 //here we will deal with erros, if the user needs to create them 634 662 NVAR CreateSQRTErrors=root:Packages:ImportData:CreateSQRTErrors … … 1236 1264 SVAR NewQErrorWaveName= root:packages:ImportData:NewQErrorWaveName 1237 1265 1266 NVAR DataCalibratedArbitrary = root:Packages:ImportData:DataCalibratedArbitrary 1267 NVAR DataCalibratedVolume = root:Packages:ImportData:DataCalibratedVolume 1268 NVAR DataCalibratedWeight = root:Packages:ImportData:DataCalibratedWeight 1269 if(cmpstr(ctrlName,"DataCalibratedArbitrary")==0) 1270 //DataCalibratedArbitrary = 0 1271 DataCalibratedVolume = 0 1272 DataCalibratedWeight = 0 1273 endif 1274 if(cmpstr(ctrlName,"DataCalibratedVolume")==0) 1275 DataCalibratedArbitrary = 0 1276 //DataCalibratedVolume = 0 1277 DataCalibratedWeight = 0 1278 endif 1279 if(cmpstr(ctrlName,"DataCalibratedWeight")==0) 1280 DataCalibratedArbitrary = 0 1281 DataCalibratedVolume = 0 1282 //DataCalibratedWeight = 0 1283 endif 1284 1238 1285 if(cmpstr(ctrlName,"UseFileNameAsFolder")==0) 1239 1286 CheckBox IncludeExtensionInName, disable=!(checked) … … 1801 1848 ListOfVariables += "TrimData;TrimDataQMin;TrimDataQMax;ReduceNumPnts;TargetNumberOfPoints;ReducePntsParam;" 1802 1849 ListOfVariables += "NumOfPointsFound;TrunkateStart;TrunkateEnd;" 1850 ListOfVariables += "DataCalibratedArbitrary;DataCalibratedVolume;DataCalibratedWeight;" 1803 1851 1804 1852 //and here we create them … … 1850 1898 endif 1851 1899 endfor 1900 1901 NVAR DataCalibratedArbitrary 1902 NVAR DataCalibratedVolume 1903 NVAR DataCalibratedWeight 1904 if(DataCalibratedArbitrary+DataCalibratedVolume+DataCalibratedWeight!=1) 1905 DataCalibratedArbitrary = 1 1906 DataCalibratedVolume = 0 1907 DataCalibratedWeight = 0 1908 endif 1852 1909 NVAR TrunkateStart 1853 1910 NVAR TrunkateEnd -
User Procedures/Irena/IR1_LSQF_UserPanel.ipf
r6 r13 48 48 49 49 //Experimental data input 50 CheckBox UseIndra2Data,pos={217,26},size={141,14},proc=IR1U_InputPanelCheckboxProc,title="Use Indra 2 datastructure"50 CheckBox UseIndra2Data,pos={217,26},size={141,14},proc=IR1U_InputPanelCheckboxProc,title="Use USAXS structure" 51 51 CheckBox UseIndra2Data,value= root:packages:SAS_Modeling:UseIndra2data, help={"Check, if you are using Indra 2 produced data with the orginal names, uncheck if the names of data waves are different"} 52 52 CheckBox UseQRSData,pos={217,40},size={141,14},proc=IR1U_InputPanelCheckboxProc,title="Use QRS data structure" -
User Procedures/Irena/IR2_PanelCntrlProcs.ipf
r6 r13 1 1 #pragma rtGlobals=1 // Use modern global access method. 2 #pragma version = 1.2 42 #pragma version = 1.25 3 3 4 4 … … 9 9 //*************************************************************************/ 10 10 11 //1.25 changed "Indra 2" to "USAXS" to make bit more sense for human beings. 11 12 //1.24 added Guinier-Porod data type 12 13 //1.23 fixed user defined data types of QIS type (with type at the end … … 483 484 // //Experimental data input 484 485 if(strlen(AllowedIrenaTypes)>0) 485 CheckBox UseIndra2Data,pos={100,25},size={141,14},proc=IR2C_InputPanelCheckboxProc,title=" Indra 2 data"486 CheckBox UseIndra2Data,variable= $(CntrlLocation+":UseIndra2data"), help={"Check, if you are using Indra 2produced data with the orginal names, uncheck if the names of data waves are different"}486 CheckBox UseIndra2Data,pos={100,25},size={141,14},proc=IR2C_InputPanelCheckboxProc,title="USAXS" 487 CheckBox UseIndra2Data,variable= $(CntrlLocation+":UseIndra2data"), help={"Check, if you are using USAXS - Indra 2 - produced data with the orginal names, uncheck if the names of data waves are different"} 487 488 endif 488 489 CheckBox UseQRSData,pos={100,39},size={90,14},proc=IR2C_InputPanelCheckboxProc,title="QRS (QIS)" -
User Procedures/Irena/IR2_ScriptingTool.ipf
r9 r13 335 335 PopupMenu StartFolderSelection,mode=1,popvalue=root:Packages:Irena:ScriptingTool:StartFolderName,value= #"\"root:;\"+IR2S_GenStringOfFolders2(root:Packages:Irena:ScriptingTool:UseIndra2Data, root:Packages:Irena:ScriptingTool:UseQRSdata,2,1)" 336 336 337 CheckBox UseIndra2data,pos={302,45},size={76,14},proc=IR2S_CheckProc,title=" Indra 2 data?"337 CheckBox UseIndra2data,pos={302,45},size={76,14},proc=IR2S_CheckProc,title="USAXS?" 338 338 CheckBox UseIndra2data,variable= root:Packages:Irena:ScriptingTool:UseIndra2Data 339 339 CheckBox UseQRSdata,pos={302,63},size={64,14},proc=IR2S_CheckProc,title="QRS data?" -
User Procedures/Irena/Modification history.txt
r12 r13 9 9 Control procedures - modified to show only last folder but work transparently for the tools. 10 10 Control procedures - added G(r) as data type of Irena results. 11 Control procedures - changed "Indra 2 data" to "USAXS". More human readable. 11 12 Unified fit - fixed Checking of validity levels not to declare level without Guinier part to be invalid. 12 13 Unified fit - added "No limits" checkbox and support code to fit without limits. … … 16 17 Added panel version control for: Fractals tool, Small-angle diffraction, ASCII export, ASCII Import 17 18 Data Manipulation II - modified to add ability to create errors (=uncertainties), scale and rebin to number of points. Modified GUI to separate processing, errors generation and post processing (scaling/rebinning). 18 Plotting tool II - changed how error bars are displayed and enables SMR data error bars. 19 Plotting tool II - changed how error bars are displayed and enables SMR data error bars. 20 Plotting tool I - added ability to use calibration unit (arbitrary, cm2/cm3 or cm2/g) from the USAXS data. Added checkbox to avoid units checking. 21 ASCII Import data - added controls to select import units for Intensity [options: Arbitrary, VolumeÉcm2/cm3, WeightÉcm2/g] 19 22 20 23
Note: See TracChangeset
for help on using the changeset viewer.