Commit 2af1d21ee263c00ede7b9bebd9d96e3345558b5d

Authored by Hacene SI HADJ MOHAND
1 parent 40df211d

alfven ok

generic_data/Functions/functions.xml
... ... @@ -79,6 +79,11 @@
79 79 <info_brief>Delays array by T secs back (T &lt; 0) and forth (T &gt; 0))</info_brief>
80 80 <new_kernel>#timeShift</new_kernel>
81 81 </function>
  82 + <function name="Valfven(,)" params="2" kind="physics">
  83 + <prompt>Alfven velocity Valfven(density[cm^⁻3], mag[nT])</prompt>
  84 + <info_brief>Alfven velocity Valfven(density[cm^⁻3], mag[nT])</info_brief>
  85 + <new_kernel>alfvenVelocity</new_kernel>
  86 + </function>
82 87 <!-- <function name="gsegsm_()" argv="vector" kind="amda">
83 88 <prompt/>
84 89 <info_brief>GSE to GSM transformation</info_brief>
... ... @@ -92,7 +97,6 @@
92 97 <info_brief>Angle between two vectors</info_brief>
93 98 <new_kernel>angle</new_kernel>
94 99 </function>
95   -
96 100 <function name="cross(,)" params="2" kind="vectors">
97 101 <info_brief>Cross product</info_brief>
98 102 <new_kernel>cross</new_kernel>
... ...
js/app/views/CalculatorUI.js
... ... @@ -346,6 +346,7 @@ Ext.define(&#39;amdaUI.CalculatorUI&#39;, {
346 346 this.createFunctionBtns('VectorFunctions','Vector Functions');
347 347 this.createFunctionBtns('TimeFunctions','Statistics');
348 348 this.createFunctionBtns('FunctionsSliding','Statistics/Sliding');
  349 + this.createFunctionBtns('PhysicsFunctions','Physics');
349 350 this.createFunctionBtns('AmdaFunctions','Special');
350 351 },
351 352  
... ... @@ -433,6 +434,9 @@ Ext.define(&#39;amdaUI.CalculatorUI&#39;, {
433 434 case 'VectorFunctions' :
434 435 amdaUI.CalculatorUI.functionStore.filter('kind','vector');
435 436 break;
  437 + case 'PhysicsFunctions' :
  438 + amdaUI.CalculatorUI.functionStore.filter('kind','physics');
  439 + break;
436 440 }
437 441  
438 442 var crtTab = funcTab[0].add(
... ...