Changes for page IDL cheat sheet

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

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

Summary

Details

Page properties
Content
... ... @@ -195,24 +195,14 @@
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 -|(((
208 208  ##**slit_eh2, rx=1 (rz=1)**##
209 209  )))|(((
210 -moves eh2 slit aperture horizontally (vertically) by 1 mm
200 +moves eh2 slit aperture horizontally (vertically) by 1mm , **works analoguous for slit_oh and slit_ps2**
211 211  )))
212 212  |(((
213 -##**slit_eh2, rdx=1 (rdz=1)**##
203 +##**slit_eh2, rdz=1 (rdz=1)**##
214 214  )))|(((
215 -opens eh2 the slit aperture horizontally (vertically) by 1 mm
205 +opens eh2 the slit aperture horizontally (vertically) by 1 mm, **works analoguous for slit_oh and slit_ps2**
216 216  )))
217 217  |(((
218 218  ##**slit_info**##
... ... @@ -222,7 +222,7 @@
222 222  
223 223  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)
224 224  
225 -== {{id name="IDLcheatsheet-Makeandsaveimages"/}}Make and save images ==
215 +== {{id name="IDLcheatsheet-Makeimages"/}}Make images ==
226 226  
227 227  (% class="wrapped fixed-table" %)
228 228  |=(((
... ... @@ -231,28 +231,22 @@
231 231  description
232 232  )))
233 233  |(((
234 -##**i=quick(100) & display_image, BYSTCL(i, 0, 4096)
235 -**##
224 +##**i=quick(100) & tv_quick, i & draw_box, [ x1, x2 ,z1 ,z2 ]**##
236 236  )))|(((
237 -make an image & scale image (eg. from 0 to 4096, usually from 0 to maximum value the camera can do)
226 +make an image & show image & draw box
238 238  )))
239 239  |(((
240 -##**a=quick_abs(100) & display_image, BYTSCL(a, 0, 2)**##
229 +##**a=quick_abs(100) & tv_quick, a & draw_box, [ x1, x2 ,z1 ,z2 ]**##
241 241  )))|(((
242 -make an absorption image & scale image (usually from 0 to to 2)
231 +make an absorption image & show image & draw box
243 243  )))
244 244  |(((
245 -##**write_tiff, '/gpfs/current/raw/test_projection.tif', i, /SHORT**##
234 +##**write_tiff, '/gpfs/current/raw/test.tif', i, /SHORT**##
246 246  )))|(((
247 -save i as 16-bit integer tiff in /gpfs/...
236 +save i as 16-bit tiff in /gpfs/...
248 248  )))
249 -|(((
250 -##**write_tiff, '/gpfs/current/raw/test_absorption.tif', a, /FLOAT**##
251 -)))|(((
252 -save a as 32-bit float tiff in /gpfs/...
253 -)))
254 254  
255 -== {{id name="IDLcheatsheet-DCMpositioning"/}}DCM positioning ==
239 +== {{id name="IDLcheatsheet-Monochromatorpositioning"/}}Monochromator positioning ==
256 256  
257 257  (% class="wrapped fixed-table" %)
258 258  |=(((
... ... @@ -263,6 +263,13 @@
263 263  motion
264 264  )))
265 265  |(((
250 +##**calc_dcm_energy, 10000, /set**##
251 +)))|(((
252 +set DCM and undulator to 10 keV
253 +)))|(((
254 +\\
255 +)))
256 +|(((
266 266  ##**dcm_pitch, 0.00001**##
267 267  )))|(((
268 268  move 2nd crystal pitch by 0.00001 deg
... ... @@ -283,33 +283,7 @@
283 283  )))|(((
284 284  \\
285 285  )))
286 -
287 -== {{id name="IDLcheatsheet-DMMpositioning"/}}DMM positioning ==
288 -
289 -(% class="fixed-table" %)
290 -|=(((
291 -IDL command
292 -)))|=(((
293 -description
294 -)))|=(((
295 -motion
296 -)))
297 297  |(((
298 -##**dmm_x2_rot, 0.001**##
299 -)))|(((
300 -move 2nd crystal pitch by 0.00001 deg
301 -)))|(((
302 -relative [ deg ]
303 -)))
304 -|(((
305 -##**goto_dmm_x2_rot,  0.8923
306 -**##
307 -)))|(((
308 -move 2nd crystal pitch to 0.8923 deg
309 -)))|(((
310 -absolute [ deg ]
311 -)))
312 -|(((
313 313  ##**gap, 0.01**##
314 314  )))|(((
315 315  move undulator gap relative by 0.01 mm
... ... @@ -324,37 +324,6 @@
324 324  absolute [ mm ]
325 325  )))
326 326  
327 -== {{id name="IDLcheatsheet-Undulatorpositioning"/}}Undulator positioning ==
328 -
329 -(% class="fixed-table" %)
330 -|=(((
331 -IDL command
332 -)))|=(((
333 -description
334 -)))|=(((
335 -motion
336 -)))
337 -|(((
338 -##**gap, 0.01**##
339 -)))|(((
340 -move undulator gap relative by 0.01 mm
341 -)))|(((
342 -relative [ mm ]
343 -)))
344 -|(((
345 -##**goto_gap, 10.0**##
346 -)))|(((
347 -move undulator gap absolute to 10.0 mm
348 -)))|(((
349 -absolute [ mm ]
350 -)))
351 -
352 -{{info title="Monochromator positioning"}}
353 -ATTENTION: Setting up a Monochromator as well as positioning front end slits is **only** done by the beamline staff!
354 -{{/info}}
355 -
356 -\\
357 -
358 358  == {{id name="IDLcheatsheet-Generalsyntax"/}}General syntax ==
359 359  
360 360  (% class="wrapped relative-table" style="width: 45.5603%;" %)
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -179783463
1 +179783458
URL
... ... @@ -1,1 +1,1 @@
1 -https://confluence.desy.de/spaces/P5I/pages/179783463/IDL cheat sheet
1 +https://confluence.desy.de/spaces/P5I/pages/179783458/IDL cheat sheet