---
# System prepended metadata

title: TEOM OCEC data processing

---

# TEOM OCEC data processing

## TEOM
### raw data
1. TEOM raw data (.csv) 選取欄位 以及 更改之欄位名稱 :
    *  **Time Stamp**
    *  **System status**
    *  **PM-2.5 base MC** -> **PM1.0_NV**
    *  **PM-2.5 MC** -> **PM1.0_Total**
    *  **PM-2.5 TEOM noise** -> **noise**
2. QC
   *   **System status** < $10^{-7}$
   *   **PM1.0_NV** and **PM1.0_Total** > 0
   *   **noise** <0.01
   *   **每小時資料比數** > 8

### data process
* Volatile fraction
    * **Volatile fraction** = (**PM1.0_Total**-**PM1.0_NV**)/**PM1.0_Total**
    * 1> **Volatile fraction** > 0
* PM1.0/PM2.5
    * **PM1.0_NV**/**PM2.5(外部資料)**
    * 1 > **PM1.0/PM2.5** > 0
    * 加上 **PM2.5 status** 欄位
        * **PM1.0/PM2.5** > 1

       

       
       
## OCEC:

### raw data (兩個讀檔程式)
1. LCRES (.csv) 欄位
   * **Thermal/Optical OC (ugC/LCm^3)** -> **Thermal_OC**
   * **Thermal/Optical EC (ugC/LCm^3)** -> **Thermal_EC**
   * **OC=TC-BC (ugC/LCm^3)** -> **Optical_OC**
   * **BC (ugC/LCm^3)** -> **Optical_EC**
   * **TC (ugC/LCm^3)**
   * **Start Date/Time** -> **time**
   * **Sample Volume Local Condition Actual m^3** -> **Sample Volume**
2. QC
    * **Thermal_OC**, **Optical_OC** > 0.3
    * **Thermal_EC**, **Optical_EC** > 0.015

----
1. RES (.csv)
   * **OCPk1-ug C** -> **OC1**
   * **OCPk2-ug C** -> **OC2**
   * **OCPk3-ug C** -> **OC3**
   * **OCPk4-ug C** -> **OC4**
   * **Pyrolized C ug** -> **PC**
2. QC
    * 全部 > 0

### data process
* OC1, OC2, OC3, OC4, PC
    * **OC1** = **OCPk1-ug C(RES)**/**Sample Volume(LCRES)**
    * **OC2** = **OCPk2-ug C(RES)**/**Sample Volume(LCRES)**
    * ... 五項數據皆做相同處理
* SOC, POC, OC/EC
    * 最小平方法 (相關係數最小處)
    * 一個月為單位進行計算
    * $SOC=ThermalOC-(OC/EC) \times Thermal EC$
        * OC/EC 比例為假設
        * 範圍 0.1 ~ 2.5 間隔 0.1 (皆為預設值 可更改)
    * SOC 跟 Thermal_EC 最小R2之 OC/EC 即為答案
    * **POC** = **Thermal_OC**-**SOC**
    * 輸出 SOC, POC, OC/EC
* other ratio (PM2.5 為外部資料)
   * **Thermal_OC/PM2.5**
   * **Thermal_EC/PM2.5**
   * **OC1-4/Thermal_OC**
   * **PC/Thermal_OC**
   * **OC1-4/PM2.5**
   * **PC/PM2.5**
   * **SOC/Thermal_OC**
   * **POC/Thermal_OC**
   * **SOC/PM2.5**
   * **POC/PM2.5** 




      
      