<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://swdo1312.github.io/feed.xml" rel="self" type="application/atom+xml" /><link href="https://swdo1312.github.io/" rel="alternate" type="text/html" /><updated>2024-09-03T05:59:51+00:00</updated><id>https://swdo1312.github.io/feed.xml</id><title type="html">do_minic</title><subtitle>An amazing website.</subtitle><author><name>도세원</name><email>tpdnjs951@naver.com</email></author><entry><title type="html">GEOS-Chem 모델 시각화</title><link href="https://swdo1312.github.io/GEOS-Chem_Tutor_plot/" rel="alternate" type="text/html" title="GEOS-Chem 모델 시각화" /><published>2024-07-31T00:00:00+00:00</published><updated>2024-07-31T00:00:00+00:00</updated><id>https://swdo1312.github.io/GEOS-Chem_Tutor_plot</id><content type="html" xml:base="https://swdo1312.github.io/GEOS-Chem_Tutor_plot/"><![CDATA[<p style="text-align:right">작성 : 도세원 (한국환경연구원, KEI)<br /> 
&amp; 심창섭 (한국환경연구원, KEI)<br />&amp; 서정빈 (한국환경연구원, KEI)<br />2024년 7월 31일</p>

<hr />

<h2 id="소-개">소 개</h2>

<p>이번 메뉴얼에서는 GEOS-Chem 으로 모의된 결과를 시각화하는 내용을 정리하였다. python을 기반으로 하여 시각화를 진행할 예정이다. 가장 기본적인 python과 GEOS-Chem 에서 가장 대표적으로 사용되는 python toolkit (GCPy) 으로  나누어 설명하고자 한다.</p>

<p><strong>1. 기본적인 python 사용하기</strong></p>

<p><strong>2. GCPy 사용하기</strong></p>

<p><br /></p>

<hr />

<h2 id="1-기본적인-python-사용">1. 기본적인 python 사용</h2>

<p>기본적인 python을 사용하기에 앞서 모델 결과를 지도에 그릴 수 있도록 basemap 패키지를 먼저 다운 받는다.</p>

<ul>
  <li>
    <p>basemap 다운로드</p>

    <div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>conda update <span class="nt">-n</span> base conda         <span class="c"># anaconda </span>
  
conda <span class="nb">install </span>basemap
conda <span class="nb">install </span>basemap-data-hires
</code></pre></div>    </div>

    <p>정상적으로 basemap이 설치되었다면 불러오기가 작동 되어야 한다.</p>

    <div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
</code></pre></div>    </div>
  </li>
  <li>
    <p>간단한 사용을 위한 함수 정의(define)</p>

    <p>python 에서는 def를 통해서 함수를 정의하고 사용할 수 있다.  함수를 통해서 코드를 간단 명료하게 정리 할 수 있다. 이번 메뉴얼에서도 코드를 간략하게 정리하기 위해서  함수 정의를 사용하였다.</p>

    <div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c"># 결과 변수의 값을 ppb 단위로 변환하기 위한 함수</span>
def change_Species_ppb_<span class="o">(</span><span class="nb">date</span>, species<span class="o">)</span>:
    Number_density <span class="o">=</span> np.array<span class="o">(</span>Dataset<span class="o">(</span>path + <span class="s1">'GEOSChem.StateMet.'</span>+date+<span class="s1">'_0000z.nc4'</span><span class="o">)[</span><span class="s1">'Met_AIRDEN'</span><span class="o">])</span> / 0.02897
    Total_number_air_mol <span class="o">=</span> np.array<span class="o">(</span>Dataset<span class="o">(</span>path + <span class="s1">'GEOSChem.StateMet.'</span>+date+<span class="s1">'_0000z.nc4'</span><span class="o">)[</span><span class="s1">'Met_AIRVOL'</span><span class="o">])</span> <span class="k">*</span> Number_density
    Total_number_of_Species <span class="o">=</span> Total_number_air_mol <span class="k">*</span> Dataset<span class="o">(</span>path + <span class="s1">'GEOSChem.SpeciesConc.'</span>+date+<span class="s1">'_0000z.nc4'</span><span class="o">)[</span><span class="s1">'SpeciesConcVV_'</span>+species]
    calculated_ppb <span class="o">=</span> np.sum<span class="o">(</span>np.sum<span class="o">(</span>Total_number_of_Species,0<span class="o">)</span>,0<span class="o">)</span>/np.sum<span class="o">(</span>np.sum<span class="o">(</span>Total_number_air_mol,0<span class="o">)</span>,0<span class="o">)</span><span class="k">*</span>10<span class="k">**</span>9
      
    <span class="k">return </span>calculated_ppb
  
  
