qaqc Jython module

timeorder(data, stime, etime, tdelta, tunit)

Time order of the table data.

Parameters:
  • data – (TimeTableData) Original data.

  • stime – (datetime) Start datetime.

  • etime – (datetime) End datetime.

  • tdelta – (int) Time delta value.

  • tunit – (string) Time delta unit. [year|month|day|hour|minute].

Returns:

Result table data.

flagset(minlim=- 10000, maxlim=50000, errornum=11, quantilenum=21, quantil=0.9, factor=2.3, stdnum=29, stdfactor=3)

Create flag setting object.

Parameters:
  • minlim – (float) Minimum limitation.

  • maxlim – (float) Maximum limitation.

  • errornum – (int) Error point number.

  • quantilenum – (int) Quantile point number.

  • quantil – (float) Quantile value.

  • factor – (float) Factor value.

  • stdnum – (int) Standard deviation point number.

  • stdfactor – (float) Standard deviation factor value.

Returns:

Flag setting object.

check_lim(data, fset)

Check limitation - Get flag code list according to min/max limitation setting.

Parameters:
  • data – (array) Input data array.

  • fset – (FlagSetting) FlagSetting.

Returns:

(list of string) Flag code list.

check_error(data, fset, fcodes)

Check error - Set flag code list according to error setting.

Parameters:
  • data – (array) Input data array.

  • fset – (FlagSetting) FlagSetting.

  • fcodes – (list of sting) Flag code list.

check_std(data, fset, fcodes)

Check 3 times of standard deviation - Set flag code list according to standard deviation setting.

Parameters:
  • data – (array) Input data array.

  • fset – (FlagSetting) FlagSetting.

  • fcodes – (list of sting) Flag code list.

check_all(data, fset)

Check all 3 steps.

Parameters:
  • data – (array) Input data array.

  • fset – (FlagSetting) FlagSetting.

Returns:

(list of string) Flag code list.

makecolors(fcodes, c=None)

Make colors according to flag codes.

Parameters:
  • fcodes – (list of string) Flag code list.

  • c – (list of color) Option colors for flag types.

Returns:

(list of color) Colors with the length as same as fcodes.

makearray(fcodes, v=None)

Make array according to flag codes.

Parameters:
  • fcodes – (list of string) Flag code list.

  • v – (list of float) Option values for flag types.

Returns:

(array_like) Array with the length as same as fcodes.

flagchart(data, fcodes, dates=None, title='Flag chart')

Open a flag chart form for mannual flagging.

Parameters:
  • data – (array_like) Data array.

  • fcodes – (list of string) Flag code list.

  • dates – (list of datetime) X datetime data.

  • title – (string) Chart title.

Returns:

(list of string) Result flag code list.

bc_loading_effect(bc, atn, avenum=4, refine=True, smooth=True, smoothnum=10)

Black carbon loading effect compensation.

Parameters:
  • bc – (array) Black carbon data array.

  • atn – (array) Attenuation data array.

  • avenum – (int) Point number used for average in compensation parameter calculation. Default is 4.

  • refine – (boolean) Is refine compensation paramter or not. Default is True.

  • smooth – (boolean) Is smooth compensation paramter or not. Default is True.

  • smoothnum – (int) Point number used for smooth. Default is 10.

Returns:

Compensated BC data array and compensation parameters