Hi again,<br><br>Any idea about my problem? Anyway, I faced another issue when I "cdo" my data.<br>Since my data is 16-days time interval during one year, I used:<br><br>cdo -r mergetime <a href="http://1.nc">1.nc</a> <a href="http://17.nc">17.nc</a> <a href="http://33.nc">33.nc</a> <a href="http://49.nc">49.nc</a> <a href="http://65.nc">65.nc</a> 81.nc...<a href="http://321.nc">321.nc</a> <a href="http://337.nc">337.nc</a> <a href="http://353.nc">353.nc</a> <a href="http://result.nc">result.nc</a><br>
<br>Then, when I open the file, I obtain the message:<br><br>ga-> sdfopen <a href="http://result.nc">result.nc</a><br>Scanning self-describing file: <a href="http://result.nc">result.nc</a><br>gadsdf: Time unit has too small an increment (min. 1 minute).<br>
<br>The result of "ncdump <a href="http://result.nc">result.nc</a>"<br> .......<br> .......<br> time = 0, 0, 1, 4, 15, 27, 53, 113, 129, 145, 161, 177, 193, 209, 225, 241, 257, 273, 289, 305, 321, 337, 353 ;<br>
.......<br> .......<br><br>Then I tried to convert the time using sed and ncgen:<br><br>sed -e 's/time = 0, 0, 1, 4, 15, 27, 53, 113, 129, 145, 161, 177, 193, 209, 225, 241, 257, 273, 289, 305, 321, 337, 353 ;/time = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 ;/g' test.cdl > test1.cdl<br>
<br>ncgen -o <a href="http://result_corrected.nc">result_corrected.nc</a> test1.cdl<br><br><br>And the result of ncdump <a href="http://result_corrected.nc">result_corrected.nc</a> gives:<br><br> .......<br>
.......<br>
time = 353 ;<br> .......<br>
.......<br>
<br>instead of 1, 2, 3 ..., 23.<br><br>Then I go back again to my first question in order to obtain the monthly mean (My previous post).<br><br>Any suggestion would be very helpful.<br><br>Best regards,<br><br>Serge<br><br>
<br><div class="gmail_quote">2011/6/21 Rafanoharana Serge Claudio <span dir="ltr"><<a href="mailto:rafanoharana@gmail.com">rafanoharana@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Dear all,<br><br>I would like to ask on how to obtain the monthly mean from 16-days interval data within one year.<br><br>From daily data, I can easily get it using:<br><br>cdo -r mergetime <a href="http://1.nc" target="_blank">1.nc</a> <a href="http://2.nc" target="_blank">2.nc</a> <a href="http://3.nc" target="_blank">3.nc</a> ..... <a href="http://366.nc" target="_blank">366.nc</a> <a href="http://result.nc" target="_blank">result.nc</a><br>
cdo -r monmean <a href="http://result.nc" target="_blank">result.nc</a> <a href="http://final.nc" target="_blank">final.nc</a><br clear="all"><br>but from 16-days interval, I have 23 files and even if I merge them, I will end with TSize =23<br>
<br>Any idea will be very helpful.<br>
<br>Regards,<br><br>-- <br><font color="#888888">Serge<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Serge<br>