Changes for page IDL cheat sheet

Last modified by fwilde on 2025/03/28 19:55

From version 46.1
edited by fwilde
on 2020/10/10 12:21
Change comment: There is no comment for this version
To version 48.1
edited by fwilde
on 2020/10/10 12:39
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -195,14 +195,24 @@
195 195  description
196 196  )))
197 197  |(((
198 +##**slit_oh, rx=1 (rz=1)**##
199 +)))|(((
200 +moves oh slit aperture horizontally (vertically) by 1mm
201 +)))
202 +|(((
203 +##**slit_oh, rdx=1 (rdz=1)**##
204 +)))|(((
205 +opens oh the slit aperture horizontally (vertically) by 1 mm
206 +)))
207 +|(((
198 198  ##**slit_eh2, rx=1 (rz=1)**##
199 199  )))|(((
200 -moves eh2 slit aperture horizontally (vertically) by 1mm , **works analoguous for slit_oh and slit_ps2**
210 +moves eh2 slit aperture horizontally (vertically) by 1 mm
201 201  )))
202 202  |(((
203 -##**slit_eh2, rdz=1 (rdz=1)**##
213 +##**slit_eh2, rdx=1 (rdz=1)**##
204 204  )))|(((
205 -opens eh2 the slit aperture horizontally (vertically) by 1 mm, **works analoguous for slit_oh and slit_ps2**
215 +opens eh2 the slit aperture horizontally (vertically) by 1 mm
206 206  )))
207 207  |(((
208 208  ##**slit_info**##
... ... @@ -212,7 +212,7 @@
212 212  
213 213  rx, rdx, rz and rdz can be concatenated in one command (e.g. slit_oh, rx=1, rz=-2, rdx=0.5, rdz=0.5)
214 214  
215 -== {{id name="IDLcheatsheet-Makeimages"/}}Make images ==
225 +== {{id name="IDLcheatsheet-Makeandsaveimages"/}}Make and save images ==
216 216  
217 217  (% class="wrapped fixed-table" %)
218 218  |=(((
... ... @@ -221,22 +221,28 @@
221 221  description
222 222  )))
223 223  |(((
224 -##**i=quick(100) & tv_quick, i & draw_box, [ x1, x2 ,z1 ,z2 ]**##
234 +##**i=quick(100) & display_image, BYSTCL(i, 0, 4096)
235 +**##
225 225  )))|(((
226 -make an image & show image & draw box
237 +make an image & scale image (eg. from 0 to 4096, usually from 0 to maximum value the camera can do)
227 227  )))
228 228  |(((
229 -##**a=quick_abs(100) & tv_quick, a & draw_box, [ x1, x2 ,z1 ,z2 ]**##
240 +##**a=quick_abs(100) & display_image, BYTSCL(a, 0, 2)**##
230 230  )))|(((
231 -make an absorption image & show image & draw box
242 +make an absorption image & scale image (usually from 0 to to 2)
232 232  )))
233 233  |(((
234 -##**write_tiff, '/gpfs/current/raw/test.tif', i, /SHORT**##
245 +##**write_tiff, '/gpfs/current/raw/test_projection.tif', i, /SHORT**##
235 235  )))|(((
236 -save i as 16-bit tiff in /gpfs/...
247 +save i as 16-bit integer tiff in /gpfs/...
237 237  )))
249 +|(((
250 +##**write_tiff, '/gpfs/current/raw/test_absorption.tif', a, /FLOAT**##
251 +)))|(((
252 +save a as 32-bit float tiff in /gpfs/...
253 +)))
238 238  
239 -== {{id name="IDLcheatsheet-Monochromatorpositioning"/}}Monochromator positioning ==
255 +== {{id name="IDLcheatsheet-DCMpositioning"/}}DCM positioning ==
240 240  
241 241  (% class="wrapped fixed-table" %)
242 242  |=(((
... ... @@ -247,13 +247,6 @@
247 247  motion
248 248  )))
249 249  |(((
250 -##**calc_dcm_energy, 10000, /set**##
251 -)))|(((
252 -set DCM and undulator to 10 keV
253 -)))|(((
254 -\\
255 -)))
256 -|(((
257 257  ##**dcm_pitch, 0.00001**##
258 258  )))|(((
259 259  move 2nd crystal pitch by 0.00001 deg
... ... @@ -274,21 +274,41 @@
274 274  )))|(((
275 275  \\
276 276  )))
286 +
287 +== {{id name="IDLcheatsheet-DMMpositioning"/}}DMM positioning ==
288 +
289 +(% class="fixed-table wrapped" %)
290 +|=(((
291 +IDL command
292 +)))|=(((
293 +description
294 +)))|=(((
295 +motion
296 +)))
277 277  |(((
278 -##**gap, 0.01**##
298 +##**dmm_x2_rot, 0.001**##
279 279  )))|(((
280 -move undulator gap relative by 0.01 mm
300 +move 2nd crystal pitch by 0.00001 deg
281 281  )))|(((
282 -relative [ mm ]
302 +relative [ deg ]
283 283  )))
284 284  |(((
285 -##**goto_gap, 10.0**##
305 +##**goto_dmm_x2_rot,  0.8923
306 +**##
286 286  )))|(((
287 -move undulator gap absolute to 10.0 mm
308 +move 2nd crystal pitch to 0.8923 deg
288 288  )))|(((
289 -absolute [ mm ]
310 +absolute [ deg ]
290 290  )))
291 291  
313 +{{info title="Monochromator positioning"}}
314 +ATTENTION: Setting up a Monochromator as well as positioning front end slits is **only** done by the beamline staff!
315 +
316 +The commands above may be used by users to realign the beam should it beam profile drift with time.
317 +{{/info}}
318 +
319 +\\
320 +
292 292  == {{id name="IDLcheatsheet-Generalsyntax"/}}General syntax ==
293 293  
294 294  (% class="wrapped relative-table" style="width: 45.5603%;" %)
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -179783458
1 +179783464
URL
... ... @@ -1,1 +1,1 @@
1 -https://confluence.desy.de/spaces/P5I/pages/179783458/IDL cheat sheet
1 +https://confluence.desy.de/spaces/P5I/pages/179783464/IDL cheat sheet