<span class="c"># 결과 변수의 값을 시각화때 colorbar range 설정을 편하게 하기 위한 함수</span>
def calculated_ppb_range<span class="o">(</span>calculated_ppb<span class="o">)</span>:
    ppb_range_max <span class="o">=</span> <span class="o">((</span>np.ceil<span class="o">(</span>np.amax<span class="o">(</span>calculated_ppb<span class="o">))</span> //10<span class="o">))</span><span class="k">*</span>10         <span class="c"># max 값에서 10의 단위 올림</span>
    ppb_range_min <span class="o">=</span> <span class="o">((</span>np.floor<span class="o">(</span>np.amin<span class="o">(</span>calculated_ppb<span class="o">))</span> //10<span class="o">)</span> <span class="o">)</span><span class="k">*</span>10       <span class="c"># min 값에서 10의 단위 올림</span>
    ppb_range_norm <span class="o">=</span> np.arange<span class="o">(</span>ppb_range_min, ppb_range_max+1,10<span class="o">)</span>        <span class="c"># 전체 range를 10 간격으로 나눔 </span>
      
    <span class="k">return </span>ppb_range_max, ppb_range_min, ppb_range_norm
</code></pre></div>    </div>

    <p>(참고) python에서 함수(define) 사용하는 방법 예시</p>

    <div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c"># 기본적인 python 함수(define) 예시</span>
def myfunction<span class="o">()</span>:                <span class="c"># myfunction 이라는 이름의 함수를 생성</span>
    print<span class="o">(</span><span class="s2">"Hello World"</span><span class="o">)</span>         <span class="c"># 함수를 실행시 "Hello World" 를 출력</span>
      
myfunction<span class="o">()</span>                     <span class="c"># 함수를 실행하면</span>
<span class="o">&gt;&gt;&gt;</span> Hello World                  <span class="c"># Hello World 출력됨</span>
<span class="c">#=======================================================================</span>
  
<span class="c"># python 함수(define) 매개변수 사용 예시</span>
def myfunction<span class="o">(</span>arg1, arg2<span class="o">)</span>:      <span class="c"># myfunction 이라는 이름의 함수를 생성, 이 함수를 사용하기 위해서 2개 변수를 입력해야 한다.</span>
    print<span class="o">(</span>str<span class="o">(</span>arg1<span class="o">))</span>             <span class="c"># 함수를 실행시 arg1 을 string 형식으로 출력</span>
    print<span class="o">(</span>arg2 + 100<span class="o">)</span>            <span class="c"># 함수를 실행시 arg2 + 100 결과 값 출력</span>
      
myfunction<span class="o">(</span>100,100<span class="o">)</span>              <span class="c"># 함수를 실행하면</span>
<span class="o">&gt;&gt;&gt;</span> 100                          <span class="c"># 글자 형식의 arg1(=100) 출력됨</span>
<span class="o">&gt;&gt;&gt;</span> 200                          <span class="c"># arg2(=100) + 100 = 200 출력됨</span>
<span class="c">#=======================================================================</span>
  
<span class="c"># python 함수(define) 매개변수 및 return 사용 예시</span>
def myfunction<span class="o">(</span>arg1, arg2<span class="o">)</span>:      <span class="c"># myfunction 이라는 이름의 함수를 생성, 이 함수를 사용하기 위해서 2개 변수를 입력해야 한다.</span>
    result_arg1 <span class="o">=</span> arg1 + 100     <span class="c"># 함수를 실행시 result_arg1 값 정의 : 100+100 = 200</span>
    result_arg2 <span class="o">=</span> arg2 <span class="k">*</span> 100     <span class="c"># 함수를 실행시 result_arg2 값 정의 : 100*100 = 10000</span>
    <span class="k">return </span>arg1 arg2             <span class="c"># 함수를 실행시 result_arg1, result_arg2 값을 반환</span>
      
data1, data2 <span class="o">=</span> myfunction<span class="o">(</span>100,100<span class="o">)</span>       <span class="c"># 함수를 실행하면 return 값이 data1, data2 에 반환된다.</span>
print<span class="o">(</span>data1<span class="o">)</span>                             <span class="c"># data1 은 함수의 계산에 따라 200</span>
<span class="o">&gt;&gt;&gt;</span> 200
print<span class="o">(</span>data2<span class="o">)</span>                             <span class="c"># data2 은 함수의 계산에 따라 10000</span>
<span class="o">&gt;&gt;&gt;</span> 10000
  
</code></pre></div>    </div>
  </li>
</ul>

<p>전체 코드는 아래와 같다.</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>import numpy as np
from netCDF4 import Dataset
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt


path <span class="o">=</span> <span class="s1">'{사용자 계정에 따라 모델 결과 폴더로 설정}'</span>  <span class="c"># ex) {HOME}/MODL/geoschem/Code.14.4.1/rundirs/gc_2x25_47L_merra2_CH4/OutputDir/</span>
<span class="nb">date</span> <span class="o">=</span> <span class="s1">'20211201'</span>                              <span class="c"># 모델 수행시작 시간 설정</span>
species <span class="o">=</span> <span class="s1">'CH4'</span>                                <span class="c"># 어떤 변수를 시각화 할 것인지 설정</span>


def change_Species_ppb_<span class="o">(</span><span class="nb">date</span>, species<span class="o">)</span>:
    Number_density <span class="o">=</span> np.array<span class="o">(</span>Dataset<span class="o">(</span>path + <span class="s1">'GEOSChem.StateMet.'</span>+date+<span class="s1">'_0000z.nc4'</span><span class="o">)[</span><span class="s1">'Met_AIRDEN'</span><span class="o">])</span> / 0.02897
    Total_number_air_mol <span class="o">=</span> np.array<span class="o">(</span>Dataset<span class="o">(</span>path + <span class="s1">'GEOSChem.StateMet.'</span>+date+<span class="s1">'_0000z.nc4'</span><span class="o">)[</span><span class="s1">'Met_AIRVOL'</span><span class="o">])</span> <span class="k">*</span> Number_density
    
    Total_number_of_Species <span class="o">=</span> Total_number_air_mol <span class="k">*</span> Dataset<span class="o">(</span>path + <span class="s1">'GEOSChem.SpeciesConc.'</span>+date+<span class="s1">'_0000z.nc4'</span><span class="o">)[</span><span class="s1">'SpeciesConcVV_'</span>+species]
    
    calculated_ppb <span class="o">=</span> np.sum<span class="o">(</span>np.sum<span class="o">(</span>Total_number_of_Species,0<span class="o">)</span>,0<span class="o">)</span>/np.sum<span class="o">(</span>np.sum<span class="o">(</span>Total_number_air_mol,0<span class="o">)</span>,0<span class="o">)</span><span class="k">*</span>10<span class="k">**</span>9
    
    <span class="k">return </span>calculated_ppb

def calculated_ppb_range<span class="o">(</span>calculated_ppb<span class="o">)</span>:
    ppb_range_max <span class="o">=</span> <span class="o">((</span>np.ceil<span class="o">(</span>np.amax<span class="o">(</span>calculated_ppb<span class="o">))</span> //10<span class="o">))</span><span class="k">*</span>10
    ppb_range_min <span class="o">=</span> <span class="o">((</span>np.floor<span class="o">(</span>np.amin<span class="o">(</span>calculated_ppb<span class="o">))</span> //10<span class="o">)</span> <span class="o">)</span><span class="k">*</span>10
        
    ppb_range_norm <span class="o">=</span> np.arange<span class="o">(</span>ppb_range_min, ppb_range_max+1,10<span class="o">)</span>
    
    <span class="k">return </span>ppb_range_max, ppb_range_min, ppb_range_norm
    
    

data <span class="o">=</span> Dataset<span class="o">(</span>path + <span class="s1">'GEOSChem.SpeciesConc.'</span>+date+<span class="s1">'_0000z.nc4'</span><span class="o">)</span>

Species_data <span class="o">=</span> change_Species_ppb_<span class="o">(</span><span class="nb">date</span>,species<span class="o">)</span>
range_max_, range_min_, range_norm_ <span class="o">=</span> calculated_ppb_range<span class="o">(</span>Species_data<span class="o">)</span>




plt.figure<span class="o">(</span><span class="nv">figsize</span><span class="o">=(</span>15,10<span class="o">))</span>

map <span class="o">=</span> Basemap<span class="o">(</span><span class="nv">projection</span><span class="o">=</span><span class="s1">'merc'</span>, resolution <span class="o">=</span> <span class="s1">'l'</span>,
    <span class="nv">urcrnrlat</span><span class="o">=</span>80, <span class="nv">llcrnrlat</span><span class="o">=</span><span class="nt">-80</span>, <span class="nv">llcrnrlon</span><span class="o">=</span><span class="nt">-180</span>., <span class="nv">urcrnrlon</span><span class="o">=</span>180.<span class="o">)</span>
 
map.drawcoastlines<span class="o">()</span>
<span class="c"># map.drawcountries()</span>
map.drawmapboundary<span class="o">()</span>
map.drawmeridians<span class="o">(</span>range<span class="o">(</span>0, 360, 30<span class="o">)</span>, <span class="nv">color</span><span class="o">=</span><span class="s1">'k'</span>, <span class="nv">linewidth</span><span class="o">=</span>0.5, <span class="nv">dashes</span><span class="o">=[</span>4, 4], <span class="nv">labels</span><span class="o">=[</span>0, 0, 0, 1]<span class="o">)</span>
map.drawparallels<span class="o">(</span>range<span class="o">(</span><span class="nt">-90</span>, 100, 10<span class="o">)</span>, <span class="nv">color</span><span class="o">=</span><span class="s1">'k'</span>, <span class="nv">linewidth</span><span class="o">=</span>0.5, <span class="nv">dashes</span><span class="o">=[</span>4, 4], <span class="nv">labels</span><span class="o">=[</span>1, 0, 0, 0]<span class="o">)</span>

lon, lat <span class="o">=</span> map<span class="o">(</span>np.meshgrid<span class="o">(</span>data[<span class="s1">'lon'</span><span class="o">]</span>,data[<span class="s1">'lat'</span><span class="o">])[</span>0], np.meshgrid<span class="o">(</span>data[<span class="s1">'lon'</span><span class="o">]</span>,data[<span class="s1">'lat'</span><span class="o">])[</span>1]<span class="o">)</span>

pm <span class="o">=</span> map.pcolormesh<span class="o">(</span>lon,lat,Species_data,vmax<span class="o">=</span>range_max_,vmin<span class="o">=</span>range_min_,cmap<span class="o">=</span><span class="s1">'jet'</span><span class="o">)</span>
cbar <span class="o">=</span> plt.colorbar<span class="o">(</span>pm,extend<span class="o">=</span><span class="s1">'both'</span>,ticks<span class="o">=</span>range_norm_[::2]<span class="o">)</span>
cbar.set_label<span class="o">(</span><span class="s1">'X'</span>+species+<span class="s1">' [ppb]'</span>,fontsize<span class="o">=</span>25,weight<span class="o">=</span><span class="s1">'bold'</span>,labelpad<span class="o">=</span>20<span class="o">)</span>
cbar.ax.tick_params<span class="o">(</span><span class="nv">labelsize</span><span class="o">=</span>15<span class="o">)</span>

plt.title<span class="o">(</span><span class="nb">date</span><span class="o">[</span>0:6],loc<span class="o">=</span><span class="s1">'left'</span>,fontsize<span class="o">=</span>20<span class="o">)</span>
plt.title<span class="o">(</span><span class="s1">'GEOS-Chem'</span>,loc<span class="o">=</span><span class="s1">'right'</span>,fontsize<span class="o">=</span>20<span class="o">)</span>



<span class="c"># plt.savefig('{HOME}/MODL/geoschem/Code.14.4.1/analysis/figure/'+'test_global_'+date+'.png', dpi=300, bbox_inches='tight')</span>

plt.show<span class="o">()</span>
</code></pre></div></div>

<p><img src="../assets/images/GEOS-Chem_Tutor_plot/test_global.png" alt="img" /></p>

<p><img src="../assets/images/GEOS-Chem_Tutor_plot/test_nested_america.png" alt="img" /></p>

<p><img src="../assets/images/GEOS-Chem_Tutor_plot/test_nested_china.png" alt="img" /></p>

<hr />

<h2 id="2-gcpy-사용">2. GCPy 사용</h2>

<hr />

<h2 id="3-모의-결과-분석">3. 모의 결과 분석</h2>

<p>GEOS-Chem 모델을 시각화 하는데 GCPy 프로그램이 많이 사용되고 있다. GCPy 는 Python toolkit 으로 누구나 손 쉽게 사용할 수 있는 장점이 있다. 이와 관련된 내용은 새로운 포스팅에서 소개하고자 한다.</p>

<p style="text-align:right">작성 : 도세원 (한국환경연구원, KEI) <br /> 
&amp; 심창섭 (한국환경연구원, KEI)<br />&amp; 서정빈 (한국환경연구원, KEI)<br />
    2024년 7월 31일</p>

<hr />

<center>- END -</center>

<hr />]]></content><author><name>도세원, 심창섭, 서정빈</name></author><category term="GEOS-Chem" /><summary type="html"><![CDATA[작성 : 도세원 (한국환경연구원, KEI) &amp; 심창섭 (한국환경연구원, KEI)&amp; 서정빈 (한국환경연구원, KEI)2024년 7월 31일]]></summary></entry><entry><title type="html">GEOS-Chem 모델 모의 해보기</title><link href="https://swdo1312.github.io/GEOS-Chem_Tutor/" rel="alternate" type="text/html" title="GEOS-Chem 모델 모의 해보기" /><published>2024-07-24T00:00:00+00:00</published><updated>2024-07-24T00:00:00+00:00</updated><id>https://swdo1312.github.io/GEOS-Chem_Tutor</id><content type="html" xml:base="https://swdo1312.github.io/GEOS-Chem_Tutor/"><![CDATA[<p style="text-align:right">작성 : 도세원 (한국환경연구원, KEI)<br /> 
&amp; 심창섭 (한국환경연구원, KEI)<br />&amp; 서정빈 (한국환경연구원, KEI)<br />2024년 7월 24일</p>

<hr />

<h2 id="소-개">소 개</h2>

<p><a href="http://gmao.gsfc.nasa.gov/">GEOS-Chem은 NASA Global Modeling and Assimilation Office</a> 의 Goddard Earth Observing System(GEOS)에서 얻은 기상 입력을 통해 수행되는 대기 화학 글로벌 3D 모델로 광범위한 대기오염물질을 분석이 가능하다. 모델의 개발 및 발전을 위하여 <a href="https://geoschem.github.io/steering-committee.html">GEOS-Chem Steering Committee</a> 와 <a href="https://geoschem.github.io/working-groups.html">Working Group</a>이 있으며, 이 모델은 US NASA Earth Science Division, the Canadian National and Engineering Research Council, and the Nanjing University of Information Sciences and Technology의 지원을 받아 하버드 대학교와 워싱턴 대학교에 있는 <a href="https://geoschem.github.io/support-team.html">GEOS-Chem 지원 팀</a>에서 관리되고 있다.</p>

<p>자세한 정보와 링크는 <a href="https://geoschem.github.io/overview.html">모델 개요 </a> 참조.</p>

<p>GEOS-Chem과 관련된 주요한 소프트웨어는 5가지가 있다.</p>

<ul>
  <li><strong><a href="https://geos-chem.readthedocs.io/en/stable/">GEOS-Chem Classic</a></strong> (이번 메뉴얼)</li>
  <li><a href="https://gchp.readthedocs.io/">GCHP</a> : 고해상도 버전(GEOS-Chem High Performance)</li>
  <li><a href="https://hemco.readthedocs.io/">HEMCO</a> : 배출량 정보</li>
  <li><a href="[gcpy.readthedocs.io]">GCPy</a> : Python toolkit</li>
  <li><a href="http://wrf.geos-chem.org/">WRF-GC</a> : GEOS-Chem in WRF</li>
  <li><a href="https://imi.readthedocs.io/">IMI</a> : Integrated Methane Inversion</li>
</ul>

<h2 id="하드웨어-요구사항">하드웨어 요구사항</h2>

<ul>
  <li>
    <p>운영체제</p>

    <p><strong>GEOS-Chem Classic은 Unix와 유사한</strong> 운영 체제가 있는 컴퓨터에서만 사용할 수 있다. 여기에는 모든 Linux 플레이버(예: Ubuntu, Fedora, Red-Hat, Rocky Linux, Alma Linux 등)와 BSD Unix(BSD 파생 버전인 MacOS X 포함)가 포함되어 있다. 사용자가 사용하는 서버에 환경이 세팅(RAM, 저장공간, 연산코어 등)되어 있다면 GEOS-Chem Classic을 수행할 수 있다.</p>
  </li>
  <li>
    <p>RAM</p>

    <p>GEOS-Chem Classic 모델은 1개월을 수행하는데 약 14GB의 메모리가 사용되었다(벤치마크 실험, 모든 변수 저장 시). 그러나, 일반적인 상황에서는 모든 진단 변수를 저장하지 않기 때문에 벤치마크 실험 보다는 훨씬 적은 메모리를 사용한다.</p>

    <ul>
      <li>
        <dl>
          <dt>4º × 5º 해상도 수행</dt>
          <dd>
            <p>8~15GB</p>
          </dd>
        </dl>
      </li>
      <li>
        <dl>
          <dt>2º × 2.5º 해상도 수행</dt>
          <dd>
            <p>30~40GB</p>
          </dd>
        </dl>
      </li>
      <li>
        <dl>
          <dt>1º × 1.25º 또는 0.5º × 0.625º  등 고해상도 수행</dt>
          <dd>
            <p>최소 30GB 이상</p>
          </dd>
        </dl>
      </li>
    </ul>
  </li>
  <li>
    <p>저장공간</p>

    <p>GEOS-Chem Classic에서 사용되는 데이터 형식은 NetCDF가 사용된다(<a href="https://geos-chem.readthedocs.io/en/14.2.1/geos-chem-shared-docs/supplemental-guides/netcdf-guide.html#ncguide">netCDF 가이드</a>). 대략적인 GEOS-Chem Classic 입력 데이터와 출력 데이터를 저장하는데 필요한 공간은 아래와 같다.</p>

    <ul>
      <li>
        <p>(입력자료)</p>

        <dl>
          <dt>MERRA-2 데이터 사용시</dt>
          <dd>
            <p>1º × 1.25º   글로벌   ~30GB</p>
          </dd>
          <dd>
            <p>2º × 2.5º   글로벌   ~110GB</p>
          </dd>
          <dd>
            <p>0.5º × 0.625º   중앙아시아(AS)   ~115GB</p>
          </dd>
          <dd>
            <p>0.5º × 0.625º   유럽(EU)   ~58GB</p>
          </dd>
          <dd>
            <p>0.5º × 0.625º   북미(NA)   ~110GB</p>
          </dd>
        </dl>
      </li>
      <li>
        <p>(출력자료)</p>

        <p><a href="https://wiki.geos-chem.org/GEOS-Chem_13.0.0#GEOS-Chem_Classic_13.0.0_vs_12.9.0">GEOS-Chem 13.0.0 벤치마크 결과</a>에 따르면,1개월을 수행한 결과 837MB의 용량이 발생하였다. 이 중에서 진단변수는 ~646MB를 차지하였고, 재시작 파일은 ~191MB를 차지하였다. 공간을 절약하기 위한 자세한 내용은 <a href="https://geos-chem.readthedocs.io/en/14.2.1/gcclassic-user-guide/history-diag-ref.html#history-diagnostics">GEOS-Chem History 진단</a> 섹션을 참조.</p>

        <p>(참고) GEOS-Chem 13.0.0부터 코드 수정을 통해 진단 배열이 필요한 출력을 저장하는 데 필요한 충분한 요소로만 차원이 지정되도록 수정되었다. 예를 들어 SpeciesConc_O3 진단만 출력하려는 경우 GEOS-Chem은 관련 배열을 (NX, NY, NZ, 1) 요소(1개 종만 보관하기 때문에 1)로 차원을 지정이 된다. 이를 통해 시뮬레이션에 필요한 메모리 양을 크게 줄일 수 있습니다.</p>
      </li>
    </ul>
  </li>
</ul>

<h2 id="소프트웨어-요구사항">소프트웨어 요구사항</h2>

<p>사용하는 소프트웨어에 따라 다양한 상황에 처할 수 있고 설명이 복잡해 지므로, 아래를 참고하길 바란다.</p>

<ul>
  <li><a href="https://geos-chem.readthedocs.io/en/latest/getting-started/compilers.html">컴파일러</a>
    <ul>
      <li>intel</li>
      <li>GNU</li>
    </ul>
  </li>
  <li><a href="https://geos-chem.readthedocs.io/en/latest/getting-started/packages-req.html">필수 소프트웨어</a></li>
  <li>
    <p>Git</p>
  </li>
  <li>
    <p>Cmake (3.13 이상)</p>
  </li>
  <li>
    <p>GNU Make (GEOS-Chem 13.0.0 이상에선 필요 없음)</p>
  </li>
  <li>
    <p>NetCDF</p>
  </li>
  <li>
    <p><a href="https://geos-chem.readthedocs.io/en/latest/getting-started/packages-opt.html">권장되는 소프트웨어</a></p>

    <ul>
      <li>GCpy</li>
      <li>gdb and cgdb</li>
      <li>ncview</li>
      <li>nco</li>
      <li>cdo</li>
      <li>KPP</li>
      <li>flex and bison</li>
    </ul>
  </li>
</ul>

<hr />

<h2 id="1-모델-및-자료-가져오기">1. 모델 및 자료 가져오기</h2>

<p>GEOS-Chem 모델을 사용하기 위해서는 모델 소스코를 다운로드가 필요하다. 자세한 설명은  <a href="https://geos-chem.readthedocs.io/en/14.2.1/getting-started/quick-start.html">여기</a>를 참조.</p>

<ul>
  <li>
    <p>GEOS-Chem 모델 다운로드</p>

    <div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nb">cd</span> ~/MODL/geoschem/
git clone <span class="nt">--recurse-submodules</span> https://github.com/geoschem/GCClassic.git GCClassic
</code></pre></div>    </div>

    <p>참고) 원하는 경우 폴더 이름을 수정할 수 있음</p>

    <div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>git clone --recurse-submodules https://github.com/geoschem/GCClassic.git my_code_dir
</code></pre></div>    </div>
  </li>
</ul>

<p>저자의 경우 GCClassic 버전이 업그레이드 되는 것을 고려하여 폴더를 정리하기 위해 ~/MODL/geoschem/ 폴더에 저장된 GCClassic 폴더를 GEOS-Chem 버전에 맞게 이동하여 사용하였음(2024.07.19기준 최신버전, v14.4.1).</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>vi GCClassic/CHANGELOG.md
 버전 확인 
<span class="nb">mkdir </span>Code.14.4.1
<span class="nb">mv</span> <span class="nt">-r</span> GCClassic/ Code.14.4.1
</code></pre></div></div>

<ul>
  <li>
    <p>GEOS-Chem 입력자료를 저장할 경로 설정</p>

    <p>GEOS-Chem을 수행하기 위해 입력자료를 다운로드 받을 디렉토리를 설정하여야 한다. 공용서버에서 작업을 하는 사용자라면 chmod 권한을 통해 여러 사용자가 동일한 입력자료를 중복으로 다운로드하지 않도록 사용하는 것을 추천한다.</p>

    <div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nb">mkdir</span> ~/MODL/geoschem/ExtData/
</code></pre></div>    </div>
  </li>
</ul>

<hr />

<h2 id="2-실행-디렉토리-생성">2. 실행 디렉토리 생성</h2>

<p>GEOS-Chem을 수행하기 위해 컴파일 할 디렉토리를 성정하여야 한다. 앞으로 여러 실험을 수행할 것을 대비하여 rundirs/ 폴더를 만들고 그 안에 모델을 컴파일 하였다.</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nb">mkdir</span> ~/MODL/geoschem/Code.14.4.1/rundirs
<span class="nb">cd</span> ~/MODL/geoschem/Code.14.4.1/GCClassic/run
./createRunDir.sh
</code></pre></div></div>

<p>참고) 현재 사용중인 서버 계정에서 GEOS-Chem 을 처음 수행할 경우 각 계정 안 ./geoschem/config 파일을 생성하기 위하여 몇가지 답변이 필요하다. 아래에 질문사항에 따라 답변을 한다면 큰 어려움이 없다.</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">-----------------------------------------------------------</span>
Enter path <span class="k">for </span>ExtData:  <span class="o">(</span>각자 서버에서 처음 geoschem 모델을 수행시 ./geoschem/config 를 생성하게 된다. <span class="o">[</span>입력자료를 저장한 공간 설정] <span class="o">)</span>
<span class="nt">-----------------------------------------------------------</span>   
<span class="o">&gt;&gt;&gt;</span> ~/MODL/geoschem/ExtData/

Initiating User Registration:
You will only need to fill this information out once.
Please respond to all questions.  Registration is required
<span class="k">in </span>order to receive GEOS-Chem support.

<span class="nt">-----------------------------------------------------------</span>
What is your name <span class="o">(</span>first and last<span class="o">)</span>?  <span class="o">(</span>./geoschem/comfig 에 저장되는 모델 사용자에 대한 Registration 등록 과정<span class="o">)</span>
What is your email address?
What is the name of your research institution?
What is the name of your principal invesigator?
Please provide the web site <span class="k">for </span>your institution
Please provide your github username 
Where <span class="k">do </span>you plan to run GEOS-Chem?

Successful Registration
<span class="nt">-----------------------------------------------------------</span>
</code></pre></div></div>

<p>GEOS-Chem 모델을 수행하기 위한 몇가지 옵션을 선택하여야 한다. 이번 튜토리얼에서는 수행하는 옵션은 아래와 같다. 정상적으로 수행되었다면, 옵션에서 선택한 값들이 사용된 폴더명이 생성될 것이다.</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">-----------------------------------------------------------</span>
Choose simulation <span class="nb">type</span>:
<span class="nt">-----------------------------------------------------------</span>
   1. Full chemistry
   2. Aerosols only
   3. Carbon
   4. Hg
   5. POPs
   6. Tagged O3
   7. TransportTracers
   8. Trace metals
   9. CH4
  10. CO2
  11. Tagged CO
<span class="o">&gt;&gt;&gt;</span> 9

<span class="nt">-----------------------------------------------------------</span>
Choose meteorology <span class="nb">source</span>:
<span class="nt">-----------------------------------------------------------</span>
  1. MERRA-2 <span class="o">(</span>Recommended<span class="o">)</span>
  2. GEOS-FP
  3. GEOS-IT <span class="o">(</span>Beta release<span class="o">)</span>
  4. GISS ModelE2.1 <span class="o">(</span>GCAP 2.0<span class="o">)</span>
<span class="o">&gt;&gt;&gt;</span> 1

<span class="nt">-----------------------------------------------------------</span>
Choose horizontal resolution:
<span class="nt">-----------------------------------------------------------</span>
  1. 4.0  x 5.0
  2. 2.0  x 2.5
  3. 0.5  x 0.625
<span class="o">&gt;&gt;&gt;</span> 2

<span class="nt">-----------------------------------------------------------</span>
Choose number of levels:
<span class="nt">-----------------------------------------------------------</span>
  1. 72 <span class="o">(</span>native<span class="o">)</span>
  2. 47 <span class="o">(</span>reduced<span class="o">)</span>
<span class="o">&gt;&gt;&gt;</span> 2

<span class="nt">-----------------------------------------------------------</span>
Enter path where the run directory will be created:
<span class="nt">-----------------------------------------------------------</span>
<span class="o">&gt;&gt;&gt;</span> ~/MODL/geoschem/Code.14.4.1/rundirs
Expanding to ~/MODL/geoschem/Code.14.4.1/rundirs

<span class="nt">-----------------------------------------------------------</span>
Enter run directory name, or press <span class="k">return </span>to use default:

NOTE: This will be a subfolder of the path you entered above.
<span class="nt">-----------------------------------------------------------</span>
<span class="o">&gt;&gt;&gt;</span>
  <span class="nt">--</span> Using default directory name gc_2x25_47L_merra2_CH4
  <span class="nt">--</span> See rundir_vars.txt <span class="k">for </span>summary of default run directory settings
  <span class="nt">--</span> This run directory has been <span class="nb">set </span>up to start on 20190101
  <span class="nt">--</span> A restart file <span class="k">for </span>this <span class="nb">date </span>has been copied to the Restarts subdirectory
  <span class="nt">--</span> You may add more restart files using format GEOSChem.Restart.YYYYMMDD_HHmmz.nc4
  <span class="nt">--</span> Change simulation start and end dates <span class="k">in </span>configuration file geoschem_config.yml
  <span class="nt">--</span> Default frequency and duration of diagnostics are <span class="nb">set </span>to monthly
  <span class="nt">--</span> Modify diagnostic settings <span class="k">in </span>HISTORY.rc and HEMCO_Config.rc

  <span class="nt">--</span> The following sample restart provided <span class="k">for </span>this simulation was not found:
     /<span class="k">${</span><span class="nv">your_path</span><span class="k">}</span>/MODL/geoschem/ExtData/GEOSCHEM_RESTARTS/v2020-02/GEOSChem.Restart.CH4.20190101_0000z.nc4
     You will need to provide this initial restart file or disable
     GC_RESTARTS <span class="k">in </span>HEMCO_Config.rc to initialize your simulation
     with default background species concentrations.

<span class="nt">-----------------------------------------------------------</span>
Do you want to track run directory changes with git? <span class="o">(</span>y/n<span class="o">)</span>
<span class="nt">-----------------------------------------------------------</span>
<span class="o">&gt;&gt;&gt;</span> n


Created  ~/MODL/geoschem/Code.14.4.1/rundirs/gc_2x25_47L_merra2_CH4
</code></pre></div></div>

<hr />

<h2 id="3-빌드-구성-및-컴파일">3. 빌드 구성 및 컴파일</h2>

<p>GEOS-Chem은 실행 디렉토리 또는 시스템의 다른 곳에서 빌드할 수 있다. 그러나, 실행 디렉토리에서 GEOS-Chem을 빌드하는 것을 추천한다.  실행 디렉토리에서 빌드를 수행할 경우 모든 빌드 파일이 모델을 실행할 위치와 가까운 곳에 보관되므로 편리하게 사용할 수 있다.</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nb">cd</span> ~/MODL/geoschem/Code.14.4.1/rundirs/gc_2x25_47L_merra2_CH4/build
cmake ../CodeDir <span class="nt">-DRUNDIR</span><span class="o">=</span>..
make <span class="nt">-j</span>
make <span class="nb">install</span>
</code></pre></div></div>

<p>위 과정을 따라서 컴파일에 성공하였다면 /build/bin/gcclassic 파일이 생성된다.</p>

<h2 id="모든-실험을-위한-기본-사항">모든 실험을 위한 기본 사항</h2>

<p>GEOS-Chem 모델을 수행하기 위한 빌드 및 컴파일이 끝났다면, 이제는 모델 수행에 필요한 옵션을 설정하여야 한다. 모델을 수행하기 전 아래의 파일에 대한 설정을 검토하여야 한다. <a href="https://geos-chem.readthedocs.io/en/14.2.1/geos-chem-shared-docs/supplemental-guides/customize-guide.html#customguide">옵션 가이즈 참조</a></p>

<ul>
  <li>
    <p>README : 코드 및 모델 설정 및 실행 방법에 대한 유용한 정보가 들어 있음</p>
  </li>
  <li>
    <p><a href="https://geos-chem.readthedocs.io/en/14.2.1/gcclassic-user-guide/geoschem-config.html#cfg-gc-yml">geoschem_config.yml</a> : 실험에 대한 각종 설정(시작 및 종료 시간, 옵션을 on, off 등) 수정.</p>
  </li>
  <li>
    <p><a href="https://geos-chem.readthedocs.io/en/14.2.1/gcclassic-user-guide/history.html#cfg-hist">HISTORY.rc</a> : GEOS-Chem 진단 변수에 대한 설정.</p>
  </li>
  <li>
    <p><a href="https://geos-chem.readthedocs.io/en/14.2.1/gcclassic-user-guide/hemco-diagn.html#cfg-hco-diagn">HEMCO_Diagn.rc</a> : HEMCO 통해 배출량에 대한 설정.</p>
  </li>
  <li>
    <p><a href="https://geos-chem.readthedocs.io/en/14.2.1/gcclassic-user-guide/hemco-config.html#cfg-hco-cfg">HEMCO_Config.rc</a> : HEMCO 통해 저장공간(~/MODL/geoschem/ExtData/) 에서 어떤 배출량 인벤토리를 읽어들일지 설정.</p>
  </li>
</ul>

<hr />

<h2 id="4-geoschem_configyml">4. geoschem_config.yml</h2>

<p>이 파일은 모델을 수행하는데 필요한 옵션을 설정하는 텍스트 기반의 파일이다(GEOS-Chem 14.0.0부터 input.geos 대체됨).</p>

<ul>
  <li>
    <p><strong>4.1 모델 실험기간 설정</strong></p>

    <div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>### geoschem_config.yml: GEOS-Chem Runtime configuration options.
### Customized for simulations using the CH4 mechanism.
  
#============================================================================
# Simulation settings
#============================================================================
simulation:                                                             # GEOS-Chem 시뮬레이션 유형 설정, 'fullchem','aerosol'
  name: CH4                                                             # 'carbon','CH4','CO2','Hg','POPs','TransprotTracers'
  start_date: [20190101, 000000]                                        # 시작시간 설정 [YYYYMMDD, hhmmss]
  end_date: [20190201, 000000]                                          # 끝시간 설정 [YYYYMMDD, hhmmss]
  root_data_dir: /home/swdo/MODL/geoschem/gcgrid/data/ExtData           # root 경로, HEMCO 등 입력자료가 저장된 위치
  met_field: MERRA2                                                     # GEOS-Chem 기상입력자료 : 'MERRA2','GEOS-FP','FCPA2'
  species_database_file: ./species_database.yml                         # GEOS-Chem Species Database 파일 경로
  species_metadata_output_file: OutputDir/geoschem_species_metadata.yml #  
  verbose:                                                              # LOG 출력을 설정
    activate: false                                                     # activate : log 정보를 활성화(true), 비활성화(false)
    on_cores: root       # Allowed values: root all                     # on_cores : 어떤 노드('root','all')에 대한 정보 출력 
  use_gcclassic_timers: false                                           # GEOS-Chem 수행에 걸리는 시간 출력할지 설정
  
</code></pre></div>    </div>
  </li>
  <li>
    <p><strong>4.2 그리드 설정</strong></p>

    <div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>#============================================================================
# Grid settings
#============================================================================
grid:
  resolution: 2.0x2.5                                                   # 수평해상도 설정 : 4º×5º, 2.0º×2.5º, 0.5º×0.625º
  number_of_levels: 72                                                  # 수직해상도 설정 : 72, 47, 40(GCAP2) 
  longitude:                                                            
    range: [-180.0, 180.0]                                              # 위도의 범위 설정 [최소, 최대]
    center_at_180: true                                                 # true 일 경우, 
  latitude:                                                             
    range: [-90.0, 90.0]                                                # 위도의 범위 설정 [최소, 최대]
    half_size_polar_boxes: true                                         # ture 일 경우,
  nested_grid_simulation:                                               # nesting 그리드 사용에 대한 옵션 
    activate: false                                                     # true : nesting, false : 단일 grid
    buffer_zone_NSEW: [0, 0, 0, 0]                                      # nesting grid에서 buffer zone 영역 설정 (3,3,3,3) 추천
      
</code></pre></div>    </div>
  </li>
  <li>
    <p><strong>4.3 모델 적분 시간 설정</strong></p>

    <div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>#============================================================================
# Timesteps settings
#============================================================================
timesteps:                                                              # 모델의 적분시간 간격 설정
  transport_timestep_in_s: 600                                          # 대기수송모델 계산 간격 전역(600), nesting(300)
  chemistry_timestep_in_s: 1200                                         # 화학반응 및 배출 간격: (추천) 전역(1200), nesting(600)
  # radiation_timestep_in_s                                             # fullchem 사용시 RRTMG 복사모델 계산 간격
  
</code></pre></div>    </div>
  </li>
  <li>
    <p><strong>4.4 변수 입력 설정</strong></p>

    <div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>#============================================================================
# Settings for GEOS-Chem operations
#============================================================================
operations:
  chemistry:                                                           
    activate: true                                                     # GEOS-Chem 에서 화학반응 활성화(true), 비활성화(false)
  convection:                                                          
    activate: true                                                     # GEOS-Chem 에서 구름 대류 활성화(true), 비활성화(false)
  pbl_mixing:                                                           
     activate: true                                                    # GEOS-Chem 에서 PBL 혼합 활성화(true), 비활성화(false)
     use_non_local_pbl: true                                           # non-local PBL mixing scheme (VDIFF) 사용 유무
  
  transport:
    gcclassic_tpcore:                 # GEOS-Chem Classic only         # 대류를 통한 물질 이동 제어 옵션
      activate: true                  # GEOS-Chem Classic only         # 활성화(true), 비활성화(false)
      fill_negative_values: true      # GEOS-Chem Classic only         # true : 음수일 경우 농도=0, false : 농도변화 없음
      iord_jord_kord: [3, 3, 7]       # GEOS-Chem Classic only         # 대류옵션 지정 
                                                                       # 1. 1st order upstream scheme, 2.2nd order van Lee
                                                                       # 3. Monotonic PPM, 4.Semi-monotonic PPM
                                                                       # 5.Positive-definite PPM, 6.Un-constrained PPM
                                                                       # 7.Huynh/Van Leer/Lin full monotonicity constrain
                                                                       # 권장옵션 [3, 3, 7]
    transported_species:
      - CH4                                                            # 대류를 통해 이동되는 물질
  
#============================================================================
# Options for CH4
#============================================================================
CH4_simulation_options:
  
  use_observational_operators:                                         # CH4 관측에 관한 옵션
    AIRS: false                                                        # 비행기 관측 사용 유무, [defalte, false]
    GOSAT: false                                                       # GOSAT 관측 사용 유무, [defalte, false]
    TCCON: false                                                       # TCCON 관측 사용 유무, [defalte, false]
  
  analytical_inversion:
    perturb_CH4_boundary_conditions: false                             # nesting 사용시 경계조건에서 교란 활성화(true)
    CH4_boundary_condition_ppb_increase_NSEW: [0.0, 0.0, 0.0, 0.0]     # nesting 사용시 경계조건에서 교란량(ppbv) 설정
  
  
</code></pre></div>    </div>
  </li>
  <li>
    <p><strong>4.5 추가적인 변수 입력 설정</strong></p>

    <div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>#============================================================================
# Settings for diagnostics (other than HISTORY and HEMCO)
#============================================================================
extra_diagnostics:
  
  obspack:                                                             
    activate: false                                                    # ObsPack 자료를 추가적으로 사용할 경우(true)
    quiet_logfile_output: false                                        # log 파일 생성시 (true)
    input_file: ./obspack_co2_1_OCO2MIP_2018-11-28.YYYYMMDD.nc         # ObsPack 파일의 경로 설정
    output_file: ./OutputDir/GEOSChem.ObsPack.YYYYMMDD_hhmmz.nc4       # 
    output_species:                                                    # 출력 파일에 사용되는 변수
      - CH4
  
  planeflight:
    activate: false                                                    # 비행기 관측 자료를 추가적으로 사용할 경우 (true) 
    flight_track_file: Planeflight.dat.YYYYMMDD                        # 비행기 관측 자료 경로 설정
    output_file: plane.log.YYYYMMDD
  
</code></pre></div>    </div>
  </li>
</ul>

<hr />

<h2 id="5-historyrc">5. HISTORY.rc</h2>

<p>GEOS-Chem 모델을 수행을 통해 계산된 진단 변수들에 대한 저장을 설정하는 파일이다.</p>

<ul>
  <li>
    <p><strong>모델결과 파일명 및 저장위치 설정</strong></p>

    <div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>###############################################################################
###  HISTORY.rc file for GEOS-Chem CH4 specialty simulations                ###
###  Contact: GEOS-Chem Support Team (geos-chem-support@g.harvard.edu)      ###
###############################################################################
  
EXPID:  ./OutputDir/GEOSChem                             # GEOS-Chem 모델 결과 파일명 설정
                                                         # ex) EXPID: ./Hello 설정시 
                                                         # ~/gc_2x25_47L_merra2_CH4/Hello* 파일명으로 된 결과 파일 생성
                                                       
#==============================================================================
# %%%%% COLLECTION NAME DECLARATIONS %%%%%
#
# To enable a collection, remove the "#" character in front of its name. The
# Restart collection should always be turned on.
#
# NOTE: These are the "default" collections for GEOS-Chem, but you can create
# your own customized diagnostic collections as well.
#==============================================================================
COLLECTIONS: 'Restart',                                  # 저장할 변수들 설정
             'CH4',                                      # 파일명 : ${EXPID}.'Restart'*.nc4 or ${EXPID}.'CH4'*.nc4 
             'Metrics',
             'SpeciesConc',
             #'Budget',
             #'CloudConvFlux',
             #'ConcAfterChem',
             #'LevelEdgeDiags',
             #'SatDiagn',
             #'SatDiagnEdge',
             'StateMet',
             #'BoundaryConditions',
::
</code></pre></div>    </div>
  </li>
  <li>
    <p><strong>기본적인 옵션</strong></p>

    <div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>#==============================================================================
# %%%%% THE SpeciesConc COLLECTION %%%%%
#
# GEOS-Chem species concentrations (default = all species)
#
# Available for all simulations
#
# Concentrations may be saved out as SpeciesConcVV  [v/v dry air] or
#                                    SpeciesConcMND [molec/cm3]
#==============================================================================
  SpeciesConc.template:       '%y4%m2%d2_%h2%n2z.nc4',                 # 파일명 날짜 형식 지정 : YYYYMMDD_hhmmz.nc4
  SpeciesConc.frequency:      00000100 000000                          # 저장되는 시간 간격 설정 [YYYYMMDD, hhmmss]
                                                                       # (ex) 00000000 01000 매 시간 저장
                                                                       #      00000100 00000 매 달 저장
  SpeciesConc.duration:       00000100 000000                          # 새로운 netCDF 파일을 얼마나 자주 생성할지
                                                                       # (ex) 00000000 01000 매 시간 저장
                                                                       #      00000001 00000 매일 새로운 netCDF 파일 생성       
  SpeciesConc.mode:           'time-averaged'                          # 저장하는 방법 설정
                                                                       # 'instantaneous' : 스냅샷, 'time-averaged' : 시간 평균
  SpeciesConc.fields:         'SpeciesConcVV_?ALL?           ',        # 저장되는 변수 목록 설정 
                              ##'SpeciesConcMND_?ALL?          ',      # ?ADA? : Only the advected species
                                                                       # ?AER? : Only the aerosol species
                                                                       # ?ALL? : All GEOS-Chem species
                                                                       # ?DRYALT? : Only the dry-deposited species whose 
                                                                                    concentrations we wish to archive at a 
                                                                                    given altitude above the surface. (In 
                                                                                    practice these are only O3 and HNO3.)
                                                                       # ?DRY? : Only the dry-deposited species
                                                                       # ?FIX? : Only the inactive (aka “fixed”) species in 
                                                                                 the KPP chemical mechanis
                                                                       # ?GAS? : Only the gas-phase species
                                                                       # ?HYG? : Only aerosols that undergo hygroscopic 
                                                                                 growth (sulfate, BC, OC, SALA, SALC)
                                                                       # ?LOS? : Only chemical loss species or families
                                                                       # ?KPP? : Only the KPP species
                                                                       # ?VAR? : Only the photolyzed species
                                                                       # ?WET? : Only the wet-deposited species
                                                                       # ?PRD? : Only chemical production species or families
                                                                       # ?DUSTBIN? : Only the dust bin number
                                                                       # ?PHOTOBIN? : Number of a given wavelength bin for 
                                                                                      FAST-JX photolysis                     
::
#==============================================================================
  
</code></pre></div>    </div>
  </li>
</ul>

<hr />

<h2 id="6-hemco_configrc-및-hemco_diagnrc">6. HEMCO_config.rc 및 HEMCO_Diagn.rc</h2>

<p>GEOS-Chem Classic은 배출 및 플럭스를 계산하기 위해서 <a href="https://hemco.readthedocs.io/">HEMCO</a>에 의존한다. HEMCO에 대한 설정은 <a href="https://hemco.readthedocs.io/en/latest/hco-ref-guide/hemco-config.html">구성파일(HEMCO_Config.rc)</a>에서 수정을 통해 변경이 가능하다.</p>

<ul>
  <li>
    <p><strong>기본설정 (HEMCO_config.rc)</strong></p>

    <div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>###############################################################################
### BEGIN SECTION SETTINGS
###############################################################################
  
ROOT:                        ~/MODL/geoschem/gcgrid/data/ExtData/HEMCO
GCAPSCENARIO:                not_used
GCAPVERTRES:                 47
Logfile:                     *
DiagnFile:                   HEMCO_Diagn.rc
DiagnPrefix:                 ./OutputDir/HEMCO_diagnostics
DiagnFreq:                   Monthly
Wildcard:                    *
Separator:                   /
Unit tolerance:              1
Negative values:             2
Only unitless scale factors: false
Verbose:                     false
VerboseOnCores:              root       # Accepted values: root all
  
### END SECTION SETTINGS ###
  
</code></pre></div>    </div>
  </li>
  <li>
    <p><strong>배출 인벤토리 설정 (HEMCO_config.rc)</strong></p>

    <div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>###############################################################################
### BEGIN SECTION EXTENSION SWITCHES
###############################################################################
# ExtNr ExtName                on/off  Species   Years avail.
0       Base                   : on    *
# ----- MAIN SWITCHES ---------------------------------------------------------
    --&gt; EMISSIONS              :       true
    --&gt; METEOROLOGY            :       true      # 1980-2021
    --&gt; CHEMISTRY_INPUT        :       true
# ----- RESTART FIELDS --------------------------------------------------------
    --&gt; GC_RESTART             :       true
# ----- NESTED GRID FIELDS ----------------------------------------------------
    --&gt; GC_BCs                 :       false
# ----- REGIONAL INVENTORIES --------------------------------------------------
    --&gt; GHGI_v2                :       false    # 2012-2018
    --&gt; GHGI_v2_Express_Ext    :       true     # 2012-2020
    --&gt; Scarpelli_Canada       :       true     # 2018
    --&gt; Scarpelli_Mexico       :       true     # 2015
# ----- GLOBAL INVENTORIES ----------------------------------------------------
    --&gt; GFEIv2                 :       true     # 2019
    --&gt; EDGARv8                :       true     # 2010-2022
    --&gt; QFED2                  :       false    # 2009-2015
    --&gt; JPL_WETCHARTS          :       true     # 2009-2017
    --&gt; SEEPS                  :       true     # 2012
    --&gt; LAKES                  :       false    # 2009-2015
    --&gt; RESERVOIRS             :       true     # 2022
    --&gt; FUNG_TERMITES          :       true     # 1985
    --&gt; FUNG_SOIL_ABSORPTION   :       false    # 2009-2015
    --&gt; MeMo_SOIL_ABSORPTION   :       true     # 1990-2009 or clim.
# ----- FUTURE EMISSIONS ------------------------------------------------------
    --&gt; RCP_3PD                :       false    # 2005-2100
    --&gt; RCP_45                 :       false    # 2005-2100
    --&gt; RCP_60                 :       false    # 2005-2100
    --&gt; RCP_85                 :       false    # 2005-2100
# ----- CMIP6 ANTHRO EMISSIONS ------------------------------------------------
#   Set GCAPSCENARIO (e.g., HIST, SSP585) above in SECTION SETTINGS
    --&gt; CMIP6_SFC_LAND_ANTHRO  :       false    # 1850-2100
    --&gt; CMIP6_SHIP             :       false    # 1850-2100
    --&gt; BB4MIPS                :       false    # 1850-2100
# ----- NON-EMISSIONS DATA ----------------------------------------------------
    --&gt; CH4_LOSS_FREQ          :       true     # 1985
    --&gt; GLOBAL_OH              :       true     # 2010-2019
    --&gt; GLOBAL_CL              :       true     # 2010-2019
    --&gt; OLSON_LANDMAP          :       true     # 1985
    --&gt; YUAN_MODIS_LAI         :       true     # 2000-2020
# ----- OPTIONS FOR ANALYTICAL INVERSIONS  ------------------------------------
    --&gt; AnalyticalInversion    :       false
    --&gt; UseTotalPriorEmis      :       false    # Skips global/regional inventories
    --&gt; Emis_PosteriorSF       :       false    # Apply posterior scale factors to total emis?
    --&gt; OH_PosteriorSF         :       false    # Apply posterior scale factor  to global OH?
# -----------------------------------------------------------------------------
111     GFED                   : on    CH4
    --&gt; GFED4                  :       true
    --&gt; GFED_daily             :       true
    --&gt; GFED_3hourly           :       false
    --&gt; Scaling_CO             :       1.05
    --&gt; Scaling_NAP            :       2.75e-4
    --&gt; hydrophilic BC         :       0.2
    --&gt; hydrophilic OC         :       0.5
    --&gt; fraction POG1          :       0.49
114     FINN                   : off   CH4
    --&gt; FINN_daily             :       true
    --&gt; Scaling_CO             :       1.0
    --&gt; hydrophilic BC         :       0.2
    --&gt; hydrophilic OC         :       0.5
  
### END SECTION EXTENSION SWITCHES ###
  
###############################################################################
### BEGIN SECTION BASE EMISSIONS
###############################################################################
  
  
</code></pre></div>    </div>
  </li>
  <li>
    <p><strong>배출 인벤토리 설정 (HEMCO_Diagn.rc)</strong></p>

    <div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>#------------------------------------------------------------------------------
#                  GEOS-Chem Global Chemical Transport Model                  !
#------------------------------------------------------------------------------
#BOP
#
# !MODULE: HEMCO_Diagn.rc
#
# !DESCRIPTION: Configuration file for netCDF diagnostic output from HEMCO.
#\\
#\\
# !REMARKS:
#  Customized for the CH4 simulation.
#
# !REVISION HISTORY:
#  18 Oct 2018 - R. Yantosca - Added comment header and longname metadata.
#                              Also changed output unit to kg/m2/s.
#EOP
#------------------------------------------------------------------------------
#BOC
# Name               Spec ExtNr Cat Hier Dim  OutUnit  LongName
EmisCH4_Total        CH4   -1   -1   -1   2   kg/m2/s  CH4_emissions_from_all_sectors
EmisCH4_Oil          CH4    0    1   -1   2   kg/m2/s  CH4_emissions_from_oil
EmisCH4_Gas          CH4    0    2   -1   2   kg/m2/s  CH4_emissions_from_gas
EmisCH4_Coal         CH4    0    3   -1   2   kg/m2/s  CH4_emissions_from_coal
EmisCH4_Livestock    CH4    0    4   -1   2   kg/m2/s  CH4_emissions_from_livestock
EmisCH4_Landfills    CH4    0    5   -1   2   kg/m2/s  CH4_emissions_from_landfills
EmisCH4_Wastewater   CH4    0    6   -1   2   kg/m2/s  CH4_emissions_from_wastewater
EmisCH4_Rice         CH4    0    7   -1   2   kg/m2/s  CH4_emissions_from_rice
EmisCH4_OtherAnth    CH4    0    8   -1   2   kg/m2/s  CH4_emissions_from_other_anthropogenic_sources
EmisCH4_BiomassBurn  CH4  111   -1   -1   2   kg/m2/s  CH4_emissions_from_biomass_burning
EmisCH4_Wetlands     CH4    0   10   -1   2   kg/m2/s  CH4_emissions_from_wetlands
EmisCH4_Seeps        CH4    0   11   -1   2   kg/m2/s  CH4_emissions_from_geological_seeps
EmisCH4_Lakes        CH4    0   12   -1   2   kg/m2/s  CH4_emissions_from_lakes
EmisCH4_Termites     CH4    0   13   -1   2   kg/m2/s  CH4_emissions_from_termites
EmisCH4_SoilAbsorb   CH4    0   14   -1   2   kg/m2/s  CH4_emissions_from_soil_absorption
EmisCH4_Reservoirs   CH4    0   15   -1   2   kg/m2/s  CH4_emissions_from_hydroelectric_reservoirs
  
#EOC
  
  
# Name : netCDF variable name for the requested diagnostic quantity
# Spec : Species name
# ExtNr : Extension number (-1 means sum over all extensions)
# Cat : Category (-1 means sum over all categories)
# Hier : Hierarchy (-1 means sum over all hierarchies)
# Dim : Dimension of data (1: scalar, 2: lon-lat, 3: lon-lat-lev)
# OutUnit  : Units
# LongName : Value for the long_name netCDF variable attribute
</code></pre></div>    </div>
  </li>
</ul>

<hr />

<h2 id="7-geos-chem-classic-실행">7. GEOS-Chem Classic 실행</h2>

<p>모든 실험에 대한 옵션 설정이 끝났다면, GEOS-Chem Classic을 실행을 위한 준비가 끝났다. 이제는 수행기간에 따른 HEMCO 자료를 다운 받고 모델을 수행하면 된다. 모델을 dryrun 옵션을 사용하여 수행한다.</p>

<p>GEOS-Chem Classic 모의 순서는 :</p>

<ul>
  <li>모델 수행 기간 HEMCO 데이터 유무 확인 (./gcclassic –dryrun)</li>
  <li>모델 수행 기간 부족한 HEMCO 데이터 다운로드 (./dowuload_data.py)</li>
  <li>모델 수행 (./gcclassic)</li>
</ul>

<h3 id="7-1-hemco-데이터-유무-확인">7-1. “HEMCO 데이터 유무 확인”</h3>

<table>
  <tbody>
    <tr>
      <td>아래와 같이 –dryrun 명령어를 사용하여 GEOS-Chem Classic 실행 파일을 실행한다. 여기서</td>
      <td>tee 옵션을 통해 출력 결과를 log.dryrun 에 저장한다.</td>
    </tr>
  </tbody>
</table>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>./gcclassic <span class="nt">--dryrun</span> |tee log.dryrun
</code></pre></div></div>

<p>수행된 결과를 확인해보면 일반적인 GEOS-Chem 로그 파일과 다소 비슷해 보이지만 데이터 파일 목록과 각 파일이 디스크에서 저장이되어 있는지를 포함하고 있다. 이 정보를 바탕으로 다운로드가 되지 않은 파일은 다음 단계에서 다운로드 받게 된다.</p>

<p>(참고) log.dryrun 파일명은 수정하여 사용하여도 된다. 그러나, 모델 수행기간에 필요한 HEMCO 데이터에 대한 정보가 이 log 파일에 포함되어 있으니 다음 단계에서도 동일한 log 파일명을 사용하여야 한다.</p>

<h3 id="7-2-부족한-hemco-데이터-다운로드">7-2. “부족한 HEMCO 데이터 다운로드”</h3>

<p>다운로드 되지 않은 HEMCO 파일의 정보는 log.dryrun 에 기록되어 있다. 관련 데이터를 다운로드 받을 수 있는 몇가지 경로가 있지만 WashU(세인트루이스의 워싱턴 대학교) 사이트 ( <a href="http://geoschemdata.wustl.edu/">http://geoschemdata.wustl.edu</a> )에서 데이터를 다운로드하는 것을 추천한다. WashU의 Randall Martin 그룹에서 관리하는 GEOS-Chem의 주요 데이터 사이트이다.</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>./dowuload_data.py log.dryrun wu
</code></pre></div></div>

<ul>
  <li>
    <p>(참고) 세인트루이스의 워싱턴 대학교 사이트 이외로는 “Amazon Web Services 클라우드”, “atmos.earth.rochester.edu 사이트(Rochester)” 가 있다.</p>

    <div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>./download data.py log.dryrun amazon     <span class="c"># GEOS-Chem에 필요한 데이터를 빠르게 다운로드 할 수 있다.</span>
./download data.py log.dryrun rochester  <span class="c"># GCAP 2.0 기상 현장 데이터, 이 기상 현장 데이터는 산업화 이전 or 미래로 시뮬레이션 수행시 유용</span>
</code></pre></div>    </div>
  </li>
  <li>
    <p>(참고) 다운로드를 하지 않고 건너뛰고 싶을 때</p>
  </li>
</ul>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>  ./download_data.py log.dryrun <span class="nt">--skip-download</span>   <span class="c"># 이미 모델은 수행했지만 문서화와 같은 목적으로 파일을 생성하고자 할 때</span>
</code></pre></div></div>

<h3 id="7-3-모델-수행-gcclassic">7-3. “모델 수행 (./gcclassic)”</h3>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>./gcclasic <span class="o">&gt;</span> log.run
</code></pre></div></div>

<p>모델이 정상적으로 수행되었다면 log.run 파일 맨 밑에 “E N D   O F   G E O S – C H E M” 을 확인할 수 있을 것이다. 모델 결과는 HISTORY.rc 에서 설정한 경로에 따라 NetCDF 파일(예: <code class="language-plaintext highlighter-rouge">OutputDir/GEOSChem*.nc4</code>및 <code class="language-plaintext highlighter-rouge">OutputDir/HEMCO*.nc</code>)로 저장되어 있을 것이다. 이 결과 파일들은 netCDF 형식으로 만들어진 것이므로 <a href="http://meteora.ucsd.edu/~pierce/ncview_home_page.html">ncview</a> 등으로 간단히 확인할 수 있습니다.</p>

<hr />

<h2 id="8-모의-결과-분석">8. 모의 결과 분석</h2>

<p>GEOS-Chem 모델을 시각화 하는데 GCPy 프로그램이 많이 사용되고 있다. GCPy 는 Python toolkit 으로 누구나 손 쉽게 사용할 수 있는 장점이 있다. 이와 관련된 내용은 새로운 포스팅에서 소개하고자 한다.</p>

<p style="text-align:right">작성 : 도세원 (한국환경연구원, KEI) <br /> 
&amp; 심창섭 (한국환경연구원, KEI)<br />&amp; 서정빈 (한국환경연구원, KEI)<br />
    2024년 7월 24일</p>

<hr />

<center>- END -</center>

<hr />]]></content><author><name>도세원, 심창섭, 서정빈</name></author><category term="GEOS-Chem" /><summary type="html"><![CDATA[작성 : 도세원 (한국환경연구원, KEI) &amp; 심창섭 (한국환경연구원, KEI)&amp; 서정빈 (한국환경연구원, KEI)2024년 7월 24일]]></summary></entry><entry><title type="html">GEOS-Chem 모델 모의 해보기 (nested-grid)</title><link href="https://swdo1312.github.io/GEOS-Chem_Tutor_nested-grid/" rel="alternate" type="text/html" title="GEOS-Chem 모델 모의 해보기 (nested-grid)" /><published>2024-07-24T00:00:00+00:00</published><updated>2024-07-24T00:00:00+00:00</updated><id>https://swdo1312.github.io/GEOS-Chem_Tutor_nested-grid</id><content type="html" xml:base="https://swdo1312.github.io/GEOS-Chem_Tutor_nested-grid/"><![CDATA[<p style="text-align:right">작성 : 도세원 (한국환경연구원, KEI)<br /> 
&amp; 심창섭 (한국환경연구원, KEI)<br />&amp; 서정빈 (한국환경연구원, KEI)<br />2024년 7월 24일</p>

<hr />

<h2 id="소-개">소 개</h2>

<p>이번 메뉴얼에서는 GEOS-Chem nested-grid 옵션을 사용하여 모델을 모의하는 방법을 정리하였다. GEOS-Chem nested-grid 옵션에 대한 자세한 내용을 알고 싶다면 <a href="https://geos-chem.readthedocs.io/en/stable/supplemental-guides/nested-grid-guide.html">GEOS-Chem doc</a>와 <a href="https://wiki.seas.harvard.edu/geos-chem/index.php/Setting_up_GEOS-Chem_nested_grid_simulations">GEOS-Chem wiki</a>를 참조하길 바란다. 기본적인 GEOS-Chem 모의는 이전 게시글에 정리하였으므로, <a href="https://swdo1312.github.io/GEOS-Chem_Tutor/">여기</a>를 참조.</p>

<p><br /></p>

<p>네스팅을 사용하여 GEOS-Chem 모델을 수행하는데는 <strong>두가지 과정</strong>이 필요하다.</p>

<ul>
  <li>
    <p><strong>1. global 도메인에서 모델 수행</strong></p>
  </li>
  <li>
    <p><strong>2. nested-grid 도메인에서 모델 수행</strong></p>
  </li>
</ul>

<p><br /></p>

<p>GEOS-Chem 에서 nested-grid 사용시 추천되는 해상도에 따른 영역의 범위는 <a href="https://wiki.seas.harvard.edu/geos-chem/index.php/FlexGrid#0.5.C2.B0_x_0.625.C2.B0_nested_Asia">여기</a>를 참고하길 바란다. 이번 메뉴얼에서는 한반도가 포함된 영역을 사용할 것이며, 영역은 아래 그림과 같다. &lt; 그림 <a href="https://wiki.seas.harvard.edu/geos-chem/index.php/GEOS-Chem_horizontal_grids#0.5_x_0.625_AS_nested_grid">출처</a> &gt;</p>

<p><img src="../assets/images/GEOS-Chem_Tutor_nesting/MERRA2_05x0625_AS.png" alt="img" /> 
<br /></p>

<hr />

<h2 id="모델-및-자료-가져오기">모델 및 자료 가져오기</h2>

<p>GEOS-Chem 모델을 사용하기 위해서는 모델 소스코를 다운로드가 필요하다. 자세한 설명은  <a href="https://geos-chem.readthedocs.io/en/14.2.1/getting-started/quick-start.html">여기</a>를 참조.</p>

<ul>
  <li>
    <p>GEOS-Chem 모델 다운로드</p>

    <div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nb">cd</span> ~/MODL/geoschem/
git clone <span class="nt">--recurse-submodules</span> https://github.com/geoschem/GCClassic.git GCClassic
</code></pre></div>    </div>

    <p>참고) 원하는 경우 폴더 이름을 수정할 수 있음</p>

    <div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>git clone --recurse-submodules https://github.com/geoschem/GCClassic.git my_code_dir
</code></pre></div>    </div>
  </li>
</ul>

<p>저자의 경우 GCClassic 버전이 업그레이드 되는 것을 고려하여 폴더를 정리하기 위해 ~/MODL/geoschem/ 폴더에 저장된 GCClassic 폴더를 GEOS-Chem 버전에 맞게 이동하여 사용하였음(2024.07.19기준 최신버전, v14.4.1).</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>vi GCClassic/CHANGELOG.md
 버전 확인 
<span class="nb">mkdir </span>Code.14.4.1
<span class="nb">mv</span> <span class="nt">-r</span> GCClassic/ Code.14.4.1
</code></pre></div></div>

<ul>
  <li>
    <p>GEOS-Chem 입력자료를 저장할 경로 설정</p>

    <p>GEOS-Chem을 수행하기 위해 입력자료를 다운로드 받을 디렉토리를 설정하여야 한다. 공용서버에서 작업을 하는 사용자라면 chmod 권한을 통해 여러 사용자가 동일한 입력자료를 중복으로 다운로드하지 않도록 사용하는 것을 추천한다.</p>

    <div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nb">mkdir</span> ~/MODL/geoschem/ExtData/
</code></pre></div>    </div>
  </li>
</ul>

<hr />

<h2 id="1-global-도메인에서-모델-수행하기">1. global 도메인에서 모델 수행하기</h2>

<h2 id="11--실행-디렉토리-생성">1.1  실행 디렉토리 생성</h2>

<p>GEOS-Chem을 수행하기 위해 컴파일 할 디렉토리를 성정하여야 한다. 앞으로 여러 실험을 수행할 것을 대비하여 rundirs/ 폴더를 만들고 그 안에 모델을 컴파일 하였다.</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nb">mkdir</span> ~/MODL/geoschem/Code.14.4.1/rundirs
<span class="nb">cd</span> ~/MODL/geoschem/Code.14.4.1/GCClassic/run
./createRunDir.sh
</code></pre></div></div>

<p>GEOS-Chem 모델을 수행하기 위한 몇가지 옵션을 선택하여야 한다. 이번 튜토리얼에서는 수행하는 옵션은 아래와 같다. 정상적으로 수행되었다면, 옵션에서 선택한 값들이 사용된 폴더명이 생성될 것이다.</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">-----------------------------------------------------------</span>
Choose simulation <span class="nb">type</span>:
<span class="nt">-----------------------------------------------------------</span>
   1. Full chemistry
   2. Aerosols only
   3. Carbon
   4. Hg
   5. POPs
   6. Tagged O3
   7. TransportTracers
   8. Trace metals
   9. CH4
  10. CO2
  11. Tagged CO
<span class="o">&gt;&gt;&gt;</span> 9

<span class="nt">-----------------------------------------------------------</span>
Choose meteorology <span class="nb">source</span>:
<span class="nt">-----------------------------------------------------------</span>
  1. MERRA-2 <span class="o">(</span>Recommended<span class="o">)</span>
  2. GEOS-FP
  3. GEOS-IT <span class="o">(</span>Beta release<span class="o">)</span>
  4. GISS ModelE2.1 <span class="o">(</span>GCAP 2.0<span class="o">)</span>
<span class="o">&gt;&gt;&gt;</span> 1

<span class="nt">-----------------------------------------------------------</span>
Choose horizontal resolution:
<span class="nt">-----------------------------------------------------------</span>
  1. 4.0  x 5.0
  2. 2.0  x 2.5
  3. 0.5  x 0.625
<span class="o">&gt;&gt;&gt;</span> 1

<span class="nt">-----------------------------------------------------------</span>
Choose number of levels:
<span class="nt">-----------------------------------------------------------</span>
  1. 72 <span class="o">(</span>native<span class="o">)</span>
  2. 47 <span class="o">(</span>reduced<span class="o">)</span>
<span class="o">&gt;&gt;&gt;</span> 1

<span class="nt">-----------------------------------------------------------</span>
Enter path where the run directory will be created:
<span class="nt">-----------------------------------------------------------</span>
<span class="o">&gt;&gt;&gt;</span> ~/MODL/geoschem/Code.14.4.1/rundirs
Expanding to ~/MODL/geoschem/Code.14.4.1/rundirs

<span class="nt">-----------------------------------------------------------</span>
Enter run directory name, or press <span class="k">return </span>to use default:

NOTE: This will be a subfolder of the path you entered above.
<span class="nt">-----------------------------------------------------------</span>
<span class="o">&gt;&gt;&gt;</span>
  <span class="nt">--</span> Using default directory name gc_2x25_47L_merra2_CH4
  <span class="nt">--</span> See rundir_vars.txt <span class="k">for </span>summary of default run directory settings
  <span class="nt">--</span> This run directory has been <span class="nb">set </span>up to start on 20190101
  <span class="nt">--</span> A restart file <span class="k">for </span>this <span class="nb">date </span>has been copied to the Restarts subdirectory
  <span class="nt">--</span> You may add more restart files using format GEOSChem.Restart.YYYYMMDD_HHmmz.nc4
  <span class="nt">--</span> Change simulation start and end dates <span class="k">in </span>configuration file geoschem_config.yml
  <span class="nt">--</span> Default frequency and duration of diagnostics are <span class="nb">set </span>to monthly
  <span class="nt">--</span> Modify diagnostic settings <span class="k">in </span>HISTORY.rc and HEMCO_Config.rc

  <span class="nt">--</span> The following sample restart provided <span class="k">for </span>this simulation was not found:
     /<span class="k">${</span><span class="nv">your_path</span><span class="k">}</span>/MODL/geoschem/ExtData/GEOSCHEM_RESTARTS/v2020-02/GEOSChem.Restart.CH4.20190101_0000z.nc4
     You will need to provide this initial restart file or disable
     GC_RESTARTS <span class="k">in </span>HEMCO_Config.rc to initialize your simulation
     with default background species concentrations.

<span class="nt">-----------------------------------------------------------</span>
Do you want to track run directory changes with git? <span class="o">(</span>y/n<span class="o">)</span>
<span class="nt">-----------------------------------------------------------</span>
<span class="o">&gt;&gt;&gt;</span> n


Created  ~/MODL/geoschem/Code.14.4.1/rundirs/gc_4x5_merra2_CH4
</code></pre></div></div>

<hr />

<h2 id="12-빌드-구성-및-컴파일">1.2 빌드 구성 및 컴파일</h2>

<p>GEOS-Chem은 실행 디렉토리 또는 시스템의 다른 곳에서 빌드할 수 있다. 그러나, 실행 디렉토리에서 GEOS-Chem을 빌드하는 것을 추천한다.  실행 디렉토리에서 빌드를 수행할 경우 모든 빌드 파일이 모델을 실행할 위치와 가까운 곳에 보관되므로 편리하게 사용할 수 있다.</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nb">cd</span> ~/MODL/geoschem/Code.14.4.1/rundirs/gc_4x5_merra2_CH4/build
cmake ../CodeDir <span class="nt">-DRUNDIR</span><span class="o">=</span>..
make <span class="nt">-j</span>
make <span class="nb">install</span>
</code></pre></div></div>

<p>위 과정을 따라서 컴파일에 성공하였다면 /build/bin/gcclassic 파일이 생성된다.</p>

<h2 id="13-historyrc-필수-수정사항">1.3 HISTORY.rc 필수 수정사항</h2>

<p>GEOS-Chem 모델을 수행을 통해 계산된 진단 변수들에 대한 저장을 설정하는 파일이다.</p>

<ul>
  <li>
    <p>global 도메인에서 수행된 모델로 nested-grid의 경계자료(‘BoundaryConditions’)을 만들어야 하기 때문에 아래와 같이 주석(‘#’)을 제거가 필요하다.</p>

    <div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>#==============================================================================
# %%%%% COLLECTION NAME DECLARATIONS %%%%%
#
# To enable a collection, remove the "#" character in front of its name. The
# Restart collection should always be turned on.
#
# NOTE: These are the "default" collections for GEOS-Chem, but you can create
# your own customized diagnostic collections as well.
#==============================================================================
COLLECTIONS: 'Restart',                                  # 저장할 변수들 설정
             'CH4',                                      # 파일명 : ${EXPID}.'Restart'*.nc4 or ${EXPID}.'CH4'*.nc4 
             'Metrics',
             'SpeciesConc',
             #'Budget',
             #'CloudConvFlux',
             #'ConcAfterChem',
             #'LevelEdgeDiags',
             #'SatDiagn',
             #'SatDiagnEdge',
             'StateMet',
             'BoundaryConditions',     # &lt;===== 필수적으로 주석('#')을 제거해줘야 한다!.
::
</code></pre></div>    </div>
  </li>
  <li>
    <p><strong>기본적인 옵션</strong></p>

    <div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>#==============================================================================
# %%%%% THE BoundaryConditions COLLECTION %%%%%
#
# GEOS-Chem boundary conditions for use in nested grid simulations
#
# Available for all simulations
#==============================================================================
  BoundaryConditions.template:   '%y4%m2%d2_%h2%n2z.nc4',                # 저장될 파일명 설정
  BoundaryConditions.frequency:  00000000 030000                         # [YYYYMMDD hhmmss] : 3시간에 한번씩 결과 저장
  BoundaryConditions.duration:   00000001 000000                         # [YYYYMMDD hhmmss] : 1일에 한번씩 netCDF 파일 생성
  BoundaryConditions.mode:       'instantaneous'                         # 'instantaneous' : 스냅샷, 'time-averaged' : 시간 평균
  BoundaryConditions.LON_RANGE:  60.0 150.0,                             # [최소값, 최대값] : 생성될 경계장 범위 설정 (lon)
  BoundaryConditions.LAT_RANGE:  -11.0 55.0,                             # [최소값, 최대값] : 생성될 경계장 범위 설정 (lat)
  BoundaryConditions.fields:     'SpeciesBC_?ADV?             ', 'GIGCchem',
  
</code></pre></div>    </div>
  </li>
</ul>

<hr />

<h2 id="14-geos-chem-classic-실행">1.4 GEOS-Chem Classic 실행</h2>

<p>모든 실험에 대한 옵션 설정이 끝났다면, GEOS-Chem Classic을 실행을 위한 준비가 끝났다. 이제는 수행기간에 따른 HEMCO 자료를 다운 받고 모델을 수행하면 된다. 모델을 dryrun 옵션을 사용하여 수행한다.</p>

<p>GEOS-Chem Classic 모의 순서는 :</p>

<ul>
  <li>모델 수행 기간 HEMCO 데이터 유무 확인 (./gcclassic –dryrun)</li>
  <li>모델 수행 기간 부족한 HEMCO 데이터 다운로드 (./dowuload_data.py)</li>
  <li>모델 수행 (./gcclassic)</li>
</ul>

<h3 id="141-hemco-데이터-유무-확인">1.4.1 “HEMCO 데이터 유무 확인”</h3>

<table>
  <tbody>
    <tr>
      <td>아래와 같이 –dryrun 명령어를 사용하여 GEOS-Chem Classic 실행 파일을 실행한다. 여기서 “</td>
      <td>tee” 옵션을 통해 출력 결과를 log.dryrun 에 저장한다.</td>
    </tr>
  </tbody>
</table>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>./gcclassic <span class="nt">--dryrun</span> |tee log.dryrun
</code></pre></div></div>

<p>수행된 결과를 확인해보면 일반적인 GEOS-Chem 로그 파일과 다소 비슷해 보이지만 데이터 파일 목록과 각 파일이 디스크에서 저장이되어 있는지를 포함하고 있다. 이 정보를 바탕으로 다운로드가 되지 않은 파일은 다음 단계에서 다운로드 받게 된다.</p>

<p>(참고) log.dryrun 파일명은 수정하여 사용하여도 된다. 그러나, 모델 수행기간에 필요한 HEMCO 데이터에 대한 정보가 이 log 파일에 포함되어 있으니 다음 단계에서도 동일한 log 파일명을 사용하여야 한다.</p>

<h3 id="142-부족한-hemco-데이터-다운로드">1.4.2 “부족한 HEMCO 데이터 다운로드”</h3>

<p>다운로드 되지 않은 HEMCO 파일의 정보는 log.dryrun 에 기록되어 있다. 관련 데이터를 다운로드 받을 수 있는 몇가지 경로가 있지만 WashU(세인트루이스의 워싱턴 대학교) 사이트 ( <a href="http://geoschemdata.wustl.edu/">http://geoschemdata.wustl.edu</a> )에서 데이터를 다운로드하는 것을 추천한다. WashU의 Randall Martin 그룹에서 관리하는 GEOS-Chem의 주요 데이터 사이트이다.</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>./dowuload_data.py log.dryrun wu
</code></pre></div></div>

<h3 id="143-모델-수행-gcclassic">1.4.3. “모델 수행 (./gcclassic)”</h3>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>./gcclasic <span class="o">&gt;</span> log.run
</code></pre></div></div>

<p>모델이 정상적으로 수행되었다면 log.run 파일 맨 밑에 “E N D   O F   G E O S – C H E M” 을 확인할 수 있을 것이다. 모델 결과는 HISTORY.rc 에서 설정한 경로에 따라 NetCDF 파일(예: <code class="language-plaintext highlighter-rouge">OutputDir/GEOSChem*.nc4</code>및 <code class="language-plaintext highlighter-rouge">OutputDir/HEMCO*.nc</code>)로 저장되어 있을 것이다. 이 결과 파일들은 netCDF 형식으로 만들어진 것이므로 <a href="http://meteora.ucsd.edu/~pierce/ncview_home_page.html">ncview</a> 등으로 간단히 확인할 수 있습니다.</p>

<p>정상적으로 수행 되었다면 /OutputDir/GEOSChem.BoundaryConditions.* 파일을 확인할 수 있을 것이다.  이 파일은 nested-grid 도메인에서 경계자료로 사용된다.</p>

<hr />

<h2 id="2-nested-grid-도메인에서-모델-수행하기">2. nested-grid 도메인에서 모델 수행하기</h2>

<h2 id="21-nested-grid-실행-디렉토리-생성">2.1 nested-grid 실행 디렉토리 생성</h2>

<p>GEOS-Chem을 수행하기 위해 컴파일 할 디렉토리를 성정하여야 한다. 앞으로 여러 실험을 수행할 것을 대비하여 rundirs/ 폴더를 만들고 그 안에 모델을 컴파일 하였다.</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nb">mkdir</span> ~/MODL/geoschem/Code.14.4.1/rundirs
<span class="nb">cd</span> ~/MODL/geoschem/Code.14.4.1/GCClassic/run
./createRunDir.sh
</code></pre></div></div>

<p>nested-grid 실험을 위한 옵션을 선택하여야 한다. global 도메인과 동일하게 선택하되, 해상도를 고해상도로 선택하면 된다. 이번 튜토리얼에서는 nested-grid의 해상도를 0.2º x 0.625º 로 설정하였다.</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">-----------------------------------------------------------</span>
Choose simulation <span class="nb">type</span>:
<span class="nt">-----------------------------------------------------------</span>
   1. Full chemistry
   2. Aerosols only
   3. Carbon
   4. Hg
   5. POPs
   6. Tagged O3
   7. TransportTracers
   8. Trace metals
   9. CH4
  10. CO2
  11. Tagged CO
<span class="o">&gt;&gt;&gt;</span> 9

<span class="nt">-----------------------------------------------------------</span>
Choose meteorology <span class="nb">source</span>:
<span class="nt">-----------------------------------------------------------</span>
  1. MERRA-2 <span class="o">(</span>Recommended<span class="o">)</span>
  2. GEOS-FP
  3. GEOS-IT <span class="o">(</span>Beta release<span class="o">)</span>
  4. GISS ModelE2.1 <span class="o">(</span>GCAP 2.0<span class="o">)</span>
<span class="o">&gt;&gt;&gt;</span> 1

<span class="nt">-----------------------------------------------------------</span>
Choose horizontal resolution:
<span class="nt">-----------------------------------------------------------</span>
  1. 4.0  x 5.0
  2. 2.0  x 2.5
  3. 0.5  x 0.625
<span class="o">&gt;&gt;&gt;</span> 3

<span class="nt">-----------------------------------------------------------</span>
Choose number of levels:
<span class="nt">-----------------------------------------------------------</span>
  1. 72 <span class="o">(</span>native<span class="o">)</span>
  2. 47 <span class="o">(</span>reduced<span class="o">)</span>
<span class="o">&gt;&gt;&gt;</span> 1

<span class="nt">-----------------------------------------------------------</span>
Enter path where the run directory will be created:
<span class="nt">-----------------------------------------------------------</span>
<span class="o">&gt;&gt;&gt;</span> ~/MODL/geoschem/Code.14.4.1/rundirs
Expanding to ~/MODL/geoschem/Code.14.4.1/rundirs

<span class="nt">-----------------------------------------------------------</span>
Enter run directory name, or press <span class="k">return </span>to use default:

NOTE: This will be a subfolder of the path you entered above.
<span class="nt">-----------------------------------------------------------</span>
<span class="o">&gt;&gt;&gt;</span>
  <span class="nt">--</span> Using default directory name gc_05x0625_merra2_CH4
  <span class="nt">--</span> See rundir_vars.txt <span class="k">for </span>summary of default run directory settings
  <span class="nt">--</span> This run directory has been <span class="nb">set </span>up to start on 20190101
  <span class="nt">--</span> A restart file <span class="k">for </span>this <span class="nb">date </span>has been copied to the Restarts subdirectory
  <span class="nt">--</span> You may add more restart files using format GEOSChem.Restart.YYYYMMDD_HHmmz.nc4
  <span class="nt">--</span> Change simulation start and end dates <span class="k">in </span>configuration file geoschem_config.yml
  <span class="nt">--</span> Default frequency and duration of diagnostics are <span class="nb">set </span>to monthly
  <span class="nt">--</span> Modify diagnostic settings <span class="k">in </span>HISTORY.rc and HEMCO_Config.rc

  <span class="nt">--</span> The following sample restart provided <span class="k">for </span>this simulation was not found:
     /<span class="k">${</span><span class="nv">your_path</span><span class="k">}</span>/MODL/geoschem/ExtData/GEOSCHEM_RESTARTS/v2020-02/GEOSChem.Restart.CH4.20190101_0000z.nc4
     You will need to provide this initial restart file or disable
     GC_RESTARTS <span class="k">in </span>HEMCO_Config.rc to initialize your simulation
     with default background species concentrations.

<span class="nt">-----------------------------------------------------------</span>
Do you want to track run directory changes with git? <span class="o">(</span>y/n<span class="o">)</span>
<span class="nt">-----------------------------------------------------------</span>
<span class="o">&gt;&gt;&gt;</span> n


Created  ~/MODL/geoschem/Code.14.4.1/rundirs/gc_05x0625_merra2_CH4
</code></pre></div></div>

<h2 id="22-빌드-구성-및-컴파일">2.2 빌드 구성 및 컴파일</h2>

<p>GEOS-Chem은 실행 디렉토리 또는 시스템의 다른 곳에서 빌드할 수 있다. 그러나, 실행 디렉토리에서 GEOS-Chem을 빌드하는 것을 추천한다.  실행 디렉토리에서 빌드를 수행할 경우 모든 빌드 파일이 모델을 실행할 위치와 가까운 곳에 보관되므로 편리하게 사용할 수 있다.</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nb">cd</span> ~/MODL/geoschem/Code.14.4.1/rundirs/gc_05x0625_merra2_CH4/build
cmake ../CodeDir <span class="nt">-DRUNDIR</span><span class="o">=</span>..
make <span class="nt">-j</span>
make <span class="nb">install</span>
</code></pre></div></div>

<p>위 과정을 따라서 컴파일에 성공하였다면 /build/bin/gcclassic 파일이 생성된다.</p>

<h2 id="23-geoschem_configyml-필수-수정사항">2.3 geoschem_config.yml 필수 수정사항</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>#============================================================================
# Grid settings
#============================================================================
grid:
  resolution: 0.5x0.625
  number_of_levels: 72
  longitude:
    range: [60.0, 150.0]                                       # global 도메인에서 설정한 lon 값보다 같거나 적은 영역으로 설정
    center_at_180: true
  latitude:
    range: [-11.0, 55.0]                                       # global 도메인에서 설정한 lat 값보다 같거나 적은 영역으로 설정
    half_size_polar_boxes: false
  nested_grid_simulation:                                      # nested-grid 를 사용하는지? 
    activate: true                                             # 사용(true), 미사용(false)  : 여기서는 true로 설정
    buffer_zone_NSEW: [3, 3, 3, 3]                             # buffer_zone grid를 설정. 추천값 [3,3,3,3]

#============================================================================
#============================================================================
# Timesteps settings
#============================================================================
timesteps:                                                     # 모델의 적분시간 간격 설정, 모델 해상도에 맞게 설정
  transport_timestep_in_s: 300                                 # 대기수송모델 계산 간격 [추천] 전역(600), nesting(300)
  chemistry_timestep_in_s: 600                                 # 화학반응 및 배출 간격: [추천] 전역(1200), nesting(600)


</code></pre></div></div>

<h2 id="24-hemco_configrc-필수-수정사항">2.4 HEMCO_Config.rc 필수 수정사항</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>###############################################################################
### BEGIN SECTION EXTENSION SWITCHES
###############################################################################
# ExtNr ExtName                on/off  Species   Years avail.
0       Base                   : on    *
# ----- MAIN SWITCHES ---------------------------------------------------------
    --&gt; EMISSIONS              :       true
    --&gt; METEOROLOGY            :       true      # 1980-2021
    --&gt; CHEMISTRY_INPUT        :       true
# ----- RESTART FIELDS --------------------------------------------------------
    --&gt; GC_RESTART             :       true
# ----- NESTED GRID FIELDS ----------------------------------------------------   # nested-grid 와 관련된 설정
    --&gt; GC_BCs                 :       true                                       # BoundaryConditions 사용 (true)
# ----- REGIONAL INVENTORIES --------------------------------------------------
    --&gt; GHGI_v2                :       false    # 2012-2018
    --&gt; GHGI_v2_Express_Ext    :       true     # 2012-2020
    --&gt; Scarpelli_Canada       :       true     # 2018
    --&gt; Scarpelli_Mexico       :       true     # 2015
# ----- GLOBAL INVENTORIES ----------------------------------------------------




#==============================================================================   # 사용될 BoundaryConditions 경로 설정
# --- GEOS-Chem boundary condition file ---                                       # 각자 계정에 맞게 경로 설정
#==============================================================================   # ${PATH} 위치 수정
(((GC_BCs
* BC_ /${PATH}/GEOSChem.BoundaryConditions.$YYYY$MM$DD_0000z.nc4 SpeciesBC_?ADV?  1900-2100/1-12/1-31/* EFY xyz 1 * - 1 1
)))GC_BCs

(ex) $PATH} = /home/swdo1312/MODL/geoschem/Code.14.4.1/rundirs/gc_4x5_merra2_CH4/OutputDir/
</code></pre></div></div>

<h2 id="25-geos-chem-classic-실행">2.5 GEOS-Chem Classic 실행</h2>

<p>모든 실험에 대한 옵션 설정이 끝났다면, GEOS-Chem Classic을 실행을 위한 준비가 끝났다. 이제는 수행기간에 따른 HEMCO 자료를 다운 받고 모델을 수행하면 된다. 모델을 dryrun 옵션을 사용하여 수행한다.</p>

<p>GEOS-Chem Classic 모의 순서는 :</p>

<ul>
  <li>모델 수행 기간 HEMCO 데이터 유무 확인 (./gcclassic –dryrun)</li>
  <li>모델 수행 기간 부족한 HEMCO 데이터 다운로드 (./dowuload_data.py)</li>
  <li>모델 수행 (./gcclassic)</li>
</ul>

<h3 id="251-hemco-데이터-유무-확인">2.5.1 “HEMCO 데이터 유무 확인”</h3>

<table>
  <tbody>
    <tr>
      <td>아래와 같이 –dryrun 명령어를 사용하여 GEOS-Chem Classic 실행 파일을 실행한다. 여기서 “</td>
      <td>tee” 옵션을 통해 출력 결과를 log.dryrun 에 저장한다.</td>
    </tr>
  </tbody>
</table>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>./gcclassic <span class="nt">--dryrun</span> |tee log.dryrun
</code></pre></div></div>

<p>수행된 결과를 확인해보면 일반적인 GEOS-Chem 로그 파일과 다소 비슷해 보이지만 데이터 파일 목록과 각 파일이 디스크에서 저장이되어 있는지를 포함하고 있다. 이 정보를 바탕으로 다운로드가 되지 않은 파일은 다음 단계에서 다운로드 받게 된다.</p>

<p>(참고) log.dryrun 파일명은 수정하여 사용하여도 된다. 그러나, 모델 수행기간에 필요한 HEMCO 데이터에 대한 정보가 이 log 파일에 포함되어 있으니 다음 단계에서도 동일한 log 파일명을 사용하여야 한다.</p>

<h3 id="252-부족한-hemco-데이터-다운로드">2.5.2 “부족한 HEMCO 데이터 다운로드”</h3>

<p>다운로드 되지 않은 HEMCO 파일의 정보는 log.dryrun 에 기록되어 있다. 관련 데이터를 다운로드 받을 수 있는 몇가지 경로가 있지만 WashU(세인트루이스의 워싱턴 대학교) 사이트 ( <a href="http://geoschemdata.wustl.edu/">http://geoschemdata.wustl.edu</a> )에서 데이터를 다운로드하는 것을 추천한다. WashU의 Randall Martin 그룹에서 관리하는 GEOS-Chem의 주요 데이터 사이트이다.</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>./dowuload_data.py log.dryrun wu
</code></pre></div></div>

<h3 id="253-모델-수행-gcclassic">2.5.3. “모델 수행 (./gcclassic)”</h3>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>./gcclasic <span class="o">&gt;</span> log.run
</code></pre></div></div>

<p>모델이 정상적으로 수행되었다면 log.run 파일 맨 밑에 “E N D   O F   G E O S – C H E M” 을 확인할 수 있을 것이다. 모델 결과는 HISTORY.rc 에서 설정한 경로에 따라 NetCDF 파일(예: <code class="language-plaintext highlighter-rouge">OutputDir/GEOSChem*.nc4</code>및 <code class="language-plaintext highlighter-rouge">OutputDir/HEMCO*.nc</code>)로 저장되어 있을 것이다. 이 결과 파일들은 netCDF 형식으로 만들어진 것이므로 <a href="http://meteora.ucsd.edu/~pierce/ncview_home_page.html">ncview</a> 등으로 간단히 확인할 수 있습니다.</p>

<p><img src="../assets/images/GEOS-Chem_Tutor_nesting/GEOSChem.SpeciesConc.20190101_0000z.nc4_ncview.png" alt="img" /></p>

<hr />

<h2 id="3-모의-결과-분석">3. 모의 결과 분석</h2>

<p>GEOS-Chem 모델을 시각화 하는데 GCPy 프로그램이 많이 사용되고 있다. GCPy 는 Python toolkit 으로 누구나 손 쉽게 사용할 수 있는 장점이 있다. 이와 관련된 내용은 새로운 포스팅에서 소개하고자 한다.</p>

<p style="text-align:right">작성 : 도세원 (한국환경연구원, KEI) <br /> 
&amp; 심창섭 (한국환경연구원, KEI)<br />&amp; 서정빈 (한국환경연구원, KEI)<br />
    2024년 7월 24일</p>

<hr />

<center>- END -</center>

<hr />]]></content><author><name>도세원, 심창섭, 서정빈</name></author><category term="GEOS-Chem" /><summary type="html"><![CDATA[작성 : 도세원 (한국환경연구원, KEI) &amp; 심창섭 (한국환경연구원, KEI)&amp; 서정빈 (한국환경연구원, KEI)2024년 7월 24일]]></summary></entry><entry><title type="html">First</title><link href="https://swdo1312.github.io/first/" rel="alternate" type="text/html" title="First" /><published>2024-07-19T00:00:00+00:00</published><updated>2024-07-19T00:00:00+00:00</updated><id>https://swdo1312.github.io/first</id><content type="html" xml:base="https://swdo1312.github.io/first/"><![CDATA[]]></content><author><name>도세원</name><email>tpdnjs951@naver.com</email></author><summary type="html"><![CDATA[]]></summary></entry></feed>