--- title: 'Atmospheric dynamics' --- [TOC] # MobaXterm --- ![image](https://hackmd.io/_uploads/BJlfYnF4A.png) :::success 左上角session ::: --- ![image](https://hackmd.io/_uploads/B1xVF2YER.png) :::success SSH ::: --- ![image](https://hackmd.io/_uploads/BJqLY3KVR.png) :::success Remote Host:163.21.236.110 -> OK ::: > (可去Terminal setting將字體調到20,較好操作) --- :::success ### Change your password 1. Type “passwd” and press Enter 2. Current password? 3. New password? 4. Retype the new password again 5. The password had been successfully changed. 6. You can try the new password by login again. ::: --- :::success ### Build up your work space 1. mkdir /DATA0/U109XXXXX 2. ln –s /DATA0/U109XXXXX work 3. cd work 4. pwd ::: --- ## GFDL AGCM setup & run :::success ### setup:copy & untar agcm.tar.gz 1. cp /home/chiang/work/agcm.tar.gz . 2. tar zxvf agcm.tar.gz 3. cd agcm 4. ls ::: --- ls 輸出內容+內容物註解 ```= Princeton_agcm.pdf 說明書 atsc-1520-0469…pdf 模式的技術論文 clim-1520-0442…pdf 模式的應用論文 ncep 初始場 gcm 模式設定 rundeck 執行序 exp1 & exp2 示範實驗 ``` --- :::success ### first run 1. vi rundeck/run 2. set modeldir = /home/U109XXXXX/work/agcm 3. set FTMPDIR = $modeler/test 4. ../test/gcm *.[fF] (71th row) 5. ../test/gcm >> printout || set bomb = 1 (80th row) 6. save the script (wq) 7. mkdir test under agcm, then run (./run) ::: --- 正常run成功會出現如下畫面 ![螢幕擷取畫面 2024-06-02 195553](https://hackmd.io/_uploads/SJlgCRKN0.png) > 正確為FORTRAN STOP --- ![image](https://hackmd.io/_uploads/rJkZg1q4R.png) > 出現Problem in compile代表執行錯誤 --- PS常用指令: * cd 檔案 (目錄切換) * q! (強制退出) * vi 檔案路徑 (開啟檔案) * ls (列出檔案) * ls -al (列出所有檔案加隱藏檔案) * cp 檔案路徑 (複製) * mkdir (建立目錄) --- ## 實作1: ![image](https://hackmd.io/_uploads/HJvk9CYEC.png) :::info 1. vi 進入後 按i可insert 1. Esc退出insert 1. 按Shift輸入 :wq (save the script) ::: --- ### vi hiss.ctl 1. cd -> test (folder) 2. ls ![image](https://hackmd.io/_uploads/S1OC00K4A.png) 4. vi hiss.ctl 5. TDEF 92 linear… --- ![image](https://hackmd.io/_uploads/Bk0lyJ940.png) 6. wq (save & leave) > 須記得修改 u v 為正確變數名 > Time to 92 --- :::warning 修改完參數後,開始實際操作! ::: --- ### GFDL AGCM plot by GrADS ![image](https://hackmd.io/_uploads/r1QyjCt40.png) :::info 1. grads, then press Enter 1. open hiss.ctl & q file ::: --- ![image](https://hackmd.io/_uploads/HkH7iCtNC.png) :::info 1. set lev 850 1. define uw = ave(u,t=1,t=92) 1. define vw = ave(v,t=1,t=92) 1. set lat -30 30 1. set lon 40 160 1. d uw;vw 1. draw title U109XXXXX JJA ::: --- ## 實作2: > 創建一個新資料夾,並重複 GFDL AGCM setup & run --- :::info 1. 進入gcm 開啟其中的 basic.F檔 2. 將42行加c註解 改而使用43行 去掉其c 3. 將57行加c註解 改而使用58行 去掉其c 4. 將72行加c註解 改而使用73行 去掉其c 5. wq存檔後退出 6. 重新修改test2內的hiss.ctl 2. 用grads重複實作1的步驟畫圖 ::: --- December, January and February (DJF) ![image](https://hackmd.io/_uploads/S1mJzy940.png) --- June, July and August (JJA) ![image](https://hackmd.io/_uploads/Hyg_eMyqVA.png) --- ## 有興趣可上網查詢GrADS相關應用如下 [GrADS Script Library](http://cola.gmu.edu/grads/gadoc/library.html)