numpnts(waveName) 返回Wave的数据点个数
Dimsize(waveName,dimNumber) 返回指定维度大小
sscanf scanStr,formatStr,var[,var] 分解包含数值或字符的文本
[只在函数中有用,命令行没用。
scanStr:包含要分解的text
formatStr:分解的格式
secs2date(seconds,format[,sep]) 返回包含日期的字符串
format选项从-2~+2 -2表示YYYY-MM-DD
secs2time(seconds,format[,fracDigits]) 返回包含时间的字符串
format选项包括
0: Normal time, no seconds.
1: Normal time, with seconds.
2: Military time, no seconds.
3: Military time, with seconds and optional fractional seconds.
4: Elapsed time, no seconds.
5: Elapsed time, with seconds and optional fractional seconds.
date2secs(year,month,day) 返回自1904/1/1日到指定日期的秒数
WaveStats[flags] wavename
WaveStats/R=[startP,endP] wavename Specifies a point range of the wave to evaluate.
/Q:Prevents results from being printed in history.
WaveStats返回自动创建的变量中的统计信息,如:
V_npnts:包含NaN或INF的点的个数
V_avg:数据的平均值
V_sum:数据的和
V_sdev:数据的标准偏差
V_max,V_min等等
wavestats/Q/R=[index1,index2] massBC
//print index1,index2
BCmassconc[i] = V_sum1E-9/(sampleflow/60/1E6)npoints/(Datetimewave[index2]-Datetimewave[index1]) //ug/m3
BCnumconc[i] = V_npnts/(sampleflow/60)*npoints/(Datetimewave[index2]-Datetimewave[index1]) //#/cm3
binarysearch
The BinarySearch function performs a binary search of waveName for the value val. BinarySearch returns an integer point number p such that waveName [p] and waveName [p+1] bracket val. If val is in waveName, then waveName [p]==val.
网友评论