- Timestamp:
- Apr 9, 2019 11:04:14 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_PatchFiles.ipf
r1141 r1142 2861 2861 2862 2862 // fake data 2863 V_writeDetectorData(fname,detStr,tmpData)2863 // V_writeDetectorData(fname,detStr,tmpData) 2864 2864 2865 2865 … … 2934 2934 2935 2935 2936 Proc V_Patch_Guide_SSD_Aperture(lo,hi,numGuides,sourceDiam_mm) 2937 Variable lo,hi,numGuides=0,sourceDiam_mm=30 2938 2939 V_fPatch_Guide_SSD_Aperture(lo,hi,numGuides,sourceDiam_mm) 2936 Proc V_Patch_Guide_SSD_Aperture(lo,hi,numGuideStr,sourceDiam_mm) 2937 Variable lo,hi 2938 String numGuideStr="CONV_BEAMS" 2939 Variable sourceDiam_mm=30 2940 2941 V_fPatch_Guide_SSD_Aperture(lo,hi,numGuideStr,sourceDiam_mm) 2940 2942 End 2941 2943 … … 2956 2958 // hi is the last file number (inclusive) 2957 2959 // 2958 Function V_fPatch_Guide_SSD_Aperture(lo,hi,numGuides,sourceDiam_mm) 2959 Variable lo,hi,numGuides,sourceDiam_mm 2960 Function V_fPatch_Guide_SSD_Aperture(lo,hi,numGuideStr,sourceDiam_mm) 2961 Variable lo,hi 2962 String numGuideStr 2963 Variable sourceDiam_mm 2960 2964 2961 2965 … … 2963 2967 String fname,detStr 2964 2968 2965 switch(numGuides) 2966 case 0: 2969 strswitch(numGuideStr) 2970 case "CONV_BEAMS": 2971 case "NARROW_SLITS": 2972 case "0": 2967 2973 A1_to_GV = 2441 2968 2974 break 2969 case 1:2975 case "1": 2970 2976 A1_to_GV = 2157 2971 2977 break 2972 case 2:2978 case "2": 2973 2979 A1_to_GV = 1976 2974 2980 break 2975 case 3:2981 case "3": 2976 2982 A1_to_GV = 1782 2977 2983 break 2978 case 4:2984 case "4": 2979 2985 A1_to_GV = 1582 2980 2986 break 2981 case 5:2987 case "5": 2982 2988 A1_to_GV = 1381 2983 2989 break 2984 case 6:2990 case "6": 2985 2991 A1_to_GV = 1181 2986 2992 break 2987 case 7:2993 case "7": 2988 2994 A1_to_GV = 980 2989 2995 break 2990 case 8:2996 case "8": 2991 2997 A1_to_GV = 780 2992 2998 break 2993 case 9:2999 case "9": 2994 3000 A1_to_GV = 579 2995 3001 break … … 3006 3012 3007 3013 // write values 3008 V_writeNumberOfGuides(fname,num 2str(numGuides))3014 V_writeNumberOfGuides(fname,numGuideStr) 3009 3015 3010 3016 V_writeSourceAp_distance(fname,A1_to_GV)
Note: See TracChangeset
for help on using the changeset viewer.