<div dir="ltr">Dear NCL supporting team,<div>I want to convert the time units from a CMIP5 model to make them unique.</div><div>I try to use time_to_newtime function but unfortunately after convert the time units, the calendar attribute changes to &quot;gregorian&quot; as well. </div><div>What should I do if I want to keep the calendar attribute as the original time variable?</div><div><br></div><div>Regards,</div><div>Lam<br clear="all"><div><br></div><div><br></div><div><div>f = addfile(&quot;./oldtime_psl_day_NorESM1-M_historicalExt_r3i1p1_20060101-20121231.nc&quot;,&quot;r&quot;)</div><div>temp<span class="" style="white-space:pre">                </span>= f-&gt;psl</div><div>t<span class="" style="white-space:pre">        </span>= f-&gt;time</div><div><br></div><div>printVarSummary(t)</div><div><p style="margin:0px;font-size:11px;font-family:Menlo">*** Variable: t</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">*** Type: double</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">*** Total Size: 20440 bytes</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">***             2555 values</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">*** Number of Dimensions: 1</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">*** Dimensions and sizes:<span class="" style="white-space:pre">        </span>[time | 2555]</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">*** Coordinates: </p>
<p style="margin:0px;font-size:11px;font-family:Menlo">***             time: [ 0.5..2554.5]</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">*** Number Of Attributes: 6</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">***   bounds :<span class="" style="white-space:pre">        </span>time_bnds</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">***   units :<span class="" style="white-space:pre">        </span>days since 2006-01-01 00:00:00</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">***   <font color="#ff0000">calendar :<span class="" style="white-space:pre">        </span>noleap</font></p>
<p style="margin:0px;font-size:11px;font-family:Menlo">***   axis :<span class="" style="white-space:pre">        </span>T</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">***   long_name :<span class="" style="white-space:pre">        </span>time</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">***   standard_name :<span class="" style="white-space:pre">        </span>time</p></div><div><br></div><div>t<span class="" style="white-space:pre">        </span>= time_to_newtime(t, &quot;days since 1850-01-01 00:00:00&quot;)</div><div><br></div><div>printVarSummary(t)<br></div></div><div><br></div><div><p style="margin:0px;font-size:11px;font-family:Menlo">*** Variable: t</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">*** Type: double</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">*** Total Size: 20440 bytes</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">***             2555 values</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">*** Number of Dimensions: 1</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">*** Dimensions and sizes:<span class="" style="white-space:pre">        </span>[time | 2555]</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">*** Coordinates: </p>
<p style="margin:0px;font-size:11px;font-family:Menlo">***             time: [56978.5..59534.5]</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">*** Number Of Attributes: 6</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">***   <font color="#ff0000">calendar :<span class="" style="white-space:pre">        </span>gregorian</font></p>
<p style="margin:0px;font-size:11px;font-family:Menlo">***   units :<span class="" style="white-space:pre">        </span>days since 1850-01-01 00:00:00</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">***   bounds :<span class="" style="white-space:pre">        </span>time_bnds</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">***   axis :<span class="" style="white-space:pre">        </span>T</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">***   long_name :<span class="" style="white-space:pre">        </span>time</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">***   standard_name :<span class="" style="white-space:pre">        </span>time</p></div><div><br></div><div><br></div>-- <br>Hoang Phuc Lam<br>Viet Nam National Center of Hydro-Meteorology Forecasting<br>National Hydro-Meteorological Services of Vietnam<br>Mob: +84 12 1616 5258<br>Tel:   +844 38247002<br>Fax:  +844 38254278<br>
</div></div>