mollcursor should be run immediately following mollview. It gives the longitude, latitude, map value and pixel number corresponding to the cursor position in the window containing the map generated by mollview. Mouse buttons are used to select the function :
left button = display the information relative to the current cursor position,
middle button = print out this information in the IDL command window
right button = quit mollcursor
Note on Mac OS X, X11 and IDL cursor: depending on the Mac OS X version2and most importantly on the X Window System being used,3the IDL function cursor, and therefore HEALPix mollcursor, gnomcursor, will not work properly under X11. To solve this problem, type the relevant line below at your X11 prompt and restart X11.
If you are using Apple's X11, type under Tiger (10.4):
defaults write com.apple.x11 wm_click_through -bool true
or, under Leopard (10.5), Snow Leopard (10.6), Lion (10.7):
defaults write org.x.x11 wm_click_through -bool true
If you are using Xquartz (from, Montain Lion (10.8) to Sequoia (15.*)):
defaults write org.macosforge.xquartz.X11 wm_click_through -bool true for Xquartz 2.7,
or defaults write org.xquartz.X11 wm_click_through -bool true for Xquartz 2.8,
and if you are using MacPort's X11 (package xorg-server):
defaults write org.macports.X11 wm_click_through -bool true
(see http://www.idlcoyote.com/misc_tips/maccursor.html and the section Mac OS X, X11 and IDL cursor in ”HEALPix Installation Documentation”).
And finally, mollcursor obviously requires the '3 button mouse' to be enabled, which can be done in the X11 Preferences menu, or if Xquartz is used (see man Xquartz) via:
defaults write org.macosforge.xquartz.X11 enable_fake_buttons -bool true
mollcursor |
After mollview reads in a map and generates its mollweide projection, mollcursor is run to know the position and flux of bright synchrotron sources, for example.
Version 3.83, 2024-11-13