Commit 2af1d21ee263c00ede7b9bebd9d96e3345558b5d

Authored by Hacene SI HADJ MOHAND
1 parent 40df211d

alfven ok

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