Changes for page IDL cheat sheet

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

From version 48.1
edited by fwilde
on 2020/10/10 12:39
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,41 +283,21 @@
283 283  )))|(((
284 284  \\
285 285  )))
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 -)))
297 297  |(((
298 -##**dmm_x2_rot, 0.001**##
278 +##**gap, 0.01**##
299 299  )))|(((
300 -move 2nd crystal pitch by 0.00001 deg
280 +move undulator gap relative by 0.01 mm
301 301  )))|(((
302 -relative [ deg ]
282 +relative [ mm ]
303 303  )))
304 304  |(((
305 -##**goto_dmm_x2_rot,  0.8923
306 -**##
285 +##**goto_gap, 10.0**##
307 307  )))|(((
308 -move 2nd crystal pitch to 0.8923 deg
287 +move undulator gap absolute to 10.0 mm
309 309  )))|(((
310 -absolute [ deg ]
289 +absolute [ mm ]
311 311  )))
312 312  
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 -
321 321  == {{id name="IDLcheatsheet-Generalsyntax"/}}General syntax ==
322 322  
323 323  (% class="wrapped relative-table" style="width: 45.5603%;" %)
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -179783464
1 +179783458
URL
... ... @@ -1,1 +1,1 @@
1 -https://confluence.desy.de/spaces/P5I/pages/179783464/IDL cheat sheet
1 +https://confluence.desy.de/spaces/P5I/pages/179783458/IDL cheat sheet