Wiki source code of IDL cheat sheet
Version 18.1 by fwilde on 2018-11-28 17:49
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
1.1 | 1 | This is an overview of the most commonly used commands during a beamtime. |
| 2 | |||
| |
6.1 | 3 | == {{id name="IDLcheatsheet-Samplepositioning"/}}Sample positioning == |
| 4 | |||
| |
12.1 | 5 | (% class="wrapped fixed-table" %) |
| |
1.1 | 6 | |=((( |
| 7 | IDL command | ||
| 8 | )))|=((( | ||
| 9 | description | ||
| |
3.1 | 10 | )))|=((( |
| 11 | motion | ||
| |
1.1 | 12 | ))) |
| 13 | |((( | ||
| |
15.1 | 14 | s_stage_x/z, 1 |
| |
1.1 | 15 | )))|((( |
| |
15.1 | 16 | move rotation stage in x/z-direction by 1 mm |
| |
3.1 | 17 | )))|((( |
| 18 | relative [ mm ] | ||
| |
1.1 | 19 | ))) |
| 20 | |((( | ||
| |
18.1 | 21 | s_pos_z, 1 |
| |
1.1 | 22 | )))|((( |
| |
18.1 | 23 | move sample stage in z-direction by 1 mm, |
| |
3.1 | 24 | )))|((( |
| 25 | relative [ mm ] | ||
| |
1.1 | 26 | ))) |
| 27 | |((( | ||
| |
18.1 | 28 | s_pos_lateral, 1 |
| 29 | )))|((( | ||
| 30 | move sample stage in x-direction by 1 mm, regardless of position of rotation axis | ||
| 31 | )))|((( | ||
| 32 | relative [ mm ] | ||
| 33 | ))) | ||
| 34 | |((( | ||
| |
9.1 | 35 | s_angle, 90 |
| |
3.1 | 36 | )))|((( |
| |
9.1 | 37 | rotate sample around z axis |
| |
3.1 | 38 | )))|((( |
| |
9.1 | 39 | relative [ deg ] |
| |
3.1 | 40 | ))) |
| |
7.1 | 41 | |((( |
| 42 | s_in | ||
| 43 | )))|((( | ||
| 44 | move sample to "in" position | ||
| 45 | )))|((( | ||
| 46 | predefined | ||
| 47 | ))) | ||
| 48 | |((( | ||
| 49 | s_out | ||
| 50 | )))|((( | ||
| 51 | move sample to "out" position | ||
| 52 | )))|((( | ||
| 53 | predefined | ||
| 54 | ))) | ||
| 55 | |((( | ||
| 56 | s_change | ||
| 57 | )))|((( | ||
| 58 | move sample to "change" position | ||
| 59 | )))|((( | ||
| 60 | predefined | ||
| 61 | ))) | ||
| |
6.1 | 62 | |
| |
17.1 | 63 | (% class="relative-table wrapped" style="width: 63.1965%;" %) |
| |
15.1 | 64 | |=((( |
| 65 | IDL command | ||
| 66 | )))|=((( | ||
| 67 | description | ||
| 68 | )))|=((( | ||
| 69 | motion | ||
| 70 | ))) | ||
| 71 | |((( | ||
| 72 | goto_s_stage_x/z, 1 | ||
| 73 | )))|((( | ||
| 74 | move rotation stage in x/z-direction to 1 mm | ||
| 75 | )))|((( | ||
| 76 | absolute [ mm ] | ||
| 77 | ))) | ||
| 78 | |((( | ||
| 79 | goto_s_pos_x/y/z, 1 | ||
| 80 | )))|((( | ||
| 81 | move sample stage in x/y/z-direction to 1 mm | ||
| 82 | )))|((( | ||
| 83 | absolute [ mm ] | ||
| 84 | ))) | ||
| 85 | |((( | ||
| 86 | goto_s_angle, 90 | ||
| 87 | )))|((( | ||
| 88 | rotate sample around z axis to 90° | ||
| 89 | )))|((( | ||
| 90 | absolute [ deg ] | ||
| 91 | ))) | ||
| 92 | |||
| |
16.1 | 93 | (% class="relative-table wrapped" style="width: 43.5484%;" %) |
| |
15.1 | 94 | |=((( |
| 95 | IDL command | ||
| 96 | )))|=((( | ||
| 97 | description | ||
| 98 | ))) | ||
| 99 | |((( | ||
| 100 | pos_s_stage_x/z() | ||
| 101 | )))|((( | ||
| 102 | return current rotation stage in x/z position | ||
| 103 | ))) | ||
| 104 | |((( | ||
| 105 | pos_s_pos_x/y/z() | ||
| 106 | )))|((( | ||
| 107 | return current sample stage in x/y/z position | ||
| 108 | ))) | ||
| 109 | |((( | ||
| 110 | pos_s_angle() | ||
| 111 | )))|((( | ||
| 112 | return current rotation stage angle | ||
| 113 | ))) | ||
| 114 | |||
| |
6.1 | 115 | == {{id name="IDLcheatsheet-Detectorpositioning"/}}Detector positioning == |
| 116 | |||
| |
12.1 | 117 | (% class="wrapped fixed-table" %) |
| |
6.1 | 118 | |=((( |
| |
7.1 | 119 | IDL command |
| |
6.1 | 120 | )))|=((( |
| 121 | description | ||
| 122 | )))|=((( | ||
| 123 | motion | ||
| 124 | ))) | ||
| |
3.1 | 125 | |((( |
| |
6.1 | 126 | pressure_on |
| |
1.1 | 127 | )))|((( |
| |
6.1 | 128 | enable detector y movement |
| 129 | )))|((( | ||
| |
5.1 | 130 | \\ |
| |
6.1 | 131 | ))) |
| 132 | |((( | ||
| 133 | o_ccd_dist, 5 | ||
| |
3.1 | 134 | )))|((( |
| |
6.1 | 135 | move detector in y direction |
| 136 | )))|((( | ||
| 137 | relative [ mm ] | ||
| 138 | ))) | ||
| 139 | |((( | ||
| 140 | pressure_off | ||
| 141 | )))|((( | ||
| 142 | disable detector movement | ||
| 143 | )))|((( | ||
| |
3.1 | 144 | \\ |
| |
1.1 | 145 | ))) |
| |
3.1 | 146 | |
| |
7.1 | 147 | == {{id name="IDLcheatsheet-Makeimage"/}}Make image == |
| 148 | |||
| |
12.1 | 149 | (% class="wrapped fixed-table" %) |
| |
7.1 | 150 | |=((( |
| 151 | IDL command | ||
| 152 | )))|=((( | ||
| 153 | description | ||
| 154 | ))) | ||
| 155 | |((( | ||
| 156 | i=quick(100) & tv_quick, i & draw_box, [ x1, x2 ,z1 ,z2 ] | ||
| 157 | )))|((( | ||
| 158 | make an image & show image & draw box | ||
| 159 | ))) | ||
| 160 | |((( | ||
| |
10.1 | 161 | a=quick_abs(100) & tv_quick, a & draw_box, [ x1, x2 ,z1 ,z2 ] |
| |
7.1 | 162 | )))|((( |
| |
10.1 | 163 | make an absorption image & show image & draw box |
| |
7.1 | 164 | ))) |
| 165 | |||
| |
6.1 | 166 | == {{id name="IDLcheatsheet-Monochromatorpositioning"/}}Monochromator positioning == |
| 167 | |||
| |
12.1 | 168 | (% class="wrapped fixed-table" %) |
| |
3.1 | 169 | |=((( |
| 170 | IDL command | ||
| 171 | )))|=((( | ||
| 172 | description | ||
| 173 | )))|=((( | ||
| 174 | motion | ||
| 175 | ))) | ||
| |
1.1 | 176 | |((( |
| |
3.1 | 177 | calc_dcm_energy, 10000, /set |
| 178 | )))|((( | ||
| 179 | set DCM and undulator to 10 keV | ||
| 180 | )))|((( | ||
| |
1.1 | 181 | \\ |
| |
3.1 | 182 | ))) |
| 183 | |((( | ||
| 184 | dcm_pitch, 0.00001 | ||
| |
1.1 | 185 | )))|((( |
| |
4.1 | 186 | move 2nd crystal pitch by 0.00001 deg |
| |
3.1 | 187 | )))|((( |
| |
4.1 | 188 | relative [ deg ] |
| |
3.1 | 189 | ))) |
| 190 | |((( | ||
| |
4.1 | 191 | goto_dcm_pitch, -0.03976 |
| |
3.1 | 192 | )))|((( |
| |
4.1 | 193 | move 2nd crystal pitch to -0.03976 deg |
| |
3.1 | 194 | )))|((( |
| |
4.1 | 195 | absolute [ deg ] |
| |
1.1 | 196 | ))) |
| |
3.1 | 197 | |((( |
| |
4.1 | 198 | reflex_opt |
| |
3.1 | 199 | )))|((( |
| |
4.1 | 200 | move 2nd crystal pitch to optimal flux position |
| |
3.1 | 201 | )))|((( |
| 202 | \\ | ||
| 203 | ))) | ||
| |
14.1 | 204 | |
| 205 | == {{id name="IDLcheatsheet-Saveanimageastiff"/}}Save an image as tiff == | ||
| 206 | |||
| |
15.1 | 207 | (% class="wrapped" %) |
| |
14.1 | 208 | |=((( |
| 209 | IDL command | ||
| 210 | )))|=((( | ||
| 211 | desciption | ||
| 212 | ))) | ||
| 213 | |((( | ||
| 214 | write_tiff, '/gpfs/current/raw/test.tif', i, /SHORT | ||
| 215 | )))|((( | ||
| 216 | save i as 16-bit tiff in /gofs/... | ||
| 217 | ))) |