IDL keywords 检查

pro test_keyword, a, key1 =key1
  if keyword_set(key1) then $
    print, a+key1 $
  else $
    print, a
end
 
IDL> test_keyword, 4, key1=6
      10
IDL> test_keyword, 4
       4
 
 
 
原文地址:https://www.cnblogs.com/lqqgis/p/13626529.html