! VAISALA ! Upper Air Division 1995-02-09 ! ! This is GENERIC equation script template ! ! This is a working example that stores ! sensor channel S1 raw data values with ! unit scale of 10. Data is drawn by GRAPH program [Const] { ! Constants and queries ! ! Will be executed immediately after simulation ! or sounding preparation start ! } [Calibrate] { ! Queries that will be executed when "Parameters" button ! is pressed ! At sounding start, queries will be verified ! Can be empty but must exist } [Init] { ! Variable initializations (NOT constants) ! This is executed only once ! ! before the first Data- execution. ! AddData2=0; AddData=0; ! return value 1 is required. Init=1 } [Data] { ! Calculate data value ! Must be multiplied with UnitScale (see Edit Option dialog) ! ! Insert final value to Data ! This example draws sensor channel S1 with unit scale of 10; Data=S1*10; } [AddData] { ! Required event if not used ! Number < -100000 is a NOT USED indicator AddData2=-999999.9 AddData=-999999.9 }