<div dir="ltr"><div><div>Hi,<br><br></div> Better to use cdo for calculating climatology. otherwise you can combine your decadal files as a single file using cat command in cdo and use it as input to grads.<br><br></div>
Thanks & regards,<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 12, 2014 at 12:18 PM, mehwish ramzan <span dir="ltr"><<a href="mailto:mehwish.ramzan@gmail.com" target="_blank">mehwish.ramzan@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Dear GrADS community,</div><div><br></div><div>I am trying to merge multiple netcdf files into one control file so that i can calculate the climatology of 25 years. The data is available in decadal format like this;</div>
<div><br></div><div> <font color="#0000ff"><a href="http://cru_ts3.21.1971.1980.tmp.dat.nc" target="_blank">cru_ts3.21.1971.1980.tmp.dat.nc</a> </font></div><div><font color="#0000ff"> <a href="http://cru_ts3.21.1981.1990.tmp.dat.nc" target="_blank">cru_ts3.21.1981.1990.tmp.dat.nc</a></font></div>
<div><font color="#0000ff"> <a href="http://cru_ts3.21.1991.2000.tmp.dat.nc" target="_blank">cru_ts3.21.1991.2000.tmp.dat.nc</a></font></div><div><font color="#0000ff"> <a href="http://cru_ts3.21.1991.2000.tmp.dat.nc" target="_blank">cru_ts3.21.1991.2000.tmp.dat.nc</a></font></div>
<div><br></div><div>while the information of one .nc file is as;</div><div><br></div><div><font size="3" color="#000000" face="Times New Roman">
</font><font size="3" color="#000000" face="Times New Roman">
</font><p style="margin:0in 0in 10pt"><font size="3" color="#0000ff" face="Calibri">File 1 : CRU TS3.21 Mean Temperature</font></p><font size="3" color="#0000ff" face="Times New Roman">
</font><p style="margin:0in 0in 10pt"><font face="Calibri"><font color="#0000ff"><font size="3"> </font><font size="3">Descriptor:
<a href="http://cru_ts3.21.1971.1980.tmp.dat.nc" target="_blank">cru_ts3.21.1971.1980.tmp.dat.nc</a></font></font></font></p><font size="3" color="#0000ff" face="Times New Roman">
</font><p style="margin:0in 0in 10pt"><font face="Calibri"><font color="#0000ff"><font size="3"> </font><font size="3">Binary:
<a href="http://cru_ts3.21.1971.1980.tmp.dat.nc" target="_blank">cru_ts3.21.1971.1980.tmp.dat.nc</a></font></font></font></p><font size="3" color="#0000ff" face="Times New Roman">
</font><p style="margin:0in 0in 10pt"><font face="Calibri"><font color="#0000ff"><font size="3"> </font><font size="3">Type = Gridded</font></font></font></p><font size="3" color="#0000ff" face="Times New Roman">
</font><p style="margin:0in 0in 10pt"><font face="Calibri"><font color="#0000ff"><font size="3"> </font><font size="3">Xsize = 720</font><font size="3"> </font><font size="3">Ysize = 360</font><font size="3">
</font><font size="3">Zsize = 1</font><font size="3"> </font><font size="3">Tsize = 120</font></font></font></p><font size="3" color="#0000ff" face="Times New Roman">
</font><p style="margin:0in 0in 10pt"><font face="Calibri"><font color="#0000ff"><font size="3"> </font><font size="3">Number of Variables
= 1</font></font></font></p><font size="3" color="#0000ff" face="Times New Roman">
</font><p style="margin:0in 0in 10pt"><font face="Calibri"><font color="#0000ff"><font size="3"> <font color="#0000ff"> </font></font><font size="3" color="#0000ff">tmp 0 -999
near-surface temperature</font></font></font></p><font size="3" color="#000000" face="Times New Roman">
</font></div><div> </div><div>By following some previous posts regarding same issue, according to my understanding i prepared one ctl file which can be used as a combination of above four separate files. The .ctl file is as follows;</div>
<div><br><font size="3" color="#000000" face="Times New Roman">
</font></div><div><p style="margin:0in 0in 10pt"><font face="Calibri"><font color="#0000ff"><font size="3" color="#000000">DSET</font><font size="3">
</font><font size="3">cru_ts3.21.%x31.%<a href="http://x30.tmp.dat.nc" target="_blank">x30.tmp.dat.nc</a></font></font></font></p><font size="3" color="#0000ff" face="Times New Roman">
</font><p style="margin:0in 0in 10pt"><font size="3" color="#0000ff" face="Calibri">OPTIONS template</font></p><font size="3" color="#0000ff" face="Times New Roman">
</font><p style="margin:0in 0in 10pt"><font size="3" color="#0000ff" face="Calibri">DTYPE netcdf</font></p><font size="3" color="#0000ff" face="Times New Roman">
</font><p style="margin:0in 0in 10pt"><font size="3" color="#0000ff" face="Calibri">XDEF 720 linear -89.75 89.75</font></p><font size="3" color="#0000ff" face="Times New Roman">
</font><p style="margin:0in 0in 10pt"><font size="3" color="#0000ff" face="Calibri">YDEF 360 linear 0 360</font></p><font size="3" color="#0000ff" face="Times New Roman">
</font><p style="margin:0in 0in 10pt"><font face="Calibri"><font color="#0000ff"><font size="3">ZDEF</font><font size="3"> </font><font size="3">1 linear 1000</font></font></font></p><font size="3" color="#0000ff" face="Times New Roman">
</font><p style="margin:0in 0in 10pt"><font size="3" color="#0000ff" face="Calibri">TDEF 480 linear jan1971 1mo</font></p><font size="3" color="#0000ff" face="Times New Roman">
</font><p style="margin:0in 0in 10pt"><font size="3" color="#0000ff" face="Calibri">vars 1</font></p><font size="3" color="#0000ff" face="Times New Roman">
</font><p style="margin:0in 0in 10pt"><font face="Calibri"><font color="#0000ff"><font size="3">tmp 0</font><font size="3"> </font><font size="3">99 near-surface
temperature</font></font></font></p><font size="3" color="#0000ff" face="Times New Roman">
</font><p style="margin:0in 0in 10pt"><font size="3" color="#0000ff" face="Calibri">endvars</font></p><p style="margin:0in 0in 10pt"><font size="3" color="#000000" face="Calibri"></font><br></p><p style="margin:0in 0in 10pt">
<font size="3" color="#000000" face="Calibri">But when i tried to open this control file. It give error message;</font></p><font size="3" color="#000000" face="Calibri"><p style="margin:0in 0in 10pt"><font color="#0000ff">Invalid variable
record</font></p><p style="margin:0in 0in 10pt"><font color="#0000ff"> --> The invalid
description file record is:</font></p><p style="margin:0in 0in 10pt"><font color="#0000ff"> --> tmp 0 -999
near-surface temperature</font></p><p style="margin:0in 0in 10pt"><font color="#0000ff"> The data file was
not opened.</font></p><p style="margin:0in 0in 10pt"><font face="Times New Roman">
I know i am making mistake in preparing ctl file but i don't know how to put right information ?</font></p><p style="margin:0in 0in 10pt"><font face="Times New Roman">Please help me in solving this issue.</font></p>
<p style="margin:0in 0in 10pt"><font face="Times New Roman"></font><br></p><p style="margin:0in 0in 10pt"><font face="Times New Roman">Thank You</font></p><p style="margin:0in 0in 10pt"><font face="Times New Roman"></font><br>
</p><p style="margin:0in 0in 10pt"><font face="Times New Roman">With Best Regards,</font></p><p style="margin:0in 0in 10pt"><font face="Times New Roman"></font><br></p><p style="margin:0in 0in 10pt"><font face="Times New Roman">Mehwish</font></p>
</font><p style="margin:0in 0in 10pt"><br></p><p style="margin:0in 0in 10pt"><font color="#500050"></font><br></p></div><div><br></div><div><br></div>
</div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">M. MALLESWARA RAO<br>M.Tech (Atmospheric Science) & M.Sc (Physics)<br><br></div>
</div>