Back to Blog
3.5.3 Tag (Text that is associated with a point in a wave).2.2.2 As a list of values, in the command line.Prompt left, "Enter left component" //Please enter a valid start point for the analysis, example: 00:00:00 (dd.mm. these variables are later used to extract a part of the data (the interval we want to analyse) Variable leftDP, rightDP // after reading input from user, left and right edge of the wave are saved in these variables Thanks everyone for any contribution, idea, etc. MoveWave root:tempData:workedAvgWave, root:SizeResolved: If ( DataFolderExists ( "root:SizeResolved:" )= 0 ) Calculate inter quartile ranges and mean/median values We need to remove NANs becuase mean doesn't support NaNs. MAKE /O /N= (numRows ) $ (colName ) / Wave=ww SetDimLabel 2, 0, TheMedian, workedAvgWave Make /O /N= (numColumns,numLayers,numStatParam ) workedAvgWave // distribution wave for mean(layer0) and median(layer1) Variable numLayers = dimSize (temp3DWave, 2 ) Variable numColumns = dimSize (temp3DWave, 1 ) Variable numRows = dimSize (temp3DWave, 0 ) MoveWave root:INCD:temp3DWave, root:tempData: dNdlogDo = dNdlogDo = 0 ? NAN : dNdlogDo // Set all NANs to zeros. Calculate mean and median values for each bio_Type and also averaged for entire timeįunction findSResolvedAverages (inputWave ) Call findSResolvedAverages to calculate mean&medianįindSResolvedAverages (sizeResolvedRatioWave ) SizeResolvedRatioWave = sizeResolvedRatioWave = NaN ? 0 : sizeResolvedRatioWave There are lots of missing data points and when we remove all missing points (NaN) it's likeyl that both median and mean SizeResolvedRatioWave = finalBioWave3D / finalBioWave3D sizeResolvedRatioWave = SizeResolvedBioWave / SizeResolvedBioWave // changed Make /O /N= (numofRows, numofColumns, numofLayers ) sizeResolvedRatioWave NumofLayers = dimSize (finalBioWave3D, 2 ) NumofColumns = dimSize (finalBioWave3D, 1 ) Variable numofRows, numofColumns, numofLayers Wave SizeResolvedBioWave // this wave contains only the raw counts, not concentration So we know the contribution of fluorescent particle number to the total for each size bin This is so called Nf/Nt data (size resolved) When user clicks the button following functions are called and finally a panel windows appears where the user can display results.įunction ButtonProc_21 (ctrlName ) : ButtonControl The problem is where should I put the DoPrompt function? Here are the functions I mentioned above. After having the start & end point for the analysis, I can look up in the entire wave and extract the interval that I want to analyse. By doing so user can enter a time interval (i.e., 12:00:00 - 13:00:00) which I am planning to save as variables (time can be converted to numbers according to a reference point, right?). What I would like to do is including a small Promt window that appears when the button is called. A third function is then responsible for displaying the final result on a panel so the user can select desired result by pressing on previously defined buttons. Another simple function moves the data to another data folder and does a quick statistical calculation on the data. To do this I wrote a main function which defines the target wave and performs a simple mathematical calculation on it. I would like to analyse (selectively) a multi-dimensional wave. Here is what I need in the very beginning: However I need to improve some parts and increase the functionality of the code that I wrote. With great support of Igor team and you guys I managed to write my own data analysis tool and it works perfectly.
0 Comments
Read More
Leave a Reply. |