TClabNote
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Help
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # 蘇大學長的Coding天地 ###### tags: `使用說明` [toc] ## 雲端硬碟 帳號: tclab.ntu@gmail.com 密碼: AerosolPower309 Google 日曆: 發生甚麼事都寫上去,有三個標籤 * 台北貨櫃 * 東海貨櫃 紅色: 空污事件 (通常是境外) 藍色: 數據異常 黑色: 例行公事 * 儀器維修紀錄 ## python安裝 (有用過python可跳過這步驟) **方法一 (anaconda)** : 較占空間 1. 上網搜尋 [`Anaconda 下載`](https://www.anaconda.com/download) 並下載 (裡面包含了python跟需要的大部分套件),建立環境建議看這篇[建立環境教學、套件安裝](https://reurl.cc/6QjVQM) 2. 下載完成後會有Anaconda Navigator 裡面可以安裝Spyder 4. 常用套件 (初學者可以大概了解一下) * pandas = 數據處理(處理表格式資料)套件 * matplotlib.pyplot = 畫圖套件,可以到[官網](https://matplotlib.org/stable/api/pyplot_summary.html)查詢用法 * numpy = 陣列資料計算套件 * scipy = 數值計算套件 **方法二 (miniconda)** : 需手動安裝 spyder 蘇蘇學長幫大家整理在 [python安裝手冊](https://hackmd.io/sYA718fjS4GSb_OQpZRBhA) ## 如何使用 github 上下載的 code ### 放在固定資料夾 1. 取得該資料夾絕對路徑 * `C:\\Users\\yrr\\Desktop\\program\\my\\ContainerHandle-main` 3. 在主要程式碼 中加入該路徑 ```python= import sys import os mod_loc = 'C:\\Users\\yrr\\Desktop\\program\\my\\ContainerHandle-main' sys.path.insert(1, mod_loc) ``` 3. 開始使用套件 ### 與主要程式碼放在同一個資料夾 1. 在主要程式碼 中加入套件資料夾名稱 ```python= import sys import os sys.path.insert(1, 'ContainerHandle-main') ``` 3. 開始使用套件 ## ContainerHandle 儀器資料處理 [範例檔案下載](https://drive.google.com/drive/folders/1joiagPNgAgOcYMus2Y0-TYV8caPyl6f7?usp=share_link) (**不含 儀器資料處理 的程式碼** ) * example * data * 處理前的 raw data * prcs * 經過計算 處理過後的資料 * `voc.py` * 讀取 voc 的 raw data 並進行計算 * `size_distr.py` * 讀取 SMPS 與 APS 的 raw data 並進行計算 * `optical.py` * 讀取 AE33 與 NEPH 的 raw data 並進行計算 * `chemical.py` * 讀取 IGAC, OCEC 與 TEOM 的 raw data 並進行計算 * `read_me.txt` --- 1. 到 [蘇博的Github](https://github.com/yrr-Su/ContainerHandle) 下載 `ContainerHandle-main.zip` ![](https://i.imgur.com/aQc96AY.png) 2. 將舊的資料夾 **刪除** 把新的解壓縮 ContainerHandle-main 資料夾解壓縮到原本的位置 3. 用 AnyDesk 載 Raw Data * [AnyDesk下載連結](https://anydesk.com/zh-tw/downloads/windows) * [破解AnyDesk使用時間限制](https://www.fox-saying.com/blog/post/48620524-anydesk-lock) * Raw Data的型式見 [貨櫃大小事-數據處理](https://hackmd.io/@harry881210/ryoLyzEW3) | 電腦| AnyDesk | | -------- | -------- | | 台北SMPS | 930815858| | 台北APS TEOM | 953727262| | 東海SMPS NEPH AE33 | 363821718| | 東海APS TEOM | 398032693| | 東海OCEC | 398032693| | 東海車測 | 519124108| * 密碼: **TClab309** 4. 將 Raw Data 丟進`ContainerHandle` -> `data`資料夾中對應的儀器資料夾中 5. 執行需要的py檔 ex: `optical.py` /` chemical.py` * 更改所需時間 `start, end = dtm(2022,1,1),dtm(2022,12,31,23)` * 若丟進新的檔案,更改 `Reset=True` ## 數據可視化 ### 基本畫圖法 :::success 主要是利用matplotlib.pyplot這個套件將數據畫成圖 ::: [範例檔案下載](https://drive.google.com/drive/folders/1zqa0UnmiIfoN_jKBpdGRXzofGY-7o4JJ?usp=share_link) * example * picture * 各式繪圖的範例 py 檔 --- 1. 範例 py 檔不能直接跑,要先將欲可視化的數據讀入`df = pd.read_csv(r"將欲可視化的數據.csv") ` ### PlotTemplate 畫圖工廠 [範例檔案下載](https://drive.google.com/drive/folders/1PfjrgPf-Lvvmiqv2XNaFtpB-MGb0D4zr?usp=share_link) (**不含 畫圖工廠 的程式碼** ) * example * data * picture * `plot.py` * `my_setting.py` --- 1. 需先具備基本畫圖的能力 2. 至 [github](https://github.com/yrr-Su/PlotTemplate) 下載 `PlotTemplate.zip` 3. 參考範例檔案中的 `my_setting.py` 將自己常用的**設定檔**與**畫圖的檔案**放在同一個資料夾 7. 選顏色組合 * [調色盤](https://www.toolskk.com/color) * [顏色組合](https://coolors.co/palettes/popular/red) ## AtmosDataCrawler 氣象資料 :::success 用來抓取[氣象局](http://e-service.cwb.gov.tw/HistoryDataQuery/index.jsp)所有自動測站以及人工測站之氣象參數 風向、風速等用來判斷季節的氣象參數不能用小尖兵的數據,要去台中測站抓資料 ::: 1. 至 [github](https://github.com/yrr-Su/AtmosDataCrawler) 下載 `AtmosDataCrawler.zip` 2. 開啟`AtmosDataCrawler-main`資料夾 3. 執行`RUNME.py` * 更改所需時間 `start, end = dtm(2022,1,1),dtm(2022,12,31,23)` * 更改所需測站地點 `df_TP = cwb_obs.crawl('臺中')`

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully